Why is my eth0 getting a dynamic ip when it is configured to be static?
Posted
by sdek
on Server Fault
See other posts from Server Fault
or by sdek
Published on 2010-03-26T20:36:08Z
Indexed on
2010/03/26
20:43 UTC
Read the original article
Hit count: 342
For some reason our office linux box is being assigned an ip address via dhcp and I don't know why. What is confusing to me is that when I check system-config-network it shows that my eth0 is setup to be a static ip address. And /etc/sysconfig/network-scripts/ifcfg-eth0 also shows it is setup to be a static ip, yet it is getting a different ip address than the one specified in the ifcfg-eth0. Let me know if you have any suggestions on or ideas on where I can look next.
Here are a few details that might help you figure out what an idiot I am :)
Fedora 11
Router in front of this box is running dhcp, starting at 10.42.1.100
This box is configured to be 10.42.1.50 (at least I think it is!), subnet 255.255.255.0 (which is same as the router's lan subnet)
Instead of having the static IP, this box is getting assigned 10.42.1.100.
Here are the ifcfg-eth0 details
DEVICE=eth0
BOOTPROTO=none
ONBOOT=yes
TYPE=Ethernet
USERCTL=no
NM_CONTROLLED=no
NETMASK=255.255.255.0
IPADDR=10.42.1.50
GATEWAY=10.42.1.1
© Server Fault or respective owner