[Gllug] Debian gateways

Bruce Richardson itsbruce at uklinux.net
Thu Jan 31 10:47:23 UTC 2002


On 1/31/02, 9:26:04 AM, "Jackson, Harry" <HJackson at colt-telecom.com> wrote 
regarding RE: [Gllug] Debian gateways:


> Hi Stephan

> Go to /etc/network/interfaces and you should find one for eth0 in there. 
It
> should be something like this.


> # The first ethernet interface
> iface eth0 inet static
>       address 192.168.10.2
>       netmask 255.255.255.0
>       gateway 192.168.10.1
>       broadcast 192.168.10.255

> at the shell
> $ifdown
> $ifup
> $route -n
> and you should see the gateway there. I am not sure if the ifdown ifup
> commands are required.

They are if you didn't add the route any other way.  The interfaces file 
is read when the ifup and ifdown commands are executed, so changing the 
file has no effect until then.

-- 

Bruce

-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list