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