全部博文(168)
分类: LINUX
2009-09-28 22:50:40
Description of problem: Background: a physical interface (i.e.: eth0) with a few virtual interfaces associated to it (i.e.: eth0:0, eth0:1, eth0:2...). When you try to drop just one of the virtual interfaces (i.e.: eth0:3) with "ifconfig eth0:x down", it drops that interface AND all the next interfaces of the same subnet (i.e.: eth0:3, 3th0:4, eth0:5). A weird thing is that previous interfaces remain "up" even if they belong to the same subnet (i.e.: eth0:2).---------------------------------------------------------------------
Have you tried to set promote secondaries sysctl variable? I.e.: ifconfig eth0:x 192.168.10.x/24 ... sysctl net.ipv4.conf.eth0.promote_secondaries=1 ifconfig eth0:0 down Addresses on the same subnets are noted as secondaries, when you remove the very first, i.e. primary one, kernel kills others. When you don't want this behaviour, enable promoting of secondaries and kernel will choose the following address (virtual device) and set is as primary. Tip: try to convert to ip(8), it says you they're secondary.=====================================================================