On Wed, Jun 12, 2002 at 07:32:15PM +1000, Andrew Pollock wrote:
> Hi,
>
> What's the "Debian way" of having static routes added when an (ethernet)
> interface comes up, every time?
(assuming that you're running woody; I think it's not as up-to-date on
potato)
/etc/network/interfaces = man 5 interfaces
e.g.
auto eth0
iface eth0 inet static
address 192.168.240.4
netmask 255.255.255.0
network 192.168.240.0
broadcast 192.168.240.255
up route add -net 192.168.153.0 netmask 255.255.255.0 gw 192.168.240.2
down route del -net 192.168.153.0 netmask 255.255.255.0 gw 192.168.240.2
HTH
--
Karl E. Jørgensen
karl@jorgensen.com
www.karl.jorgensen.com
==== Today's fortune:
The good thing about standards is that there are so many to choose from.
-- Andrew S. Tanenbaum
Attachment:
pgpRiwnodRGtF.pgp
Description: PGP signature