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

Re: /etc/network/interfaces statically defined default gateway



Thomas,

On Tue, 25 May 2004 09:13 pm, Thomas Adam wrote:
>  --- James Sinnamon <jps@westnet.com.au> wrote: > Dear Debian users,
>
> > How is the default gateway using, say eth0 or eth1, defined in
> > /etc/network/interfaces, if dhcp is not used, that is if I use:
> >
> > auto eth1
> > iface eth1 intet static
> >      address 192.168.0.6
> >      netmask 255.255.255.0
> >      network 192.168.0.0
> >      broadcast 192.168.0.255
> >
> > ... instead of:
> >
> > auto eth1
> > iface eth1 inet dhcp
>
> For which ever iface you want a gateway to be used, just add that
> directive to it:
>
> gateway  <some_IP_Address>
>
> -- Thomas Adam

Thanks.  That did the trick.

regards,

James




Reply to: