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

Re: Reconfiguring network



Steven Schlansker wrote:

How do you reconfigure the network interfaces, for example to use static addresses instead of DHCP?
Thanks,.
Steven

Edit /etc/network/interfaces. See "man interfaces" for details. Here's an example:

# /etc/network/interfaces -- configuration file for ifup(8), ifdown(8)

# The loopback interface
# automatically added when upgrading
auto lo
iface lo inet loopback

# The first network card - this entry was created during the Debian installation
# (network, broadcast and gateway are optional)
# automatically added when upgrading
auto eth0
iface eth0 inet static
      address 192.168.123.2
      netmask 255.255.255.0
      network 192.168.123.0
      broadcast 192.168.123.255
      gateway 192.168.123.1

#iface eth0 inet dhcp


====

Then run "/etc/init.d/networking restart" and you should be in business.

--
Kent West (westk@acu.edu)





Reply to: