Insist on #300th day~ Happy May Day, solve the problem that the network card cannot be set to dhcp and cannot access the Internet

How did Songge allow 233 to access the Internet? It's amazing. Before enp6s0 was the 233 network card, and now it is the same. Enp7s0 is a network card that can be set by yourself. No matter how I set enp7s0 last time, I couldn't access the Internet. This network card can't get up, why is it, and Song Ge finished it yesterday, and he can surf the Internet! ! !

If you want to surf the Internet, if dhcp does not work, you can only use another method. Use static static, and specify the route GATWAY and DNS. I don’t know how much DNS is going to go to the previous 86 network card configuration file. Look in the configuration file, one primary DNS1 and one backup DNS2 . If it still doesn't work, then the best subnet mask of the network card you want to access the Internet is the same as 86. The effect of NETMASK=255.255.248.0 and PREFIX=22 is the same, but NETMASK is easy to see with ifconfig, and PREFIX should be seen with ipa. Which one to write.

Today, I also got the zabbix alarm and sent 126 mailboxes to my mobile phone

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325980611&siteId=291194637