vz-net_del

NAME
SYNOPSIS
DESCRIPTION
OPTIONS
DIAGNOSTICS
SEE ALSO
COPYRIGHT

NAME

vz-net_del − Container’s script for removing an IP alias

SYNOPSIS

/etc/sysconfig/vz-scripts/vz-net_del

DESCRIPTION

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).

OPTIONS

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).

DIAGNOSTICS

The script is expected to return 0 on success, any other return code will be printed by vzctl.

SEE ALSO

vzctl(8).

COPYRIGHT

Copyright (c) 1999-2015 Parallels IP Holdings GmbH. All rights reserved.