Home > OS >  My Linux is wired network connection, can't baidu
My Linux is wired network connection, can't baidu

Time:09-24

My Linux is the wired network connection at home, can't baidu, connect outside network, but go to my friend's house to connect wifi, then change the nameserver to 8.8.8.8
[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 machine

CodePudding 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
  • Related