> Thanks for the reply, can I just create the /etc/sysconfig/static-routes
> file if it does not exsist? Can I just add routes with "route add -net
> x.y.z.t netmask 255.255.255.0 gw a.b.c.d dev eth1" within the file? Mitel
> uses "eth0 -net xxxx.netmask y.y.y.y gw z.z.z.z", must I use the first
one?
> Last one quick, how can I activate the routes without bouncing the box?
> Appreciate your help.
> > > Morning,
> > > A bit of a green question, but I have a RH8 box running purely as a
> > > router, the layout has just been added another dimention, which leaves
> me
> > > a bit dazed and confused :)
> > > How can I add a route to a specific interface?
> > > The router has 2 network cards.
> > > eth0 192.168.21.253
> > > eth1 192.168.10.253
> > > 192.168.0.253 is a Mitel SME server (192.168.10.254/192.168.11.10),
> acting
> > > as gateway to 192.168.11.0
> > > IMHO, I need to add a route on eth0, 192.168.11.253 nm 255.255.255.0
gw
> > > 192.168.10.254 ?
> > I am not quite sure what you want to do, but if you want to force some
> > interface, it is done using dev:
> > route add -net x.y.z.t netmask 255.255.255.0 gw a.b.c.d dev eth1
> > replacing 255.255.255.0 with appropriate mask, and eth1 with apropriate
> > interface.
> > But it is rarely necessary to explain which interface should be used.
> > If you have smth like this:
> > 192.168.21.1 192.168.44.1
> > --------------[box A]-------------------[box B]--------------[box
C]-----
> > eth0 eth1 other
> > 192.168.21.253 192.168.21.253 nets
> > here
> > you should say
> > route add -net 192.168.44.0 netmask 255.255.255.0 gw 192.168.21.1
> > now you could use some host at .44.0 network as a gw (gateway) to
> > some other network
> > > Any help will be appreciated.
> > > Thx
RH8 doesn't use that configuration anymore. If you put it in static-routes,
it will be ignored. You need to create a file called
/etc/sysconfig/network-scripts/route-eth0 (replace device as necessary)
with the route in it in this format:
192.168.0.0/24 via 192.168.0.101
ken k