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

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



 --- 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

=====
"The Linux Weekend Mechanic" -- http://linuxgazette.net
"TAG Editor"                 -- http://linuxgazette.net

"<shrug> We'll just save up your sins, Thomas, and punish 
you for all of them at once when you get better. The 
experience will probably kill you. :)"

 -- Benjamin A. Okopnik (Linux Gazette Technical Editor)


	
	
		
____________________________________________________________
Yahoo! Messenger - Communicate instantly..."Ping" 
your friends today! Download Messenger Now 
http://uk.messenger.yahoo.com/download/index.html



Reply to: