Создаем несколько IP адресов на одном интерфейсе

/ Просмотров: 1166
Создаем несколько IP адресов на одном интерфейсе

Изменяем файл /etc/network/interfaces

auto eth0
allow-hotplug eth0
iface eth0 inet static
    address 192.168.10.22
    netmask 255.255.255.0
    gateway 192.168.10.1
auto eth0:0
allow-hotplug eth0:0
iface eth0:0 inet static
    address 192.168.10.23
    netmask 255.255.255.0

Источник