[nycbug-talk] route add help please
Josh Rivel
josh
Tue Sep 13 16:59:48 EDT 2005
Steve Rieger wrote...
> i want to make this permanent on a server that has an ip address of
> bge0 192.168.254.220
> bge1 10.30.30.220
> i wanty all traffic running to 10.30.30.1
>
>
> so the comand would be something along the lines of
> route add 10.0.0.0 mask 255.0.0.0 10.30.30.1 -p
>
> but i do not know the exact syntax, can one of you gods please
> enlighten me.
man route(8)
route add default 10.30.30.1
To make this change permanent:
Under OpenBSD:
(as root user) echo 10.30.30.1 > /etc/mygate
Under FreeBSD edit /etc/rc.conf (as root)
and put defaultrouter="10.30.30.1" in that file.
You didn't menation what OS you are running on this machine.
hth.
--
josh
More information about the talk
mailing list