Linux添加虚拟网(网卡绑定多IP)

ok

修改网卡配置文件

在ubuntu下,网卡的配置文件是/etc/network/interfaces

sudo vim /etc/network/interfaces

在这个文件中增加如下内容并保存:

auto eth0:0

iface eth0:0 inet static

address 172.16.21.100

netmask 255.255.255.0

保存后,我重启:

sudo /etc/init.d/networking restart

你可能感兴趣的:(linux,LOOPBACK,虚拟网卡)