ve-alias_add − Container’s script for adding an IP alias
/etc/sysconfig/vz-scripts/ve-alias_add
The ve-alias_add shell script is called by vzctl(8) when it gets called with --ipadd option.
This script is executed inside CT. It adds IP alias by creating/modifying CT configuration files /etc/sysconfig/network-scripts/ifcfg-venet0:NNN).
Parameters are passed to the script in the form of environment variables. The following variables can be defined:
IP_ADDR |
IP address(es) to add as an alias to CT. Several addresses are divided by space. | ||
DIST |
Name of the distribution this CT runs (like redhat-7.1). Used for script to do distribution-dependent setup. | ||
VE_STATE |
This (optional) variable is telling the state of CT and can be one of the following: running, starting, stopping, stopped. |
The script is expected to return 0 on success, any other return code will be printed by vzctl.
vzctl(8).
Copyright (c) 2000-2015 Parallels IP Holdings GmbH. All rights reserved.