From c93923134c5e1dc5536caeea64a74329bfb69c7e Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Tue, 30 Nov 2010 21:53:02 -0500 Subject: Support multiple IP addreses via IPADDRn, PREFIXn (or NETMASKn) (#633984) Adapted from 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. --- sysconfig.txt | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'sysconfig.txt') 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= - 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= GATEWAYn= - 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 -- cgit v1.2.1