Ubuntu增加多段IP
编辑/etc/network/interfaces文件加入下面这些:
auto eth0:0
iface eth0:0 inet static
address 192.168.9.88
netmask 255.255.255.0
gateway 192.168.9.254
auto eth0:1
iface eth0:1 inet static
address 192.168.9.89
netmask 255.255.255.0
gateway 192.168.9.254
以此类推 保存。
重启网卡服务
sudo /etc/init.d/networking restart
页:
[1]