Настройка сети в Linux / Debian

nano /etc/network/interface

allow-hotplug eth0
iface eth0 inet static
    address 192.168.1.1
    netmask 255.255.255.0
    gateway 192.168.1.254

nano /etc/network/interface

allow-hotplug eth0
auto eth0
iface eth0 inet dhcp

Добавить дополнительные IP адреса

nano /etc/network/interface

auto eth0:0
iface eth0:0 inet static
    address 192.168.1.2
    netmask 255.255.255.0

auto eth0:1
iface eth0:1 inet static
    address 192.168.1.3
    netmask 255.255.255.0

...


auto eth0:10
iface eth0:10 inet static
    address 192.168.1.12
    netmask 255.255.255.0

Настройка DNS серверов

nano /etc/resolv.conf

nameserver 8.8.8.8
nameserver 4.4.4.4