Re: network gateway with a foreign IP address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri April 11 2008, Robert Locke wrote:
> The file that probably makes the most sense to put the
> entry in to is /etc/sysconfig/network-scripts/route-eth0 (assuming this
> is based on eth0).  Instead of the article's use of "up", you want to
> look at the syntax of the "ip" command: ip route add ....

I am pursuing this because I figure that if I figure out exactly what it is 
that's necessary to make the configuration work, I'll be better able to 
object, or at least, my knowledge base will improve...

I'm reading the man pages for 'ip' and trying to put this together with the 
syntax of the file 'route-eth0' which it seems I must create to make this all 
work. I'm stumbling. It appears that that 'route-eth0' file is just a series 
of entries of this form:

*********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?

-- 
Claude Jones
Brunswick, MD, USA


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux