在我的Ubuntu服务器16.04中,我有这个文件:/ etc / network / interfaces
# The primary network interface
auto eth0
iface eth0 inet dhcp
#auto eth1
#iface eth1 inet static
# address 10.0.0.41
# netmask 255.255.255.0
# network 10.0.0.0
# broadcast 10.0.0.255
# gateway 10.0.0.1
eth0链接到dsl,如果我取消注释eth1部分以启用第二个NIC卡,我无法像yahoo.com那样ping远程服务器:
ping yahoo.com
PING yahoo.com (98.138.253.109) 56(84) bytes of data.
From 10.0.0.41 icmp_seq=1 Destination Host Unreachable
From 10.0.0.41 icmp_seq=2 Destination Host Unreachable
From 10.0.0.41 icmp_seq=3 Destination Host Unreachable
答案 0 :(得分:0)
找到了解决方案:删除网关10.0.0.1