1、编辑/etc/network/interfaces
This file describes the network interfaces available on your system
and how to activate them. For more information, see interfaces(5).
The loopback network interface
auto lo
iface lo inet loopback
The primary network interface
allow-hotplug eth0
iface eth0 inet static
address 67.229.xxx.xxx
netmask 255.255.255.248
network 67.229.xxx.xxx
broadcast 67.229.xxx.xxx
gateway 67.229.xxx.xxx
# dns-* options are implemented by the resolvconf package, if installed
dns-search hostxxxx.kryptservers.com
auto eth0:0
iface eth0:0 inet static
address 67.229.xxx.xxx
netmask 255.255.255.248
auto eth0:1
iface eth0:1 inet static
address 67.229.xxx.xxx
netmask 255.255.255.248
pre-up iptables-restore < /etc/iptables.up.rules
2、重启
service networking start
-
所有主机信息仅是为及时分享并收录,不做推荐!