PDA

View Full Version : Network Question using DHCP



Damide
02-11-2002, 12:25 AM
I have been using seq 4 now with static IP's, but may have to change to a service using DHCP soon. I tried playing around with RedHat 7.1 to find out how to change from static to DHCP - does anyone know how to do this, and the better question, will it be able to run this way?

Thanks,
D

fryfrog
02-11-2002, 12:33 AM
yes, redhat can use dhcp just fine.

the file /etc/sysconfig/network-scripts/ifcfg-eth0 contains some settings. this is my file (which uses dhcp to get an ip). you can also use "linuxconf"

[root@mystique network-scripts]# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=dhcp
NETMASK=255.255.255.0
ONBOOT=yes

Damide
02-11-2002, 12:57 AM
I just tried that setting using this Linksys router I had with built in DHCP and it worked perfect...thanks Fry!