Ping Internet

Time:2020-9-19
  • Ping the Internet first to make sure that you can’t access, generally I like to Ping Baidu, 114.114.114.114 is OK
ping www.baidu.com
  • The next step is to modify the file section
    • vi  /etc/resolv.conf
nameserver 114.114.114.114
nameserver 8.8.8.8
    • VI / etc / sysconfig / network scripts / ifcfg-eth1
DNS1=114.114.114.114
  • Restart network card
ifconfig eth1 down
ifconfig eth1 up