aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig.txt
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2010-11-30 21:53:02 -0500
committerBill Nottingham <notting@redhat.com>2010-11-30 21:53:02 -0500
commitff5befb95b133cc1da3f32ffcd9f3cef779244b6 (patch)
treec2f360e405892a0add6ac011917d96c3fe2374aa /sysconfig.txt
parentd624aba089bd95acfe8f02bebb01c34a4f242216 (diff)
downloadinitscripts-ff5befb95b133cc1da3f32ffcd9f3cef779244b6.tar
initscripts-ff5befb95b133cc1da3f32ffcd9f3cef779244b6.tar.gz
initscripts-ff5befb95b133cc1da3f32ffcd9f3cef779244b6.tar.bz2
initscripts-ff5befb95b133cc1da3f32ffcd9f3cef779244b6.tar.xz
initscripts-ff5befb95b133cc1da3f32ffcd9f3cef779244b6.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.txt14
1 files changed, 9 insertions, 5 deletions
diff --git a/sysconfig.txt b/sysconfig.txt
index c31cea6a..ee38d6af 100644
--- a/sysconfig.txt
+++ b/sysconfig.txt
@@ -522,14 +522,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=
- PREFIX=
+ 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.
- NETMASK=
+ 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
@@ -997,8 +1001,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