Click to See Complete Forum and Search --> : Dhcp Client
Laslo7
04-12-2002, 12:28 PM
Hello all!
I just set up a computer with RH 7.2 and in the configuration of the computer I started it with DHCP, now it turns out I don't want to have it enabled. How does one stop the dhcp client from starting at start-up. Any help would be greatly appreciated.
<---Edit--->
I need to do this via the command line, or if there is a way to do it with window maker.
<---End Edit--->
AJ
[ 12 April 2002: Message edited by: Laslo7 ]
cowanrl
04-12-2002, 12:38 PM
If you're new to Linux I suggest you use the Network Configuration GUI in RH 7.2. It's available on the menu at Programs/System/Network Configuration. Click on the Devices tab, highlite your NIC (probably eth0) and click the edit button. Then click the Protocols tab, highlite TCP/IP and click Edit. Unselect Automatically obtain IP address using DHCP and enter your IP address, mask and gateway(if you have one). Then close the dialog boxes and be sure to save when prompted.
This permanently changes the IP address settings but you'll have to reboot for them to take affect. When changing from DHCP to static addressing, wait until you reboot before you make any DNS server settings. If you're not using DNS, be sure to put an enty in your /etc/hosts file for you hostname/ipaddress combination.
mychl
04-12-2002, 01:31 PM
The file you want to edit is located at
/etc/sysconfig/networking/devices/ifcfg-eth0
There is a line in that file like this:
BOOTPROTO=dhcp
Change it to what you want, static most likely, but then you will need to add lines to it like this..
IPADDR=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
BOOTPROTO=static
TYPE=Ethernet
NETWORK=192.168.1.0
BROADCAST=192.168.1.255
HTH...
Laslo7
04-12-2002, 02:15 PM
Thanks a bunch. You guys Rock.
Mychl your solution is the one I was looking for.
AJ
mychl
04-12-2002, 03:27 PM
:D