[Leaplist] What are my local IP addresses?

Richard F. Ostrow Jr. kshots at warfaresdl.com
Fri Jun 29 10:13:48 EDT 2007


Which package does "ip" come under? Under both my gentoo and my freebsd
boxes, I do not have an "ip" utility...
-- 
Life without passion is death in disguise

On Fri, June 29, 2007 6:57 am, 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 }'
>
> On 6/29/07, Phil Barnett <philb at philb.us> wrote:
>> I was looking for a simple way to list all of the configured IP
>> addresses on a
>> linux box. Here's what I ended up with.
>>
>> Anyone know an easier way?
>>
>> ifconfig | grep "inet addr" | cut -d':' -f2 | cut -d' ' -f1
>>
>> If you don't want to see the localhost(s), you can:
>>
>> ifconfig | grep "inet addr" | cut -d':' -f2 | cut -d' ' -f1 | grep -v
>> 127.0.0.
>>
>> If you're not root, you may have to use ifconfig with /sbin/ifconfig.
>>
>> --
>> Phil Barnett
>> AI4OF
>> SKCC #600
>> _______________________________________________
>> Leaplist mailing list
>> Leaplist at leap-cf.org
>> http://lists.leap-cf.org/mailman/listinfo/leaplist
>>
> _______________________________________________
> Leaplist mailing list
> Leaplist at leap-cf.org
> http://lists.leap-cf.org/mailman/listinfo/leaplist
>




More information about the Leaplist mailing list