aboutsummaryrefslogtreecommitdiffstats
path: root/sysconfig.txt
diff options
context:
space:
mode:
authorBill Nottingham <notting@redhat.com>2005-04-11 20:25:31 +0000
committerBill Nottingham <notting@redhat.com>2005-04-11 20:25:31 +0000
commit30c44c17944ba5a0e0cad25c06ae54d7479b4b84 (patch)
tree177c4edfc88959b555a212de5375fc1b53ed842a /sysconfig.txt
parent36010966764f9694acd21490b478a14d163f7955 (diff)
downloadinitscripts-30c44c17944ba5a0e0cad25c06ae54d7479b4b84.tar
initscripts-30c44c17944ba5a0e0cad25c06ae54d7479b4b84.tar.gz
initscripts-30c44c17944ba5a0e0cad25c06ae54d7479b4b84.tar.bz2
initscripts-30c44c17944ba5a0e0cad25c06ae54d7479b4b84.tar.xz
initscripts-30c44c17944ba5a0e0cad25c06ae54d7479b4b84.zip
update documentation (#154531, <link@pobox.com>)
Diffstat (limited to 'sysconfig.txt')
-rw-r--r--sysconfig.txt28
1 files changed, 26 insertions, 2 deletions
diff --git a/sysconfig.txt b/sysconfig.txt
index 622c49fc..b6251397 100644
--- a/sysconfig.txt
+++ b/sysconfig.txt
@@ -877,8 +877,32 @@ Files in /etc/sysconfig/network-scripts/
/etc/sysconfig/network-scripts/route-<interface-name>
- Contains lines that are arguments to "/sbin/ip route add"
- For example:
+ Contains lines that specify additional routes that should be added when the
+ associated interface is brought up.
+
+ The files are processed by the ifup-routes script and uses the /sbin/ipcalc
+ utility for all network masks and numbers. Routes are specified using the
+ syntax:
+
+ ADDRESSn=<network>
+ NETMASKn=<network/prefix mask>
+ GATEWAYn=<next-hop router/gateway IP address>
+
+ The "n" can be any integer number, but is expected to be monotonically
+ increasing and counting starts from 0. For example:
+
+ ADDRESS0=192.168.2.0
+ NETMASK0=255.255.255.0
+ GATEWAY0=192.168.1.1
+
+ adds a network route to the 192.168.2.0 network via the gateway at
+ 192.168.1.1. Since you must already have a route to the network of the
+ gateway, there is no need to specify a device.
+
+ Note: The ifup-routes script also supports an older syntax designed to be
+ used directly as an argument to "/sbin/ip route add". This syntax is
+ deprecated, but if no "ADDRESSn" lines are found the following will still
+ work:
192.168.2.0/24 dev ppp0