[Leaplist] What are my local IP addresses?
Kyle Gonzales
kyle.gonzales at gmail.com
Fri Jun 29 16:28:59 EDT 2007
You might be seeing the IPv6 representation for the interface.
Using the ip command also shows you things like what sorts of traffic
queueing/shaping, if any, are applied to the interface:
4: eth0: <BROADCAST,MULTICAST> mtu 1500 qdisc pfifo_fast qlen 1000
It will also show you virtual IPs that the interface answers for, in
case where say you were using a clustering solution (like Red Hat
Cluster Suite or the associated Fedora packages) and there was an IP
address added for a fail-over service.
The ip command is the next generation, and will eventually replace
ifconfig, route, and other networking command. Of course, they have
been saying that for years...
On 6/29/07, Jim Hartley <xjimh at cfl.rr.com> wrote:
> Seemed to work OK on my Fedora Core 6 system. Showed the local loopback
> addr and the addr assigned by the (cable) router, each one followed by a
> line I didn't understand ... I assume if I took the trouble to
> investigate those would mean something too. (The line under the regular
> IP address MIGHT have been the e-net card's MAC address??)
>
> Jim Hartley
>
> Phil Barnett wrote:
> > On Friday 29 June 2007 06:57, Kyle Gonzales wrote:
> >
> >> If you want to see the IP addresses, with the subnet context included,
> >> you can use ip addr:
> >>
> >> ip addr show | grep "inet" | awk -F" " '{ print $2 }'
> >>
> >
> > Works on RHEL, doesn't work on Fedora Core.
> >
> > I've never heard of that function before. Is it part of the GNU toolchain?
> >
> >
> _______________________________________________
> Leaplist mailing list
> Leaplist at leap-cf.org
> http://lists.leap-cf.org/mailman/listinfo/leaplist
>
More information about the Leaplist
mailing list