Это старая версия документа!


ifconfig

  • ifconfig eth0 down
  • ifconfig eth0 inet [IP]
  • ifconfig eth0 netmask [MASK]
  • route add [GW] gw [IP]
  • ifconfig eth0 up

nano /etc/network/interfaces

nano /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
allow-hotplug eth0
iface eth0 inet dhcp