The ubuntu network cannot be connected to the Internet, but the intranet ip can be pinged, the gateway can be pinged, and the dns can be pinged. After troubleshooting, the dns is not configured. Sudogedit/etc/resolv. actually, nameserver is configured in conf. okay... the ubuntu network cannot be connected to the Internet, but the intranet ip can be pinged, the gateway can be pinged, and the dns can be pinged. After troubleshooting, the dns is not configured. Sudo gedit/etc/resolv. actually, nameserver is configured in conf. well, add the nameserver 192.168.xxx.xxx to record the configuration ip address: sudo gedit/etc/network/interfaces 1 auto lo2iface lo inet loopback3 4 auto eth05iface eth0 inet static6address 192.168.21.1887gateway implements 255.255.255.0, which can globally retain the static ip address and does not need to be set ip address
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service