OpenVZ Forum


Home » Mailing lists » Users » adding secondary IP
adding secondary IP [message #12250] Mon, 23 April 2007 07:02 Go to next message
Markus Hardiyanto is currently offline  Markus Hardiyanto
Messages: 27
Registered: April 2007
Junior Member
how can i add secondary IP for a VE? i need to add this for nameserver IP.

do i need to run
vzctl set VEID --ipadd

for the second IP?
Best Regards,
Markus



Send instant messages to your online friends http://uk.messenger.yahoo.com
Re: adding secondary IP [message #12251 is a reply to message #12250] Mon, 23 April 2007 07:16 Go to previous messageGo to next message
Rudy Setiawan is currently offline  Rudy Setiawan
Messages: 4
Registered: April 2007
Junior Member
Hallo Markus,

Yep2 just use vzctl set <VEID> --ipadd <ip> --save

the --save flag will save the IP information in the VEID.conf for that
particular VEID.

Regards,
Rudy

Markus Hardiyanto wrote:
> how can i add secondary IP for a VE? i need to add this for nameserver IP.
>
> do i need to run
> vzctl set VEID --ipadd
>
> for the second IP?
> Best Regards,
> Markus
>
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
Re: adding secondary IP [message #12254 is a reply to message #12250] Mon, 23 April 2007 08:38 Go to previous message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
Hello Markus,

If you wish to have a second IP address for a VE you should give
HN@root# vzctl set <veid> --ipadd <second_ip> --save
command. It will create second venet interface with specified IP address
in VE.

But if you wish to set a nameserver for VE, then use
HN@root# vzctl set <veid> --nameserve <nameserver_ip> --save
command. It will modify /etc/resolv.conf file in VE and produce other
distribution-specific actions in order your VE to be able to resolve
domain names.

HTH,
Vasily.

Markus Hardiyanto wrote:
> how can i add secondary IP for a VE? i need to add this for nameserver IP.
>
> do i need to run
> vzctl set VEID --ipadd
>
> for the second IP?
> Best Regards,
> Markus
>
>
>
> Send instant messages to your online friends http://uk.messenger.yahoo.com
Previous Topic: creating partition for VE and networking
Next Topic: RT priority processes in a VE.
Goto Forum:
  


Current Time: Sun Sep 15 13:19:03 GMT 2024

Total time taken to generate the page: 0.03391 seconds