Search

Language:  
Search for:

Available article translations:

How do I add or remove an IP address to/from a VE?

Article ID: 781, created on Oct 6, 2008, last review on May 11, 2014

APPLIES TO:
  • Virtuozzo
  • Virtuozzo containers for Linux
  • Virtuozzo hypervisor

Question

How do I add or remove an IP address to/from a VE?

Answer

  • For Host-routed mode

To add the IP address 192.168.1.2 to VE 101, run the following command on the Hardware Node:

# vzctl set 101 --ipadd 192.168.1.2 --save

To release an IP address from a VE, use the same command with the --ipdel option.

  • For Bridged mode

First create a new veth virtual network adapter and assigns the name to the Ethernet interface inside the Container:

# vzctl set 101 --netif_add eth0 --save

After this, to add the IP address 192.168.1.2 to VE 101 in bridged mode, run the following command on the Hardware Node:

# vzctl set 101 --ifname eth0 --network Bridged --ipadd 192.168.1.2/24 --gw 192.168.1.1

To remove the bridged adapter from container, use --netif_del option.

Note

Valid network mask and gateway settings are required in case of Bridged mode.

Search words:

subnet




e8e50b42231236b82df27684e7ec0beb d02f9caf3e11b191a38179103495106f 2897d76d56d2010f4e3a28f864d69223 a26b38f94253cdfbf1028d72cf3a498b 0dd5b9380c7d4884d77587f3eb0fa8ef

FEEDBACK
Was this article helpful?
Tell us how we may improve it.
Yes No
 
 
 
 
 
 
Server Virtualization
- Odin Cloud Server
- Odin Containers for Windows 6.0
- Odin Virtuozzo Containers
Automation
- Odin Automation
- Odin Automation for Cloud Infrastructure
- Odin Business Automation Standard
- Odin Virtual Automation
- Odin Plesk Panel Suite
- Web Presence Builder
- Odin Plesk Automation
- Odin Small Business Panel
- Value-added Services for Hosters
- Odin Partner Storefront
Services & Resources
- Cloud Acceleration Services
- Professional Services
- Support Services
- Training & Certification