[Leaplist] What are my local IP addresses?

Kyle Gonzales kyle.gonzales at gmail.com
Fri Jun 29 16:32:00 EDT 2007


On 6/29/07, Andrew <aander07 at packetmaster.com> wrote:
>
> On Jun 29, 2007, at 1:38 PM, 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?
>
> As others pointed out, that's part of the iproute package.
>
> Reasons that you would want to use 'ip' instead of the regular net-
> tools utilities include things like policy routing, load balancing,
> tunnel handling, and some multi-homing tricks.
>
> Another really fun utility in there is 'tc' -- it allows you to setup
> the traffic shaping policies on the box.  That way, your interactive
> ssh traffic will get queuing priority over http images being loaded,
> for example.

I actually got paid to write a traffic shaping wrapper script to do
this for an ISP, way back on Red Hat Linux 7.2/7.3.  Worked like a
charm, but was hellaciously complex to deal with at the time.  Which
is why I got paid to write the script. :)


More information about the Leaplist mailing list