[clue-tech] Static routing help?

David L. Anselmi anselmi at anselmi.us
Wed Apr 15 22:38:15 MDT 2009


Jed S. Baer wrote:
> The netblock is 205.168.221.216 255.255.255.248
> The router's LAN IP is 205.168.221.217

route add default gw 205.168.221.217

You might also want/need:

route add -net 205.168.221.216 netmask 255.255.255.248 dev eth0

If you follow Chris's example for the interfaces file then ifup/down
handle it for you.

If you already have something in interfaces then you can put in a 
logical interface like "router".  Then:

ifdown eth0 ; ifup eth0=router

should reconfigure you to talk to the router.  See 10.6.2 at:

http://www.debian.org/doc/manuals/reference/ch-gateway.en.html

Dave



More information about the clue-tech mailing list