networks_classes

NAME
SYNOPSIS
DESCRIPTION
EXAMPLES
SEE ALSO
COPYRIGHT

NAME

networks_classes − OpenVZ network classes configuration

SYNOPSIS

/etc/vz/conf/networks_classes

DESCRIPTION

This file describes pools of IP addresses used for OpenVZ traffic shaping and accounting. File consist of records; each record resides on a separate line and contains a pair of values Class Network, separated by space. Here Class is number in the range 0 - MAX_CLASSES (which is defined in /etc/vz/conf/vz-functions), and Network is network block in CIDR notation (e.g. A.B.C.D/M, where M is the number of binary 1-s in network mask). If nested networks exists with different class numbers, "wider" networks must be mentioned first.

Class number 0 is reserved for network addresses used by CT themselves. OpenVZ traffic accounting won’t work unless you specify at least this class.

EXAMPLES

# Example of networks_classes file.
# host server CT’s networks
0 10.10.10.0/24
0 10.10.15.0/24
# all IP ("local" traffic)
1 0.0.0.0/0
# class 2 - "foreign" traffic
2 10.0.0.0/8
2 11.0.0.0/8
# inside "foreign" network there
# is a hole with "local" traffic
1 10.10.16.0/24

SEE ALSO

vzctl(8), vz-net_add(5).

COPYRIGHT

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