使用Xshell可以正常连接,但是在ping www.baidu.com时就不行了,
这是/etc/resolv.conf"的
# Generated by NetworkManager
domain openstacklocal
search openstacklocal
nameserver 172.24.151.5
nameserver 172.24.151.3
nameserver 8.8.8.8
这是网卡配置的
DEVICE=eth1
HWADDR=fa:16:3e:eb:fd:1d
TYPE=Ethernet
UUID=d5ae825f-344f-426d-97a3-22c05a2f259c
ONBOOT=yes
BOOTPROTO=dhcp
NM_CONTROLLED=yes
PERSISTENT_DHCLIENT="y"
USERCTL=no
PEERDNS=yes
IPV6INIT=no
DNS1="8.8.8.8"