Re: default route
from memory you dont evven need the up and down parts unless youwish to
specify extra routes
there is a line you dont have in there which is
gateway 192.168.0.6
if you have a look ath the way /etc/init.d/network(ing) (not sure im in
windoze at the mo) and see the way it works you will find with the current
conf its is doing the same stuff twice for some parts : )
you may beable to clean up your routing a bit.
the up and down commands are normaly used if youwant to do stuff like
ipchains and hav eit initialised at the same time : )
At 18:36 12/01/2001 -0500, Peter Billson wrote:
Matt Chipman wrote:
>
> Hi all
>
> Just getting used to debian and need to add a default route at boot time. i
> have the route but what file do i need to add it to?
>
> Currently i add it manually after the machine boots.
>
> Lucky its not windows or i'd have to do it every day at least! :)
Can you add routes to a Windoze box?!!? ;-)
I do it this way:
in /etc/network/interfaces
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.0
up route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.6
eth0
down route del -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.6
eht0
Obviously change the IPs as appropricate. Most of the above should
already be there. YOu should just have to add the up and down.
Pete
--
To UNSUBSCRIBE, email to debian-isp-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-
-=| Daniel Free Earthlight Communications LTD |=-
-=| daniel@fizz.earthlight.co.nz ICQ# 15707938 |=-
-=| Cellular # 021 258 3389 HTTP://quake.earthlight.co.nz/ |=-
-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-=|=-
Reply to: