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

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux