networks_classes(5)
| networks_classes(5) | File Formats Manual | networks_classes(5) |
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
COPYRIGHT
Copyright (c) 1999-2017, Parallels International GmbH. All rights reserved. Copyright (c) 2017-2019 Virtuozzo International GmbH. All rights reserved.
| October 2009 | OpenVZ |
