From f0d1b10b45b53fe8590d17c10c40a21cb04eee0a Mon Sep 17 00:00:00 2001 From: Bill Nottingham Date: Mon, 11 Apr 2005 20:25:10 +0000 Subject: update documentation (#154531, ) --- sysconfig.txt | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/sysconfig.txt b/sysconfig.txt index b5f8a1e7..b37ba3ed 100644 --- a/sysconfig.txt +++ b/sysconfig.txt @@ -888,8 +888,32 @@ Files in /etc/sysconfig/network-scripts/ /etc/sysconfig/network-scripts/route- - 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= + NETMASKn= + GATEWAYn= + + 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 -- cgit v1.2.1