界面文件
auto eth0
iface eth0 inet dhcp
up route add 192.168.11.2 dev eth0
up route add default gw 192.168.11.2 dev eth0
auto eth1
iface eth1 inet static
address 10.95.163.14
netmask 255.255.255.0
up route add 172.16.0.0/16 via 10.95.163.1 dev eth1
问题
sudo /etc/init.d/networking restart
RTNETLINK answers: File exists
Failed to bring up eth1.
使用
eth0 is used for internet access
eth1 is used for communicate within 2 internal networks
解决方法现在我需要使用
手动添加路线sudo ip route add 172.16.0.0/16 via 10.95.163.1 dev eth1
问题