ifconfig -error - different IP address was shown
Jon Hermansen
jon.hermansen at gmail.com
Tue Dec 4 12:26:16 EST 2007
Try this:
# ifconfig eth0 down
# ifup eth0
If you are working remotely, try putting both of those lines in a script
and execute it using "nohup," and possibly even "screen" so it continues
to execute even though you've been disconnected. Not too sure about how
SSH will behave when NICs go up and down... simpler would be:
# service network restart
which should bring everything back up, but I know it may fail or throw
warnings because your ifcfg-eth0 file doesn't particularly coincide with
the NICs current configuration. You can also just try doing this to
avoid the warning:
# ifconfig eth0 10.0.1.102
# service network restart
Also look at /etc/sysconfig/network to make sure your default gateway is
correct.
Dave Peters wrote:
> Hi there,
>
> I have very strange case.
> When I ran ifconfig, it showed: 192.168.1.151
> However, from
> /etc/sysconfig/network-scripts/ifcfg-eth0, it showed
> 10.0.1.102
> The IP address that I need to use is 10.0.1.102.
> What's wrong and how can I fix this?
>
> Thanks.
>
> -Dave
>
>
> ____________________________________________________________________________________
> Be a better friend, newshound, and
> know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
>
>
>
--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
More information about the Discuss
mailing list