aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig.txt
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-11-30 21:53:02 -0500
committerPetr Lautrbach <plautrba@redhat.com>2010-12-06 15:50:44 +0100
commitc93923134c5e1dc5536caeea64a74329bfb69c7e (patch)
tree45e9facf4c1f727e9f729f085bd80993cc0ab7db /sysconfig.txt
parent9eb05ee238224f84c3322d6331b72b378de05480 (diff)
downloadinitscripts-c93923134c5e1dc5536caeea64a74329bfb69c7e.tar
initscripts-c93923134c5e1dc5536caeea64a74329bfb69c7e.tar.gz
initscripts-c93923134c5e1dc5536caeea64a74329bfb69c7e.tar.bz2
initscripts-c93923134c5e1dc5536caeea64a74329bfb69c7e.tar.xz
initscripts-c93923134c5e1dc5536caeea64a74329bfb69c7e.zip
Support multiple IP addreses via IPADDRn, PREFIXn (or NETMASKn) (#633984) Adapted from <jklimes@redhat.com>
In addition to legacy IP aliases, this commit adds a support for configuring mupliple IPs via single ifcfg file. It uses the same syntax and behaviour as NetworkManager.
Diffstat (limited to 'sysconfig.txt')
-rw-r--r--sysconfig.txt18
1 files changed, 14 insertions, 4 deletions
diff --git a/sysconfig.txt b/sysconfig.txt
index e3486bbf..ea4e9740 100644
--- a/sysconfig.txt
+++ b/sysconfig.txt
@@ -511,8 +511,18 @@ Files in /etc/sysconfig/network-scripts/
Most important for PPP. Only used in front ends.
DEVICE=<name of physical device (except dynamically-allocated PPP
devices where it is the "logical name")>
- IPADDR=
- NETMASK=
+ IPADDRn=
+ PREFIXn=
+ Network prefix. It is used for all configurations except aliases
+ and ippp devices. It takes precedence over NETMASK when both
+ PREFIX and NETMASK are set.
+ NETMASKn=
+ Subnet mask; just useful for aliases and ippp devices. For all other
+ configurations, use PREFIX instead.
+
+ The "n" is expected to be consecutive positive integers starting from 0.
+ It can be omitted if there is only one address being configured.
+
GATEWAY=
METRIC=
Metric for the default route using GATEWAY
@@ -928,8 +938,8 @@ Files in /etc/sysconfig/network-scripts/
NETMASKn=<network/prefix mask>
GATEWAYn=<next-hop router/gateway IP address>
- The "n" can be any integer number, but is expected to be consecutive
- positive integers starting from 0. For example:
+ The "n" is expected to be consecutive positive integers starting from 0.
+ For example:
ADDRESS0=192.168.2.0
NETMASK0=255.255.255.0