Claude Jones wrote:
The route-<interface-name> file contains the data that is used by the interface activation script to add routes specific to that interface. Although strikingly accurate, You can think of the file running the route add command with the information provided in the file passed to the route command. I have not checked to see if it is still true, but the file used to accept routes in 2 formats - the one you show, and form used by the route command.*********from the man page************* route-<interface-name> 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> ********************************************What I don't get is the relationship between the 'ip route add' command and this 'route-eth0' file. Is this file created by executing that command? It doesn't look to me like the file is a script/executable, or am I wrong -- am I supposed to create that file and use the correctly syntaxed 'ip route add' commands inside that file?
You either have to create the file by hand, or use one of the network setup GUIs to create it.
Mikkel -- Do not meddle in the affairs of dragons, for thou art crunchy and taste good with Ketchup!
Attachment:
signature.asc
Description: OpenPGP digital signature