Article 4XFVG Networking doesn't start correctly when logging onto a console instead of GUI (MATE) in Ubuntu 18.04

Networking doesn't start correctly when logging onto a console instead of GUI (MATE) in Ubuntu 18.04

by
achim_59
from LinuxQuestions.org on (#4XFVG)
I'm trying to repair a neighbour's laptop (I'll just call him "D") and came to the conclusion I really need to run an update. The difficulty is that the laptop won't boot to a normal GUI interface (D uses MATE), so I am restricted to using the console. My attempts at resolving the problem can be seen in this forum thread:
https://www.linuxquestions.org/quest...356/page2.html

That brings me to the current problem. In order to run apt-get update and associated commands, I need to have a network connection. The information below is essentially from my last post on that other thread.

To find out what the networking status on D's machine is, I ran ifconfig with the following result:
Code:enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.1.65 netmask 255.255.255.0 broadcast 192.168.1.255
inet6 fe80::4de5:cf2e:fc25:61c4 prefixlen 64 scopeid 0x20<link>
ether 20:1a:06:a1:a2:83 txqueuelen 1000 (Ethernet)
RX packets 96 bytes 11742 (11.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 231 bytes 182660 (182.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 16

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Lokale Schleife)
RX packets 559 bytes 76172 (76.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 559 bytes 76172 (76.1 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

wlp3s0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
ether 28:e3:47:50:f7:dc txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0I've been told that ifconfig is deprecated, but the results are still valid. Interesting here is the first entry "enp2s0", which has been given the IP address 192.168.1.65, This address was allocated by my IPCop, so D's laptop obviously has an address within my home network. [By the way, before anybody wastes their time telling me that IPCop is no longer supported, I already know and it's not really relevant here.]

Next I tried to find out what DNS settings were in use. From what I've read so far the command systemd-resolve --status should provide some information. The results were less than encouraging:
Code:Global
DNSSEC NTA: 10.in-addr.arpa
16.172.in-addr.arpa
168.192.in-addr.arpa
17.172.in-addr.arpa
18.172.in-addr.arpa
19.172.in-addr.arpa
20.172.in-addr.arpa
21.172.in-addr.arpa
22.172.in-addr.arpa
23.172.in-addr.arpa
24.172.in-addr.arpa
25.172.in-addr.arpa
26.172.in-addr.arpa
27.172.in-addr.arpa
28.172.in-addr.arpa
29.172.in-addr.arpa
30.172.in-addr.arpa
31.172.in-addr.arpa
corp
d.f.ip6.arpa
home
internal
intranet
lan
local
private
test

Link 3 (wlp3s0)
Current Scopes: none
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: no

Link 2 (enp2s0)
Current Scopes: none
LLMNR setting: yes
MulticastDNS setting: no
DNSSEC setting: no
DNSSEC supported: noI cannot fully interpret this, but it suggests that the LAN connection (enp2s0) is not able to access a DNS service. So the question then is: what can it "see" or access?

In a first attempt I tried nmcli device status:
Code:STATE CONNECTIVITY WIFI-HW WIFI WWAN-HW WWAN
connected (site only) limited enabled enabled enabled enabledAgain, not encouraging, since it tells me that there is no access to the internet, only a connection to the local network.

So I tried nmcli device show to find out what the device IDs are (I've left out the WLAN stuff since that's not relevant. Besides... it isn't activated from what I can see in the results so far) :
Code:GENERAL.DEVICE: enp2s0
GENERAL.TYPE: ethernet
GENERAL.HWADDR: 20:1A:06:A1:A2:83
GENERAL.MTU: 1500
GENERAL.STATE: 100 (verbunden)
GENERAL.CONNECTION: Kabelgebundene Verbindung 1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
WIRED-PROPERTIES.CARRIER: an
IP4.ADDRESS[1]: 192.168.1.65/24
IP4.GATEWAY: 192.168.1.1
IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.168.1.1, mt = 20100
IP4.ROUTE[2]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[3]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]: 192.168.1.1
IP4.DOMAIN[1]: localdomain
IP6.ADDRESS[1]: fe80::4de5:cf2e:fc25:61c4/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ff00::/8, nh = ::, mt = 256, table=255
IP6.ROUTE[2]: dst = fe80::/64, nh = ::, mt = 256
IP6.ROUTE[3]: dst = fe80::/64, nh = ::, mt = 100Right, so the connection ID is "Kabelgebundene Verbindung 1". So what does this connection have available to it? To ascertain that I tried the command nmcli connection show "Kabelgebundene Verbindung 1". And here I'm truly at a loss:
Code:connection.id: Kabelgebundene Verbindung 1
connection.uuid: 7b918410-9907-3c84-b648-f11188eb910a
connection.stable-id: --
connection.type: 802-3-ethernet
connection.interface-name: --
connection.autoconnect: yes
connection.autoconnect-priority: -999
connection.autoconnect-retries: -1 (default)
connection.auth-retries: -1
connection.timestamp: 1578163471
connection.read-only: no
connection.permissions: --
connection.zone: --
connection.master: --
connection.slave-type: --
connection.autoconnect-slaves: -1 (default)
connection.secondaries: --
connection.gateway-ping-timeout: 0
connection.metered: unknown
connection.lldp: default
connection.mdns: -1 (default)
802-3-ethernet.port: --
802-3-ethernet.speed: 0
802-3-ethernet.duplex: --
802-3-ethernet.auto-negotiate: no
802-3-ethernet.mac-address: 20:1A:06:A1:A2:83
802-3-ethernet.cloned-mac-address: --
802-3-ethernet.generate-mac-address-mask:--
802-3-ethernet.mac-address-blacklist: --
802-3-ethernet.mtu: auto
802-3-ethernet.s390-subchannels: --
802-3-ethernet.s390-nettype: --
802-3-ethernet.s390-options: --
802-3-ethernet.wake-on-lan: default
802-3-ethernet.wake-on-lan-password: --
ipv4.method: auto
ipv4.dns: --
ipv4.dns-search: --
ipv4.dns-options: ""
ipv4.dns-priority: 0
ipv4.addresses: --
ipv4.gateway: --
ipv4.routes: --
ipv4.route-metric: -1
ipv4.route-table: 0 (unspec)
ipv4.ignore-auto-routes: no
ipv4.ignore-auto-dns: no
ipv4.dhcp-client-id: --
ipv4.dhcp-timeout: 0 (default)
ipv4.dhcp-send-hostname: yes
ipv4.dhcp-hostname: --
ipv4.dhcp-fqdn: --
ipv4.never-default: no
ipv4.may-fail: yes
ipv4.dad-timeout: -1 (default)
ipv6.method: auto
ipv6.dns: --
ipv6.dns-search: --
ipv6.dns-options: ""
ipv6.dns-priority: 0
ipv6.addresses: --
ipv6.gateway: --
ipv6.routes: --
ipv6.route-metric: -1
ipv6.route-table: 0 (unspec)
ipv6.ignore-auto-routes: no
ipv6.ignore-auto-dns: no
ipv6.never-default: no
ipv6.may-fail: yes
ipv6.ip6-privacy: -1 (unknown)
ipv6.addr-gen-mode: stable-privacy
ipv6.dhcp-send-hostname: yes
ipv6.dhcp-hostname: --
ipv6.token: --
proxy.method: none
proxy.browser-only: no
proxy.pac-url: --
proxy.pac-script: --
GENERAL.NAME: Kabelgebundene Verbindung 1
GENERAL.UUID: 7b918410-9907-3c84-b648-f11188eb910a
GENERAL.DEVICES: enp2s0
GENERAL.STATE: activated
GENERAL.DEFAULT: yes
GENERAL.DEFAULT6: no
GENERAL.SPEC-OBJECT: --
GENERAL.VPN: no
GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/1
GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/3
GENERAL.ZONE: --
GENERAL.MASTER-PATH: --
IP4.ADDRESS[1]: 192.168.1.65/24
IP4.GATEWAY: 192.168.1.1
IP4.ROUTE[1]: dst = 0.0.0.0/0, nh = 192.168.1.1, mt = 20100
IP4.ROUTE[2]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 100
IP4.ROUTE[3]: dst = 169.254.0.0/16, nh = 0.0.0.0, mt = 1000
IP4.DNS[1]: 192.168.1.1
IP4.DOMAIN[1]: localdomain
DHCP4.OPTION[1]: requested_subnet_mask = 1
DHCP4.OPTION[2]: requested_rfc3442_classless_static_routes = 1
DHCP4.OPTION[3]: subnet_mask = 255.255.255.0
DHCP4.OPTION[4]: domain_name_servers = 192.168.1.1
DHCP4.OPTION[5]: ip_address = 192.168.1.65
DHCP4.OPTION[6]: requested_static_routes = 1
DHCP4.OPTION[7]: dhcp_server_identifier = 192.168.1.1
DHCP4.OPTION[8]: requested_time_offset = 1
DHCP4.OPTION[9]: broadcast_address = 192.168.1.255
DHCP4.OPTION[10]: requested_interface_mtu = 1
DHCP4.OPTION[11]: dhcp_rebinding_time = 3004
DHCP4.OPTION[12]: requested_domain_name_servers = 1
DHCP4.OPTION[13]: dhcp_message_type = 5
DHCP4.OPTION[14]: requested_broadcast_address = 1
DHCP4.OPTION[15]: dhcp_renewal_time = 1654
DHCP4.OPTION[16]: routers = 192.168.1.1
DHCP4.OPTION[17]: requested_domain_name = 1
DHCP4.OPTION[18]: domain_name = localdomain
DHCP4.OPTION[19]: requested_routers = 1
DHCP4.OPTION[20]: expiry = 1578167206
DHCP4.OPTION[21]: host_name = didi-Lenovo-G500s
DHCP4.OPTION[22]: requested_netbios_scope = 1
DHCP4.OPTION[23]: requested_wpad = 1
DHCP4.OPTION[24]: requested_ms_classless_static_routes = 1
DHCP4.OPTION[25]: requested_netbios_name_servers = 1
DHCP4.OPTION[26]: network_number = 192.168.1.0
DHCP4.OPTION[27]: requested_domain_search = 1
DHCP4.OPTION[28]: next_server = 192.168.1.1
DHCP4.OPTION[29]: requested_ntp_servers = 1
DHCP4.OPTION[30]: dhcp_lease_time = 3600
DHCP4.OPTION[31]: requested_host_name = 1
IP6.ADDRESS[1]: fe80::4de5:cf2e:fc25:61c4/64
IP6.GATEWAY: --
IP6.ROUTE[1]: dst = ff00::/8, nh = ::, mt = 256, table=255
IP6.ROUTE[2]: dst = fe80::/64, nh = ::, mt = 256
IP6.ROUTE[3]: dst = fe80::/64, nh = ::, mt = 100To save a bit of time, please note the entry:
Code:IP4.DNS[1]: 192.168.1.1That is the IP address of my IPCop DNS. Now I know that works, otherwise I wouldn't be able to post this at all. Things like this give me the "heebee-geebees", because I cannot figure out what's going on. I have no idea how to find out either, because I'm not really a networking expert. I've been reading the man pages for nmcli, but I' don't know what I can do to rectify a situation where everything seems to be correct... er... apart from the fact that I can't access the internet from D's machine.

If anybody can provide some advice on how I can fix the internet access using the console, I would be very grateful.latest?d=yIl2AUoC8zA latest?i=ytObK0KbdGU:pImzeDTxa-0:F7zBnMy latest?i=ytObK0KbdGU:pImzeDTxa-0:V_sGLiP latest?d=qj6IDK7rITs latest?i=ytObK0KbdGU:pImzeDTxa-0:gIN9vFwytObK0KbdGU
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments