[Q] Linux and localAddress
Davide Arrigo
davide.arrigo at gmail.com
Mon Oct 29 10:44:25 UTC 2007
2007/10/29, Edgar J. De Cleene <edgardec2001 at yahoo.com.ar>:
> Folks:
>
> I playing with Linux and wish know why World reportLocalAddress report
> 127.0.01 and ifconfig on Linux console gives me 192.168.1.4.
>
Hi Edgar, your system answer correctly, in Unix/Linux each network
interface has an IP address. This is the ifconfig output on my Linux
server:
[arrigo at aleph ~]$ /sbin/ifconfig
eth0 Link encap:Ethernet HWaddr 00:0A:5E:05:9A:30
inet addr:192.168.1.200 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:3694 errors:0 dropped:0 overruns:0 frame:0
TX packets:3776 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:744868 (727.4 KiB) TX bytes:1465239 (1.3 MiB)
Interrupt:19 Base address:0x8000
eth1 Link encap:Ethernet HWaddr 00:0A:5E:61:E4:1A
inet addr:192.168.150.1 Bcast:192.168.150.255 Mask:255.255.255.0
inet6 addr: fe80::20a:5eff:fe61:e41a/64 Scope:Link
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:5712 errors:0 dropped:0 overruns:0 frame:0
TX packets:6028 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:940605 (918.5 KiB) TX bytes:6432999 (6.1 MiB)
Interrupt:20 Base address:0x4000
eth3 Link encap:Ethernet HWaddr 00:0F:EA:3B:1D:F1
inet addr:192.168.200.251 Bcast:192.168.200.255 Mask:255.255.255.0
inet6 addr: fe80::20f:eaff:fe3b:1df1/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17510798 errors:0 dropped:0 overruns:0 frame:0
TX packets:16697957 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:396599015 (378.2 MiB) TX bytes:2907114630 (2.7 GiB)
Interrupt:17
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:348589 errors:0 dropped:0 overruns:0 frame:0
TX packets:348589 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:329493617 (314.2 MiB) TX bytes:329493617 (314.2 MiB)
As you can see there are many eth interface with its IP address and at
least the localhost 127.0.0.1. Maybe you have to change your request
and ask for a specific interface.
Best Regards
--
--------------------------
Davide Arrigo
More information about the Squeak-dev
mailing list
|