ubuntu 双网卡配置
vim /etc/network/interfaces
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet static
address 10.XXX.XXX.XXX
netmask 255.0.0.0
network 10.0.0.0
broadcast 10.255.255.255
gateway 10.0.0.2
# dns-* options are implemented by the resolvconf package, if installed
dns-nameservers XXX.XXX.XXX.XXX
auto eth1
iface eth1 inet static
address 172.XXX.XXX.XXX
netmask 255.255.252.0
还没有评论,来说两句吧...