[Vm-dev] Finding ip address for eth0?
John M McIntosh
johnmci at smalltalkconsulting.com
Wed Aug 26 19:39:51 UTC 2009
Grrr commas in data and in printing the order collection screw the
interpretation
an OrderedCollection(fe80::21c:42ff:fe00:8%en4(Otter-2),0(0)-inet6-
stream-tcp fe80::21c:42ff:fe00:9%en4(fe80::21c:42ff:fe00:9%en4),0(0)-
inet6-stream-tcp fe80::21b:63ff:fe02:d2db%en4(fe80::21b:63ff:fe02:d2db
%en4),0(0)-inet6-stream-tcp 10.211.55.2(10.211.55.2),0(0)-inet4-stream-
tcp 10.37.129.2(10.37.129.2),0(0)-inet4-stream-tcp
192.168.1.139(192.168.1.139),0(0)-inet4-stream-tcp)
is really
fe80::21c:42ff:fe00:8%en4(Otter-2),0(0)-inet6-stream-tcp
10.211.55.2(10.211.55.2),0(0)-inet4-stream-tcp
fe80::21b:63ff:fe02:d2db%en4(fe80::21b:63ff:fe02:d2db%en4),0(0)-inet6-
stream-tcp
10.211.55.2(10.211.55.2),0(0)-inet4-stream-tcp
10.37.129.2(10.37.129.2),0(0)-inet4-stream-tcp
192.168.1.139(192.168.1.139),0(0)-inet4-stream-tcp
Still
fe80::21b:63ff:fe02:d2db%en4(fe80::21b:63ff:fe02:d2db%en4),0(0)-inet6-
stream-tcp
is hung off en1 not en4 and shows in ifconfig as fe80::21b:
63ff:fe02:d2db%en1
On 26-Aug-09, at 11:50 AM, Andreas Raab wrote:
> Quick Unix question: How do I find out what the IP address for eth0/
> eth1 is? I thought NetNameResolver>>localHostAddress was supposed to
> return this but it returns consistently 127.0.0.1 which is fine from
> a purity point of view but utterly useless from any practical
> perspective ;-)
>
> Is there any way of finding out the IP address for eth0 that doesn't
> involve OS process, sed, and grep?
>
> Thanks,
> - Andreas
>
--
=
=
=
========================================================================
John M. McIntosh <johnmci at smalltalkconsulting.com> Twitter:
squeaker68882
Corporate Smalltalk Consulting Ltd. http://www.smalltalkconsulting.com
=
=
=
========================================================================
More information about the Vm-dev
mailing list