Ubuntu can't connect to the Internet with a wired network

Source: Internet
Author: User

Problem: After connecting the network cable, there is an IP, but can not access the external network.

My solutions are:

 1. Use the command line ifconfig command to view the name of the Ethernet (that is, the network cable socket), e.g.'enp3s0'  is the network cable socket (Ethernet Ethernet):[email protected]-latitude-3350:~$ ifconfig enp3s0 Link encap:ethernet HWaddr -: -: the: A5: -: 3d inet addr:10.58.101.247Bcast:10.58.103.255Mask:255.255.252.0inet6 addr:fe80::2883:9232: 3f1e:fe3/ -scope:link up broadcast RUNNING multicast MTU: theMetric:1RX Packets:13212Errors0Dropped0Overruns:0Frame0TX Packets:1696Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen: +RX Bytes:3760852(3.7MB) TX Bytes:238743(238.7KB) Lo Link encap:local Loopback inet addr:127.0.0.1Mask:255.0.0.0Inet6 Addr: ::1/ -scope:host up LOOPBACK RUNNING MTU:65536Metric:1RX Packets:558Errors0Dropped0Overruns:0Frame0TX Packets:558Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen: +RX Bytes:72352(72.3KB) TX Bytes:72352(72.3KB) wlp4s0 Link encap:ethernet HWaddr A4: Geneva: b9:0a: the: B1 up broadcast multicast MTU: theMetric:1RX Packets:0Errors0Dropped0Overruns:0Frame0TX Packets:0Errors0Dropped0Overruns:0Carrier0Collisions:0Txqueuelen: +RX Bytes:0(0.0B) TX Bytes:0(0.0B)2 . command line Add or modify network parameters [email protected]-latitude-3350: ~$ sudo gedit/etc/network/interfaces Popup A text window, as follows: # interfaces (5) file used by Ifup (8) and Ifdown (8) Auto Lo iface lo inet loopback add information about Ethernet in the inside # interfaces (5) file used by Ifup (8) and Ifdown (8) Auto Lo iface lo inet loopback auto esp3s0 iface esp3s0 inet DHCP3 . Restart the network [email protected]-latitude-3350: ~$ sudo/etc/init.d/networking Restart should now be able to restore plug-in cable, to be able to surf the Internet;

Ubuntu can't connect to the Internet with a wired network

Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.