ip alias (2.3.42)

iafilius@xs4all.nl
Sun, 6 Feb 2000 13:28:51 +0100 (CET)


Hello,

i've made some IP-aliases on eth0 to test an other machine, but noticed
some "strange' things.

ifconfig:
eth0 Link encap:Ethernet HWaddr 00:50:04:71:88:A6
inet addr:192.168.0.5 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:301296 errors:0 dropped:0 overruns:1 frame:0
TX packets:305824 errors:0 dropped:0 overruns:0 carrier:0
collisions:193 txqueuelen:100
Interrupt:12 Base address:0xe800

eth0:0 Link encap:Ethernet HWaddr 00:50:04:71:88:A6
inet addr:194.151.176.254 Bcast:194.151.176.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:12 Base address:0xe800

eth0:1 Link encap:Ethernet HWaddr 00:50:04:71:88:A6
inet addr:194.151.176.241 Bcast:194.151.176.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:12 Base address:0xe800

eth0:2 Link encap:Ethernet HWaddr 00:50:04:71:88:A6
inet addr:192.31.140.15 Bcast:192.31.140.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Interrupt:12 Base address:0xe800

This works properly but:

#ifconfig eth0:0 down (as in the alias.txt)

Now all my eth0* devices are down (no eth0* devices with ifconfig).
Any 'ifconfig eth0* up' will bing back eth0 and aliasses at once, but
it seems not possible to remove the aliasses ?

I'd made no manual routes for host/netwerk, because the kernel sets them
now automagic, and i would suspect eth0:* in my routing table, but's not:
# route -n| grep eth0
194.151.176.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.31.140.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0

/proc/net/routes doesn't show any eth0:* either.

Trying a manual 'route add -host 192.168.2.2 dev eth0:0' works, but also
no eth0:0 entry in 'route -n' or /proc/net/route

PS: routing _seems_ to work properly, only i can't see/set it.

Greatings,

Arjan Filius
mailto:iafilius@xs4all.nl

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/