OpenVZ Forum


Home » Mailing lists » Users » Change IP address inside VE
Change IP address inside VE [message #29757] Thu, 24 April 2008 07:07 Go to next message
misch is currently offline  misch
Messages: 3
Registered: April 2008
Junior Member
Hi,

due to the nature of a setup I have I have to change the IP address of my
virtual server from inside the virtual server. Better: I want to add a
cluster IP address to the interface.

Normally I have to do this with
vzctl set 500 --ipaddr 1.2.3.4
from the host server. But:

Is this possible from within the virtual server to setup the ip address? What
is the parameter
vzctl set 500 --capability net_admin:on
good for? How can I use it?

Thanks for any hint.

--
Dr. Michael Schwartzkopff
MultiNET Services GmbH
Addresse: Bretonischer Ring 7; 85630 Grasbrunn; Germany
Tel: +49 - 89 - 45 69 11 0
Fax: +49 - 89 - 45 69 11 21
mob: +49 - 174 - 343 28 75

mail: misch@multinet.de
web: www.multinet.de

Sitz der Gesellschaft: 85630 Grasbrunn
Registergericht: Amtsgericht München HRB 114375
Geschäftsführer: Günter Jurgeneit, Hubert Martens

---

PGP Fingerprint: F919 3919 FF12 ED5A 2801 DEA6 AA77 57A4 EDD8 979B
Skype: misch42
Re: Change IP address inside VE [message #29775 is a reply to message #29757] Thu, 24 April 2008 08:37 Go to previous message
Christian Hofstaedtle is currently offline  Christian Hofstaedtle
Messages: 4
Registered: March 2008
Junior Member
* Michael Schwartzkopff <misch@multinet.de> [080424 09:24]:
> due to the nature of a setup I have I have to change the IP address of my
> virtual server from inside the virtual server. Better: I want to add a
> cluster IP address to the interface.
 
> Is this possible from within the virtual server to setup the ip address? What
> is the parameter
> vzctl set 500 --capability net_admin:on
> good for? How can I use it?

I think you've got two options:
1) You can use VETH devices instead of VENET. VETH is a more strict
seperation of the network stuff, and full IP configuration is
available in the VE.

2) _If_ you only want this VIP on _ONE_ host node, you probably can
manually set up routing and ARP on the host node for your VIP, and
then just use ifconfig inside the VEs. Haven't tried this out, but
I'd assume it works.

Christian
Previous Topic: Change IP address inside VE
Next Topic: vzmigrate (3.0.22) destroy the source, even -r no
Goto Forum:
  


Current Time: Tue Mar 19 03:40:22 GMT 2024

Total time taken to generate the page: 0.02265 seconds