Subject: Re: [vserver] unable to remove an ip with naddress --remove
From: "Daniel Hokka Zakrisson" <daniel@hozac.com>
Date: Fri, 8 Aug 2008 14:22:11 +0200 (CEST)

Raoul Bhatia [IPAX] wrote:
> hi there,
>
> i today added a new vlan interface to my vserver host (eth0.137) and
> added an ip address, say 1.2.3.84/29
>
>> # ip a
>> 6: eth0.137@eth0: <BROADCAST,MULTICAST,UP,10000> mtu 1500 qdisc noqueue
>>     link/ether 00:4f:4e:0e:45:c1 brd ff:ff:ff:ff:ff:ff
>>     inet 1.2.3.84/29 brd 1.2.3.87 scope global eth0.137
>
> i then added this address to my vserver with with naddress --add:
>
>> # naddress --add --nid 13 --ip 1.2.3.84/29
>> Adding 1.2.3.84
>
>> # naddress --remove --nid 13 --ip 1.2.3.84/29
>> Removing 1.2.3.84
>> naddress: vc_net_remove(): Invalid argument
>
>> # naddress --remove --ip 1.2.3.84/29
>> Removing 1.2.3.84
>> naddress: vc_net_remove(): No such process
>
>
> my system:
>> util-vserver                                  0.30.215-2~bpo40+1
>
>> # vserver-info
>> Versions:
>>                    Kernel: 2.6.22.15-grsec2.1.11-vs2.2.0.5

This kernel doesn't support vc_net_remove other than to remove them all. Use naddress
--set --ip ... --ip ... instead.

> [...]

-- 
Daniel Hokka Zakrisson