IP aliase loomine Ubuntus

From ICO wiki
Jump to navigationJump to search

IP aliase loomiseks tuleb avada fail /etc/network/interfaces:

sudo nano /etc/network/interfaces

ja sisestada aliase võrguaadressid:

auto eth0:0
iface eth0:0 inet static
name Ethernet alias LAN card
address 192.168.1.11
netmask 255.255.255.0
broadcast 192.168.1.255
network 192.168.1.0

Peale faili salvestamist tuleb võrguliides taaskäivitada:

sudo /etc/init.d/networking restart