[plug] Adding a permanent route on a RH5.2 box

Michael Hunt Michael.J.Hunt at usa.net
Tue Mar 23 13:13:33 WST 1999


> basicaly ... you need to create a file called
> "/etc/sysconfig/static-routes"
> this file has one route per line BUT it is in a backward format :(
> Each line reads:
>
> DEVICE <Route Args>
>
> ie if the route command you use is
>
> route add -net 1.2.3.0 netmask 255.255.255.0 gw a.b.d.d metric 1 eth0
>
> the appropriate static-routes entry is
> eth0 net 1.2.3.0 netmask 255.255.255.0 gw a.b.d.d metric 1
>      ^
>      | Note the lack of the '-' chracter.
> HTH

Ok. So if the command is:

route add -host 255.255.255.255 dev eth0

then the command to go in would be:

eth0 host 255.255.255.255 ? (Doesn't seem to work)

If you want to know why I am having to add such a strange address its
because MS clients won't work (get IP addresses under DHCP) without this
broadcast address being set.

>
> once you have edited the file try:
>
> /etc/rc.d/init.d/network retstart; route
>
> If your route is there then you've done it right.

I did this across a PPP connection an didn't really consider what I was
doing until after I issued the command !!!!

Started to wonder why I couldn't see the box anymore !!!!

(Its backup as I use to diald to service some home machine requests so I was
able to tell that my entry didn't work)
>
> Yours Tony.
>



More information about the plug mailing list