Skip to contentSkip to conversation

ifconfig bug removes aliases

DISCUSSION Aron Griffis 2 participants 3 messages Mar 10, 2004 – Mar 13, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Hello, here is the sequence:

    ifconfig eth0:1 10.10.10.1 netmask 255.255.0.0 
    ifconfig eth0:2 10.10.10.2 netmask 255.255.0.0 
    ifconfig eth0:1 down

At this point eth0:2 has disappeared also. It appears that the aliases must be on the same subnet for this to occur, and the creation order is also important.

Aron

#1 lore raw

Hello,

Quoted 9 lines · Aron Griffis

Hello, here is the sequence:

    ifconfig eth0:1 10.10.10.1 netmask 255.255.0.0
    ifconfig eth0:2 10.10.10.2 netmask 255.255.0.0
    ifconfig eth0:1 down

At this point eth0:2 has disappeared also. It appears that the aliases must be on the same subnet for this to occur, and the creation order is also important.

From inet_del_ifa:

/* 1. Deleting primary ifaddr forces deletion all secondaries */

Regards

--
Julian Anastasov <[email protected]>

#2 lore raw

Julian Anastasov wrote: [Sat Mar 13 2004, 05:07:05AM EST]

Quoted 8 lines · Aron Griffis
Quoted 7 lines

Hello, here is the sequence:

    ifconfig eth0:1 10.10.10.1 netmask 255.255.0.0
    ifconfig eth0:2 10.10.10.2 netmask 255.255.0.0
    ifconfig eth0:1 down
Quoted 7 lines
Quoted 3 lines

At this point eth0:2 has disappeared also. It appears that the aliases must be on the same subnet for this to occur, and the creation order is also important.

From inet_del_ifa:

/* 1. Deleting primary ifaddr forces deletion all secondaries */

Thanks, I am aware of that behavior, but that is not the bug I am describing. In this case it is the deletion of one alias that causes another to be removed as well.

Aron