[Gllug] Save routing table changes in CentOS 4.3/RHEL4

Tom Robinson yzenezy at gmail.com
Wed Jul 26 12:39:08 UTC 2006


it also supports shell variables like:

ADDRESS0=192.168.3.0
NETMASK0=255.255.255.0
GATEWAY0=192.168.1.254

to produce this automagically:

192.168.3.0/24 via 192.168.1.254

You can have multiple routes by incrementing the numeric enumerator for each
ADDRESSn, NETMASKn, GATEWAYn combination

t.
On 26/07/06, Alain Williams <addw at phcomp.co.uk> wrote:
>
> On Wed, Jul 26, 2006 at 11:04:28AM +0100, Tom Robinson wrote:
> > on rhel4 (and centos because it uses the same scripts) you can specify
> > static routes in /etc/sysconfig/network-scripts/route-<interface>. You
> > should be able to use the 'ip route add' command syntax for these
> routes.
>
> Eg lines like:
>
>         192.168.3.0/24 via 192.168.1.254
>
> --
> Alain Williams
> Parliament Hill Computers Ltd.
> Linux Consultant - Mail systems, Web sites, Networking, Programmer, IT
> Lecturer.
> +44 (0) 787 668 0256  http://www.phcomp.co.uk/
>
> #include <std_disclaimer.h>
> --
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
>



-- 
Regards,

Tom Robinson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20060726/f11b7bb7/attachment.html>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list