|
Ubuntu Debian 添加多IP 樱木花盗 发表于 2015-8-7 10:46:14 |
#vi /etc/network/interfaces
auto lo iface lo inet loopback
auto eth0 iface eth0 inet static address 192.168.76.192 netmask 255.255.255.0 gateway 192.168.76.254
auto eth0:0 iface eth0:0 inet static address 192.168.76.193 netmask 255.255.255.0 gateway 192.168.76.254
auto eth0:1 iface eth0:1 inet static address 192.168.76.194 netmask 255.255.255.0 gateway 192.168.76.254
重启网卡生效 #/etc/init.d/networking restart
|
|
发表评论:
|