Sunday, November 29, 2009

Linux hidden IP address

Linux has a "feature" (I'd say this is a bug) to add an alias IP address(es) to the interface AND these addressess ARE NOT displayed by /sbin/ifconfig, netstat -rn, arp -na!!

There is a mysterious command /sbin/ip addr that actually shows the hidden aliaes.

Here is a proof-of-concept code: ip_secondary.c

No comments: