Home > linux > Добавление IP-алиасов в Debian

Добавление IP-алиасов в Debian

October 12th, 2009

/etc/network/interafces:

auto lo
iface lo inet loopback

allow-hotplug eth0
auto eth0
iface eth0 inet static
        address 1.2.3.2
        netmask 255.255.255.0
        network 1.2.3.0
        broadcast 1.2.3.255
        gateway 1.2.3.1
        dns-nameservers 208.67.222.222

auto eth0:0
iface eth0:0 inet static
        address 1.2.3.3
        netmask 255.255.255.0
        broadcast 1.2.3.255

auto eth0:1
iface eth0:1 inet static
        address 1.2.3.4
        netmask 255.255.255.0
        broadcast 1.2.3.255

Рестартим сеть:

/etc/init.d/networking restart

linux

  1. No comments yet.
  1. No trackbacks yet.