[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Odd spurious IP addr in ifconfig



On Sun, Apr 09, 2006 at 01:53:11PM -0700, David E. Fox wrote:
| 
| Earlier, I was looking at old threads in my mail archive and found a
| neat way to get the IP address from a shell script, but in trying it I
| noticed - hey that's *not* my IP address! I've had static IP here on a
| DSL line since December 2000, and my IP address has always been the
| same.

FYI an interface can have more than one address associated with it.
Also, the 'ip' command (from the iproute) package pretty much
supersedes 'ifconfig'.

| Here's what 'ifconfig eth0' reports currently:
| 
| dfox@m206-157:~$ /sbin/ifconfig eth0
| eth0      Link encap:Ethernet  HWaddr 00:00:94:B7:53:84
|           inet addr:169.254.162.234  Bcast:0.0.0.0  Mask:255.255.0.0

FWIW, 196.254.0.0/16 is the prefix Windows assigns to an interface if
it fails to receive a response from a DHCP server.  It is reserved as
being unroutable and essentially "invalid".

-D

-- 
Love is not affectionate feeling, but a steady wish for the loved
person's ultimate good as far as it can be obtained.
    --C.S. Lewis
 
www: http://dman13.dyndns.org/~dman/            jabber: dman@dman13.dyndns.org

Attachment: signature.asc
Description: Digital signature


Reply to: