Search

Language:  
Search for:

Available article translations:

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

APPLIES TO:
  • Parallels Cloud Server
  • Parallels Virtuozzo Containers for Linux
  • Parallels Server

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




eb0ea3b827d18de2329b6477e24c1d59 909d99074e442b52ce54cc7b31cf065d 2897d76d56d2010f4e3a28f864d69223 ca05eaf5b843fbd53589c90d7228a6df bf1c3a170005eae151f49ba2720abde9

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