* Jacques Gelinas ([EMAIL PROTECTED]) wrote: > The ip command uses the same kernel interface as ifconfig to setup IP aliases. > The SECONDARY flag can't be touched using the kernel interface. > So the command will produce the same problem. > > While the ip command do more, especially on the routing side, it does the > same thing on the IP aliases side.
This isn't actually the case. The difference is how you can set the secondary flag, etc. Try this: # ip addr add 192.168.1.0/24 dev eth0 # ip addr add 192.168.1.1 dev eth0 # ip addr add 192.168.1.2 dev eth0 # ip addr list now you have two useable aliaes .1 and .2 (try pinging them from another machine). With .1 being the first one you set up (take note of the subnets that they are assigned to). # ip addr del 192.168.1.1 dev eth0 # ip addr list and, voila, .2 still exists. thanks, -chris -- Linux Security Modules http://lsm.immunix.org http://lsm.bkbits.net _______________________________________________ Vserver mailing list [EMAIL PROTECTED] http://list.linux-vserver.org/mailman/listinfo/vserver
