Subject: Re: [vserver] unable to remove an ip with naddress --remove
From: "Raoul Bhatia [IPAX]" <r.bhatia@ipax.at>
Date: Tue, 12 Aug 2008 10:32:47 +0200

Daniel Hokka Zakrisson wrote:
> 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.

by that, you mean that it is only possible to remove _all_ ips from a
given vserver/context?

cheers,
raoul
-- 
____________________________________________________________________
DI (FH) Raoul Bhatia M.Sc.          email.          r.bhatia@ipax.at
Technischer Leiter

IPAX - Aloy Bhatia Hava OEG         web.          http://www.ipax.at
Barawitzkagasse 10/2/2/11           email.            office@ipax.at
1190 Wien                           tel.               +43 1 3670030
FN 277995t HG Wien                  fax.            +43 1 3670030 15
____________________________________________________________________