vz-net_del − Container’s script for removing an IP alias
/etc/sysconfig/vz-scripts/vz-net_del
The
vz-net_del script is called by vzctl(8). The
script can be any
executable file and is usually a shell script.
First, it removes source routing for this IP, by executing command "/sbin/ip route del addr dev venet0", where addr is given IP address.
Then, it removes ARP records for given IP from all interfaces, excluding those with LOOBBACK or NOARP flags set, by executing command "/sbin/ip neigh del proxy addr dev device", where addr is IP address and device is network interface device name (like eth0).
Parameters are passed to the script in the form of environment variables. The following variables can be defined:
VEID |
Numeric id of CT. | ||
IP_ADDR |
IP address(es) to remove from 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. | ||
VZ_LOG |
Location of log file to write log to (optional). |
The script is expected to return 0 on success, any other return code will be printed by vzctl.
vzctl(8).
Copyright (c) 1999-2015 Parallels IP Holdings GmbH. All rights reserved.