Bogus default gateway keeps appearing
#8
(02-24-2023, 12:19 PM)jsch Wrote: you might find sometihing within `/etc/NetworkManager`
sudo grep -rF 192.168.225. /etc/NetworkManager/

Good idea, but it turns out there are no references to that subnet there or in /etc/network. Just for grins I searched all of /etc and nothing turned up.

However, I searched /var and found in /var/lib/NetworkManager there are a bunch of files that contain references to that subnet. They have names in this format:

Code:
internal-xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx-enxxxxxxxxxxxxx.lease

...where the "x" characters are hex numbers. They are different for each file. The "enx" numbers at the end which appeared to be MAC addresses are also different in each one, so possibly this is a virtual adapter created on the fly? (I thought the adapter name in the routing table looked different this time!)

Contents of each of those files (apparently DHCP leases since they have the extension of .lease) look like this, with a different last 192.168.225.x octet in each:

Code:
# This is private data. Do not parse.

ADDRESS=192.168.225.29

So, apparently Network Manager is pulling these addresses from somewhere and installing a matching default route. (Currently there are 25 of these files in /var/lib/NetworkManager.) Another interesting thing is I've found that while the internet cannot be accessed while that route is in place, the address 192.168.225.1 responds to pings.

There is also a NetworkManager-intern.conf file which contains only comments, no active settings. Additionally there's a NetworkManager.state file containing the following:

Code:
[main]
NetworkingEnabled=true
WirelessEnabled=true
WWANEnabled=false

I read this as saying NetworkManager is aware that cellular internet is disabled.

Further, if I use ethtool to probe the enx* adapter, the following is reported. The speed reported appears to correspond to a USB2 connection:

Code:
Settings for enxxxxxxxxxxxxx:
Supported ports: [  ]
Supported link modes:  Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes:  Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 425Mb/s
Duplex: Half
Auto-negotiation: off
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
MDI-X: Unknown
        Current message level: 0x00000007 (7)
                              drv probe link
Link detected: yes
Supported ports: [  ]
Supported link modes:  Not reported
Supported pause frame use: No
Supports auto-negotiation: No
Supported FEC modes: Not reported
Advertised link modes:  Not reported
Advertised pause frame use: No
Advertised auto-negotiation: No
Advertised FEC modes: Not reported
Speed: 425Mb/s
Duplex: Half
Auto-negotiation: off
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
MDI-X: Unknown
        Current message level: 0x00000007 (7)
                              drv probe link
Link detected: yes

However, the USB tethering adapter shows up as usb0, and ethtool only reports the following for it:

Code:
Settings for usb0:

Link detected: yes

So more clues here and it appears that NetworkManager is doing this but I still don't know why.
  Reply


Messages In This Thread
RE: Bogus default gateway keeps appearing - by Zebulon Walton - 02-25-2023, 09:48 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  4G data on default startup / boot dcinoz 1 839 04-29-2023, 11:24 PM
Last Post: dcinoz
  Change default program for a file type 3x5co 1 1,756 09-01-2021, 05:26 PM
Last Post: Zebulon Walton
  Default SMS app send button off screen in vertical orientation motox6 0 1,238 05-22-2021, 02:55 PM
Last Post: motox6
  Desktop Entry icon not appearing: how to diagnose? Saliency 6 5,116 03-15-2021, 05:49 AM
Last Post: kqlnut
  Make 'terminal' on-screen keyboard the default 3x5co 0 1,821 12-27-2020, 05:11 PM
Last Post: 3x5co
  ssh not enabled, by default? RodMyers 6 5,950 10-02-2020, 07:35 AM
Last Post: LinAdmin2
  sudo / lock screen password keeps resetting to default ergo owl 6 6,863 09-04-2020, 06:07 AM
Last Post: ergo owl
  How to change the minimum password length when changing from default passwords arturo2bodegas 3 4,544 07-18-2020, 01:51 PM
Last Post: arturo2bodegas
  Default Theme wasgurd 4 6,007 06-26-2020, 06:28 PM
Last Post: wasgurd

Forum Jump:


Users browsing this thread: 1 Guest(s)