Welcome

Troves being gleaned while surfing on the Internet mostly about computer/IT/system skills and tricks, Welcome here ...
Powered By Blogger

Disclaimer

This blog is written by the owner with real practices and tests and intended to hold all original posts except there is a clear declaration for referencing from others. Thanks for tagging with the source link or other tips for reference from here if you would like to quote partial or full text from posts in this blog.

Thursday, December 30, 2010

Fedora Linux : Always got wrong IP configured

while the network configuration in the ifcfg-eth0 is as follows:

IPADDR=x.x.31.231
BROADCAST=x.255.255.255
NETWORK=x.x.31.0
NETMASK=255.255.255.0
GATEWAY=x.x.31.1

after /sbin/ifup eth0

/sbin/ifconfig eth0 displays a magic configuration as :


eth0      Link encap:Ethernet  HWaddr xxxxxx
            inet addr:x.x.35.200  Bcast:x.x.35.255  Mask:255.255.255.128
           .........................

fiddling over and over (ifdown then ifup, and also including  to restart  network and NetManager services), just no damn a use!  The system always applies this weird IP configuration !!

Finally, the bug got found by just  "grep "x.x.35.200" /etc/sysconfig/network-scripts/* ", there is another file
ifcfg-reference there that contains this surprising configuration above.

 Move this extraneous file, either deleting or moving to other directory, the problem  got rid of !

No comments: