In NAT mode, DHCP dynamically allocates IP addresses and uses the default DNS. When the IP address is set to static, the DNS is invalid by default. In this case, you need to configure the DNS to access the network.

Configure DNS and modify /etc/resolv.conf

Example:

Google DNS nameserver 114.144.144.144 # This is the DNS of domestic telecomCopy the code