Re: /etc/sysconfig/network-scripts/route-ethN Question

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

 



On Tue, Jun 7, 2011 at 9:02 AM, Matty Sarro <msarro@xxxxxxxxx> wrote:
> Hey everyone,
> I am trying to find out more about setting up per-device routing using
> the /etc/sysconfig/network-scripts/route-ethN file. Basically I'm not
> about to find any real details about how the file is supposed to be
> created. Is it just a shell script with ip route commands? I have
> three network interfaces, and each needs to be connected to its own
> discrete network with its own gateway. Right now I have all of the
> rules set up in /etc/rc.local, which seems to work fine for the first
> two interfaces, but not the third.
>
> Due to the circumstances, normal static routing won't work - I need to
> use iproute2.
>
> Since the /etc/sysconfig/network-script/route-ethN file gets run when
> the interface comes up, I am assuming this may help. Any advice is
> appreciated.
>
> --
> redhat-list mailing list
> unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
>

Take a look at the ifup and ifdown scripts.  It will give you a good
idea how the route files work and how they are implemented and
removed.

-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list


[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux