Ubuntu network alias setup

First, setup a main (eth1 hereafter) IP address via

/etc/network/interfaces, such as

auto lo
iface lo inet loopback

auto eth1
iface eth1 inet static
address 192.168.99.2
netmask 255.255.255.0
gateway 192.168.99.1

And change /etc/resolv.conf, such as

nameserver 202.112.80.106

At last add alias to /etc/network/interfaces, such as

auto eth1:0
iface eth1:0 inet static
address 210.31.77.2
netmask 255.255.255.0
gateway 210.31.77.1

auto eth1:1
iface eth1:1 inet static
address 124.205.19.108
netmask 255.255.255.0
gateway 124.205.19.105

《Ubuntu network alias setup》有一个想法

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注