Re: ifconfig eth0:0 down removes all virtual interfaces [CONFIRMED

Jordan Mendelson (jordy@wserv.com)
Mon, 15 Feb 1999 14:19:04 -0500


Meelis Roos wrote:
>
> 1.
> #!/bin/sh
> ifconfig eth0:0 192.168.100.1
> ifconfig eth0:1 192.168.100.2
> ifconfig eth0:2 192.168.100.3
> ifconfig eth0:3 192.168.100.5
> ifconfig eth0:4 192.168.100.100
>
> This adds 5 virtual interfaces. OK so far.
>
> 2.
> ifconfig eth0:0 down
>
> This removes ALL virtual interfaces!
> If I try to remove eth0:1 it wil remove only eth0:1 and leave others up.
>
> 2.2.1ac5 (not time at the moment to test non-ac kernel), eth0 is not from
> 192.168.100.* net.

# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:A0:24:72:EB:0A
inet addr:10.0.0.9 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:59799 errors:3 dropped:3 overruns:0 frame:6
TX packets:38292 errors:0 dropped:0 overruns:0 carrier:3
Collisions:2
Interrupt:18 Base address:0xda00

# ifconfig eth0:0 192.168.100.1
# ifconfig eth0:0
eth0:0 Link encap:Ethernet HWaddr 00:A0:24:72:EB:0A
inet addr:192.168.100.1 Bcast:192.168.100.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:18 Base address:0xda00

# ifconfig eth0:1 192.168.100.2
# ifconfig eth0:1
eth0:1 Link encap:Ethernet HWaddr 00:A0:24:72:EB:0A
inet addr:192.168.100.2 Bcast:192.168.100.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:18 Base address:0xda00

# ifconfig eth0:2 192.168.100.3
# ifconfig eth0:2
eth0:2 Link encap:Ethernet HWaddr 00:A0:24:72:EB:0A
inet addr:192.168.100.3 Bcast:192.168.100.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:18 Base address:0xda00

# ifconfig eth0:3 192.168.100.5
# ifconfig eth0:3
eth0:3 Link encap:Ethernet HWaddr 00:A0:24:72:EB:0A
inet addr:192.168.100.5 Bcast:192.168.100.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:18 Base address:0xda00

# ifconfig eth0:4 192.168.100.100
# ifconfig eth0:4
eth0:4 Link encap:Ethernet HWaddr 00:A0:24:72:EB:0A
inet addr:192.168.100.100 Bcast:192.168.100.255
Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:18 Base address:0xda00

# ifconfig eth0:0 down
# ifconfig eth0:1

eth0:1 Link encap:Ethernet HWaddr 00:A0:24:72:EB:0A
unspec addr:[NONE SET] Bcast:[NONE SET] Mask:[NONE SET]
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
Collisions:0
Interrupt:18 Base address:0xda00

Confirmed. I've forwarded this to the networking maintainers.

Linux night 2.2.1 #1 SMP Sat Feb 13 19:48:46 EST 1999 i686 unknown

Jordan

--
Jordan Mendelson     : http://jordy.wserv.com
Web Services, Inc.   : http://www.wserv.com

- 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/