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

Re: Configuring a static IP on startup



On Fri, Dec 27, 2002 at 08:38:20PM -0800, Curtis Spencer wrote:
> I am using dhclient right now on startup to give me a DHCP ip address,
> but I want to set the system to have a static IP on my sub net so I can
> have the router forward everything on port 80 to the debian system.
> What is a decent way to do this?

/etc/network/interfaces

auto eth0
iface eth0 inet static
	address 192.168.0.4
	gateway 192.168.0.1
	netmask 255.255.255.0
	network 192.168.0.0
	broadcast 192.168.0.255

Something like this.  See interfaces(5) for details.

-- 
 .''`.     Baloo <baloo@ursine.dyndns.org>
: :'  :    proud Debian admin and user
`. `'`
  `-  Debian - when you have better things to do than to fix a system

Attachment: pgpT7ICkYd9KR.pgp
Description: PGP signature


Reply to: