I'm putting my hands on a legacy system (a Xen cluster) and I'm trying to understand its architecture. It seems that there are services listening on an IP (say, 1.2.3.4) that doesn't show up in ifconfig output:
# ifconfig
eth0 Link encap:Ethernet HWaddr 00:16:3e:98:46:4b
inet addr:3.3.3.3 Bcast:3.3.3.255 Mask:255.255.255.0
inet6 addr: fe80::216:3eff:fe98:464b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2701271309 errors:0 dropped:0 overruns:0 frame:0
TX packets:2580523122 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2013971483375 (1.8 TiB) TX bytes:1994970579127 (1.8 TiB)
eth0:0 Link encap:Ethernet HWaddr 00:16:3e:98:46:4b
inet addr:10.0.5.4 Bcast:10.0.5.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
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:12776938 errors:0 dropped:0 overruns:0 frame:0
TX packets:12776938 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2103144670 (1.9 GiB) TX bytes:2103144670 (1.9 GiB)
If I have nc listen on the IP 1.2.3.4, it is reachable by the outside:
nc -s 1.2.3.4 -p 8081 -l
(i.e. I can telnet or nc to 1.2.3.4:8081 and send data).
This leads me to the conclusion that there's no NAT. However, why doesn't ifconfig list the IP?
ifconfigdoesn't list it. – Alessandro Apr 8 '11 at 19:24