network gateway with a foreign IP address

Mikkel L. Ellertson mikkel at infinity-ltd.com
Sun Apr 13 17:08:29 UTC 2008


Claude Jones wrote:
> 
> *********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?
> 
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.

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!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20080413/b483cd96/attachment-0001.sig>


More information about the fedora-list mailing list