Openvz - как удалить или добавить IP на VPS

Материал из Wiki - Iphoster - the best ever hosting and support. 2005 - 2023
Перейти к:навигация, поиск
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.


Openvz - как удалить или добавить IP на VPS

Как удалить IP с контейнера VPS openvz:

# vzctl set 12743 --ipdel 11.11.11.11 --save
UB limits were set successfully
Deleting IP address(es): 11.11.11.11

Как добавить IP контейнеру VPS openvz:

 # vzctl set 12743 --ipadd 22.22.22.22 --save

Опция --save - сохраняет конфигурацию VPS в файле /etc/vz/conf/12743.conf