[Gllug] Help with setting up a Router

Xander D Harkness xander at harkness.co.uk
Tue Sep 17 14:02:16 UTC 2002


Bush, Jonathan wrote:

>John
>
>The reason I need static routing is because all those routes to our Japanese
>and US office will never change, and they are sent through a VPN. 
>
>You mention about setting them up in the RH network configuration tool, how
>would I do this.
>
>Jonathan
>
>PS thanks to every one who has help so far, I'm a lot further than I was
>yesterday.
>  
>
Okay a step further :-)

For Red Hat the static routes are kept in:
/etc/sysconfig/static-routes

and take the format

any net 10.42.250.0 netmask 255.255.255.0 gw 202.107.199.202

so this means use ANY ethernet interface to route to network 10.42.250.0 
with a network mask of 255.255.255.0 and use gateway 202.107.199.202 to 
get there.

The only way I know of getting Red Hat to pick the information up from 
this file is to do a 'service network restart'

I hope this helps.

Kind regards
Xander

>-----Original Message-----
>From: John Winters [mailto:john at linuxemporium.co.uk]
>Sent: 17 September 2002 13:01
>To: gllug at linux.co.uk
>Subject: RE: [Gllug] Help with setting up a Router
>
>
>On Tue, 2002-09-17 at 12:49, Bush, Jonathan wrote:
>  
>
>>John 
>>
>>Well I have three in there but I'm think of only using two. As one would
>>connect to our firewall( reason why I don't need firewalling, but would
>>still like to learn), the other connect to the other lease line and the
>>third connect to our local LAN. Think of using only two as I might have a
>>problem with NAT's.
>>
>>I have tried echo 1 >/proc/sys/net/ipv4/ip_forward but every time I reboot
>>it goes back to 0.
>>    
>>
>
>Yes, it will.  All the contents of /proc are transitory.  To get the
>effect every time you boot (assuming RH7.3) edit /etc/sysctl.conf and
>change the obvious field.  This will cause the "echo 1..." bit to be
>done for you as the system boots.
>
>  
>
>>other thing is my static route disappear when I reboot.
>>    
>>
>
>Likewise.  You need to put them in the relevant configuration file. 
>This is probably easiest done with the RH network configuration tool.
>
>Why do you need separate static routes?
>
>John
>
>  
>




-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list