[K12OSN] Re: Routing

Les Mikesell les at futuresource.com
Fri Jul 2 18:56:08 UTC 2004


On Wed, 2004-06-30 at 16:47, Tim Litwiller wrote:
> here is the information from an earlier post - even tho I can find it in 
> the achives - it was in my ent folder
> 
> edit /etc/sysctrl.conf
> 
> you need these 2 lines
> net.ipv4.ip_forward = 1
> net.ipv4.conf.default.proxy_arp = 1

If all machines are on their appropriate subnets and use the
central server as their default gateway you don't need to
proxy_arp.

> then add your routes like this
> route add -net xxx.xxx.xxx.xxx netmaks xxx.xxx.xxx.xxx gw xxx.xxx.xxx.xxx

All the directly attached networks should be known by their netmask
and shouldn't need explict routes.

> then make the config files that will reload those routes on a reboot
> touch /etc/sysconfig/network-scripts/route-ethx
> 
> where ethx is each of your interfaces that have routes associated with them
> 
> then grep your already setup routes into the config files you just created

If you do need to add routes through other gateways you can use the
Redhat/fedora GUI tool (system tools/network) and add the routes
using the 'route' tab of the 'edit interface' screen on the interface
facing the gateway.  Then the system will automatically add/remove them
as that interface goes up/down.

---
  Les Mikesell
   les at futuresource.com






More information about the K12OSN mailing list