[root @ localhost root] # cat/etc/resolv. Conf
Nameserver 8.8.8.8
Search localdomain
Can ping baidu, can on the network, but at home what all can't baidu don't know why, please great god some directions, thank you
CodePudding user response:
Home network has a problem, you first rule out the home network, and there's your Linux machine, real or virtual machineCodePudding user response:
1, see your system of cable network adapter configuration, is a way of DHCP or static address, if it is a static address, so want to and the address of the router in the same network segment, but also set the correct gateway,2, take a look at your network adapter configuration is the ONBOOT yes or no
After 3, if it is a virtual machine, copying the MAC address and MAC does not conform to the actual,
CodePudding user response:
Ok, solved, my physical machine cable network card is DHCP, in a Linux virtual machine into the/etc/sysconfig/network - scripts/Vim ifcfg - eth0, will change the BOOTPROTO to the DHCP is ok, thanks for the great spirit