[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Re making routes permanent

Tarragon Allen wrote:
> >
> > e.g. something like this in /etc/network/interfaces:
> >
> > iface eth0 inet static
> >   address x.x.x.x
> >   netmask
> >   broadcast x.x.x.255
> >   up route add -net y.y.y.y gw z.z.z.z
> >   up route add -net a.a.a.a gw z.z.z.z
> And you should really put corresponding "route del"s in there 
> too, otherwise 
> you could end up with duplicated routes and all sorts of 
> funniness if your IP 
> is changing a bit (not too likely, but better to be neat than sorry).
This is not needed, since AFAIK routes through one interface are
automatically removed when the interface is reconfigured or goes down


Reply to: