#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
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