linux_centos吧 关注:8贴子:67
  • 0回复贴,共1

Ubuntu 配置双ip

只看楼主收藏回复

#The primary netwok interface
auto eth0
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.0
gateway 192.168.1.4
auto eth0:1
iface eth0:1 inet static
address 192.168.1.5
netmask 255.255.255.0
配置就完成了 直接重启服务
网卡配置文件:vi /etc/network/interfaces
重启网卡: service networking restart
重启网卡:/etc/init.d/netwoking restart


1楼2013-09-03 20:58回复