On Fri, Mar 19, 2004 at 11:10:05AM +1100, Craig Mead wrote:
> Trying to get Debian to maintain some routes over resets.
> 
> Even windows makes it as simple is -p, but can't seem to find much on
> getting it working in Debian, or any Linux.

On Debian you can configure this in /etc/network/interfaces.
(man interfaces).

See also /usr/share/doc/ifupdown/examples/network-interfaces.gz
e.g. for something more complicated than a simple gateway:

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


Patrick
-- 
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