On Tuesday 28 March 2006 23:19, Jason Faulkner wrote:
> (hey, I learned this this week! huzzah!)
>
> in debian, just put a script in /etc/network/if-up.d that pulls them
> up. Something basic like
>
> #!/bin/sh
> route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.2 dev eth0
>
> and it automagically runs it when you bring networking up. BRILLIANT!
<SNIP>

I thought the debian way was to add a line to /etc/network/interfaces like so 

iface eth1 inet static
        address 172.16.0.7
        netmask 255.255.0.0
        broadcast 172.16.255.255
        network 172.16.0.0
        up route add -net 10.64.0.0 gw 172.16.0.1 netmask 255.192.0.0


the up section is run when the interface in question is brought up.

Did this about 15 minutes ago and it seems to work.
-- 
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/

Reply via email to