On Fri, 2004-03-19 at 12:18, Patrick Lesslie wrote:

> auto eth0
> iface eth0 inet static
>     address 192.168.1.42
>     network 192.168.1.0
>     netmask 255.255.255.128
>     broadcast 192.168.1.0
>     up route add -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2
>     up route add default gw 192.168.1.200
>     down route del default gw 192.168.1.200
>     down route del -net 192.168.1.128 netmask 255.255.255.128 gw 192.168.1.2

I tend to use the ip command - clearer syntax, easier:
up ip route add 192.168.1.128/25 via 192.168.1.2
up ip route add default via 192.168.1.200
down ip route del 192.168.1.128/25 via 192.168.1.2
down ip route del default via 192.168.1.200

that said, as another poster said, gateway 192.168.1.200 is appropriate
here :].

Rob
-- 
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Attachment: signature.asc
Description: This is a digitally signed message part

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to