[Leaplist] What are my local IP addresses?
Andrew
aander07 at packetmaster.com
Fri Jun 29 16:11:10 EDT 2007
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.
More information about the Leaplist
mailing list