5

set static default route in a router, in linux

view full story
linux-howto

http://serverfault.com – How do I set up a static default route, for a router, in linux? I know that the usual way to go for a static route is to edit the /etc/network/interfaces and add at the proper interfaces the following line: up route add -net <destination> gw <next-hop> But how should the line be modified for a default route? Thanks [EDIT] Is this a correct scenario: If I have a router R1 directly connected to router R2(R1(eth0) connected to R2(eth1)). If I want to set a default route from R1 to R2 than i modify R1's /etc/network/interfaces and I add under the eth0 interface the line: up rout (HowTos)