Click to See Complete Forum and Search --> : Disabling DHCP?


EvilFeabell
11-23-2002, 09:00 AM
I have recently setup my very first (woo!) Linux box running RedHat 7.3, and its all gone flawlessly apart from 1 thing.

In the setup, I selected to use DHCP (having a firewall/DHCP server and everything) to provide the IP. However, if I want to boot up w/out the firewall..RH7.3 wont boot past "Bringing up eth0".

I am pretty sure this is a DHCP problem, so how do I disable the DHCP client on the RH box and use a static address instead?

Keep is simple please, im only a newbie :)

eFeab

jrbush82
11-23-2002, 01:52 PM
try netconfig in a console and maybe that'll get you going

bruce1271e1271
11-23-2002, 10:09 PM
edit /etc/sysconfig/network-scripts/ifcfg-ethx

where x = 0 or 1 depending on your alias for your etherent cards.

BOOTPROTO=STATIC is the line you want for statix IP's.

One note...If using DHCP form your ISP, they usually lock on to your MAC Address of your ethernet card. So If you used to have your internet connection go directly to your pc, then you need to get your MAC address form your pc and use it in the ifcfg-eth0 file.
The line is as follows:

Actually here is both of my ifcfg files..good luck

[root@bruce network-scripts]# more ifcfg-eth0
DEVICE=eth0
MACADDR="00:02:32:01:79:0A"
BOOTPROTO=dhcp
ONBOOT=yes

My internal LAN card
[root@bruce network-scripts]# more ifcfg-eth1
DEVICE=eth1
BOOTPROTO=static
IPADDR=192.168.0.1
NETMASK=255.255.255.0
NETWORK=192.168.0.0
BROADCAST=192.168.0.255
ONBOOT=YES