You always have only one default gateway in main route table, but it's
possible to use several routing tables with different gateways. Iproute2
gives you this opportunity.

To delete a route use

# ip route del 10.0.0.0 dev ath0

to delete gateway use

# ip route del default via 10.0.0.1 dev ath0

to add route use

# ip route add 192.168.0.0/24 dev eth1

to list your routes use (for main route table)

#ip route ls 

You can put this into /etc/network/interfaces with

post-up ip route add 192.168.0.0/24 dev eth1

or

post-down ip route add 192.168.0.0/24 dev eth1


But it's good idea to read http://lartc.org/

-- 
Dmytro Ovchynnykov <[EMAIL PROTECTED]>
ODV


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to