本文共 1236 字,大约阅读时间需要 4 分钟。
一、ubuntu系统:
#vi /etc/network/interfaces
OR $ sudo vi /etc/network/interfaces
Modify as follows:
1 auto eth0 2 auto eth0:0 3 auto eth0:1 4 iface eth0 inet static 5 address 192.168.1.1 6 netmask 255.255.255.248 7 gateway 192.168.1.254 8 9 iface eth0:0 inet static10 address 192.168.1.211 netmask 255.255.255.24812 13 iface eth0:1 inet static14 address 192.168.1.315 netmask 255.255.255.24816 17 # add rest of alias / binds below
Save and close the file.
Now restart networking, enter:
#/etc/init.d/networking restart
OR $ sudo /etc/init.d/networking restart
二、centos系统:
转载地址:http://bcrvx.baihongyu.com/