You are not logged in.

#1 2022-12-14 15:20:02

GreenIcedTea
Member
Registered: 2021-12-30
Posts: 20

No ipv4/inet over wlan0, ipv6 working fine - Solved

Hello, recently my network became flaky, and after time I couldn't connect to certain websites. My diagnosis on this issue is the lack of ipv4 (can connect to ipv6.google.com fine, but ipv4.google.com returns not found). I am using NetworkManager with dhclient for dhcp and can connect to my wifi without issue. Does anyone know what I could try?

Network interface is listed and enabled:

ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp34s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc mq state DOWN mode DEFAULT group default qlen 1000
    link/ether d8:bb:c1:45:ae:f0 brd ff:ff:ff:ff:ff:ff
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP mode DORMANT group default qlen 1000
    link/ether 14:18:c3:a8:5a:61 brd ff:ff:ff:ff:ff:ff

I am connected to the network:

ping -c3 archlinux.org
PING archlinux.org(archlinux.org (2a01:4f9:c010:6b1f::1)) 56 data bytes
64 bytes from archlinux.org (2a01:4f9:c010:6b1f::1): icmp_seq=1 ttl=54 time=41.2 ms
64 bytes from archlinux.org (2a01:4f9:c010:6b1f::1): icmp_seq=2 ttl=54 time=39.9 ms
64 bytes from archlinux.org (2a01:4f9:c010:6b1f::1): icmp_seq=3 ttl=54 time=60.8 ms

--- archlinux.org ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 39.897/47.273/60.774/9.559 ms

No output for ip route:

ip route show

Cannot ping local ip:

ping 192.168.178.71
ping: connect: Network is unreachable

Can ping ipv6 address:

ping -c3 ipv6.google.com 
PING ipv6.google.com(fra16s48-in-x0e.1e100.net (2a00:1450:4001:80e::200e)) 56 data bytes
64 bytes from fra16s48-in-x0e.1e100.net (2a00:1450:4001:80e::200e): icmp_seq=1 ttl=118 time=11.1 ms
64 bytes from fra16s48-in-x0e.1e100.net (2a00:1450:4001:80e::200e): icmp_seq=2 ttl=118 time=13.5 ms
64 bytes from fra16s48-in-x0e.1e100.net (2a00:1450:4001:80e::200e): icmp_seq=3 ttl=118 time=17.0 ms

--- ipv6.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 11.108/13.859/16.950/2.396 ms

Cannot ping ipv4 address:

ping -c3 ipv4.google.com
ping: connect: Network is unreachable

Can resolve domain name:

getent hosts ipv4.google.com
142.250.185.206 ipv4.l.google.com ipv4.google.com

NetworkManager status:

systemctl status NetworkManager
● NetworkManager.service - Network Manager
     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; preset: disabled)
     Active: active (running) since Wed 2022-12-14 06:23:10 CET; 9h ago
       Docs: man:NetworkManager(8)
   Main PID: 828 (NetworkManager)
      Tasks: 4 (limit: 16643)
     Memory: 31.9M
        CPU: 3.411s
     CGroup: /system.slice/NetworkManager.service
             ├─  828 /usr/bin/NetworkManager --no-daemon
             └─11301 /usr/bin/dhclient -d -q -sf /usr/lib/nm-dhcp-helper -pf /var/run/NetworkManager/dhclient-wlan0.pi>

Dec 14 15:28:36 icedtea dhclient[11301]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
Dec 14 15:28:43 icedtea dhclient[11301]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
Dec 14 15:28:57 icedtea dhclient[11301]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20
Dec 14 15:29:17 icedtea dhclient[11301]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
Dec 14 15:29:28 icedtea dhclient[11301]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
Dec 14 15:29:30 icedtea dhclient[11301]: No DHCPOFFERS received.
Dec 14 15:29:30 icedtea dhclient[11301]: Trying recorded lease 192.168.178.20
Dec 14 15:29:30 icedtea NetworkManager[828]: <info>  [1671028170.9443] dhcp4 (wlan0): activation: beginning transactio>
Dec 14 15:29:30 icedtea NetworkManager[828]: <info>  [1671028170.9444] dhcp4 (wlan0): state changed no lease
Dec 14 15:29:30 icedtea dhclient[11301]: bound: renewal in 330442 seconds.

Running services:

systemctl list-units --type=service
  UNIT                                                  LOAD   ACTIVE SUB     DESCRIPTION                             >
  accounts-daemon.service                               loaded active running Accounts Service
  alsa-restore.service                                  loaded active exited  Save/Restore Sound Card State
  avahi-daemon.service                                  loaded active running Avahi mDNS/DNS-SD Stack
  bluetooth.service                                     loaded active running Bluetooth service
  dbus.service                                          loaded active running D-Bus System Message Bus
  firewalld.service                                     loaded active running firewalld - dynamic firewall daemon
  kmod-static-nodes.service                             loaded active exited  Create List of Static Device Nodes
  lightdm.service                                       loaded active running Light Display Manager
  lvm2-monitor.service                                  loaded active exited  Monitoring of LVM2 mirrors, snapshots et>
  ModemManager.service                                  loaded active running Modem Manager
  NetworkManager.service                                loaded active running Network Manager
  polkit.service                                        loaded active running Authorization Manager
  rtkit-daemon.service                                  loaded active running RealtimeKit Scheduling Policy Service
  systemd-backlight@backlight:acpi_video0.service       loaded active exited  Load/Save Screen Backlight Brightness of>
  systemd-binfmt.service                                loaded active exited  Set Up Additional Binary Formats
  systemd-fsck@dev-disk-by\x2duuid-BD3B\x2dAC9D.service loaded active exited  File System Check on /dev/disk/by-uuid/B>
  systemd-journal-flush.service                         loaded active exited  Flush Journal to Persistent Storage
  systemd-journald.service                              loaded active running Journal Service
  systemd-logind.service                                loaded active running User Login Management
  systemd-machined.service                              loaded active running Virtual Machine and Container Registrati>
  systemd-modules-load.service                          loaded active exited  Load Kernel Modules
  systemd-random-seed.service                           loaded active exited  Load/Save Random Seed
  systemd-remount-fs.service                            loaded active exited  Remount Root and Kernel File Systems
  systemd-sysctl.service                                loaded active exited  Apply Kernel Variables
  systemd-timesyncd.service                             loaded active running Network Time Synchronization
  systemd-tmpfiles-setup-dev.service                    loaded active exited  Create Static Device Nodes in /dev
  systemd-tmpfiles-setup.service                        loaded active exited  Create Volatile Files and Directories
  systemd-udev-trigger.service                          loaded active exited  Coldplug All udev Devices
  systemd-udevd.service                                 loaded active running Rule-based Manager for Device Events and>
  systemd-update-utmp.service                           loaded active exited  Record System Boot/Shutdown in UTMP
  systemd-user-sessions.service                         loaded active exited  Permit User Sessions
  upower.service                                        loaded active running Daemon for power management
  user-runtime-dir@1000.service                         loaded active exited  User Runtime Directory /run/user/1000
  user@1000.service                                     loaded active running User Manager for UID 1000
  wpa_supplicant.service                                loaded active running WPA supplicant

LOAD   = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
35 loaded units listed. Pass --all to see loaded but inactive units, too.
To show all installed unit files use 'systemctl list-unit-files'.

Note that inet is missing from wlan0:

ifconfig
enp34s0: flags=4099<UP,BROADCAST,MULTICAST>  mtu 1500
        ether d8:bb:c1:45:ae:f0  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 0
        device memory 0xfcb00000-fcb1ffff  

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  (Local Loopback)
        RX packets 161  bytes 21593 (21.0 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 161  bytes 21593 (21.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet6 fe80::ec55:b326:577c:a899  prefixlen 64  scopeid 0x20<link>
        inet6 2001:7e8:c25d:300:47a2:18aa:5afd:82ce  prefixlen 64  scopeid 0x0<global>
        ether 14:18:c3:a8:5a:61  txqueuelen 1000  (Ethernet)
        RX packets 300123  bytes 405207225 (386.4 MiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 106327  bytes 12913282 (12.3 MiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

Disconnecting and reconnecting to the wifi connection doesn't help. Restarting doesn't do anything either. Any help would be appreciated.

Edit: Solved - the problem was my router crapped itself and messed up its config. Fixed by factory reset of my router, then set up a wifi network manually from my router's configuration page.

Last edited by GreenIcedTea (2022-12-14 22:23:18)

Offline

#2 2022-12-14 15:54:43

seth
Member
Registered: 2012-09-03
Posts: 60,804

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

Dec 14 15:28:36 icedtea dhclient[11301]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 7
Dec 14 15:28:43 icedtea dhclient[11301]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 14
Dec 14 15:28:57 icedtea dhclient[11301]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 20
Dec 14 15:29:17 icedtea dhclient[11301]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 11
Dec 14 15:29:28 icedtea dhclient[11301]: DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 2
Dec 14 15:29:30 icedtea dhclient[11301]: No DHCPOFFERS received.
Dec 14 15:29:30 icedtea dhclient[11301]: Trying recorded lease 192.168.178.20

You're using dhclient as NM dhcp backend and despite efforts, it doesn't get a lease from the AP.
1. See whether there's a dhcp server at all

sudo nmap --script broadcast-dhcp-discover

2. reboot the AP (your router)
3. 3rd link below
4. tried the built-in dhcp client? Why are you using dhclient itfp?

Online

#3 2022-12-14 16:09:08

GreenIcedTea
Member
Registered: 2021-12-30
Posts: 20

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

Tried 1:

sudo nmap --script broadcast-dhcp-discover
Starting Nmap 7.93 ( https://nmap.org ) at 2022-12-14 16:58 CET
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.25 seconds

Already done 2 - only this device is affected.

Not dualbooting with windows, so ignoring 3.

4 - the reason I'm using dhclient is because I was trying to fix the issue.
I removed the config and reloaded with:

nmcli general reload

No perceivable change doing this though.

Offline

#4 2022-12-14 17:18:49

seth
Member
Registered: 2012-09-03
Posts: 60,804

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

There's no dhcp response on the network, you'd be looking for sth. like https://nmap.org/nsedoc/scripts/broadca … cover.html
This is w/ "ping -c3 ipv6.google.com" working?

ip -6 r

Can you try the dhcp scan on enp34s0 ?

Online

#5 2022-12-14 17:43:19

GreenIcedTea
Member
Registered: 2021-12-30
Posts: 20

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

ip -6 r
::1 dev lo proto kernel metric 256 pref medium
2001:7e8:c25d:300::/64 dev wlan0 proto ra metric 600 pref medium
2001:7e8:c25d:300::/56 via fe80::e228:6dff:fe83:907 dev wlan0 proto ra metric 600 pref medium
fe80::/64 dev wlan0 proto kernel metric 1024 pref medium
default via fe80::e228:6dff:fe83:907 dev wlan0 proto ra metric 600 pref medium
ping -c3 ipv6.google.com
PING ipv6.google.com(fra16s53-in-x0e.1e100.net (2a00:1450:4001:813::200e)) 56 data bytes
64 bytes from fra16s53-in-x0e.1e100.net (2a00:1450:4001:813::200e): icmp_seq=1 ttl=118 time=20.3 ms
64 bytes from fra16s53-in-x0e.1e100.net (2a00:1450:4001:813::200e): icmp_seq=2 ttl=118 time=15.5 ms
64 bytes from fra16s53-in-x0e.1e100.net (2a00:1450:4001:813::200e): icmp_seq=3 ttl=118 time=17.2 ms

--- ipv6.google.com ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2003ms
rtt min/avg/max/mdev = 15.474/17.658/20.310/2.001 ms
sudo nmap --script broadcast-dhcp-discover           
Starting Nmap 7.93 ( https://nmap.org ) at 2022-12-14 18:40 CET
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 0.24 seconds

How exactly do you want me to scan enp34s0?

Offline

#6 2022-12-14 20:13:06

seth
Member
Registered: 2012-09-03
Posts: 60,804

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

You need to have a carrier on it (ie. plug a cable there and connect it to the router)
You seem to route via the LL address.

ip -6 r get 2a00:1450:4001:813::200e

Online

#7 2022-12-14 20:32:55

GreenIcedTea
Member
Registered: 2021-12-30
Posts: 20

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

ip -6 r get 2a00:1450:4001:813::200e
2a00:1450:4001:813::200e from :: via fe80::e228:6dff:fe83:907 dev enp34s0 proto ra src 2001:7e8:c263:5a00:907b:a34b:b0c9:46a4 metric 100 pref medium

My network connection is fully working when connected through ethernet.

Offline

#8 2022-12-14 20:44:18

seth
Member
Registered: 2012-09-03
Posts: 60,804

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

Yes, but we want to know whether there's a dhcp server responding…

Online

#9 2022-12-14 20:47:01

GreenIcedTea
Member
Registered: 2021-12-30
Posts: 20

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

sudo nmap --script broadcast-dhcp-discover           
[sudo] password for dylan: 
Starting Nmap 7.93 ( https://nmap.org ) at 2022-12-14 21:45 CET
Pre-scan script results:
| broadcast-dhcp-discover: 
|   Response 1 of 1: 
|     Interface: enp34s0
|     IP Offered: 192.168.178.174
|     DHCP Message Type: DHCPOFFER
|     Server Identifier: 192.168.178.1
|     IP Address Lease Time: 10d00h00m00s
|     Renewal Time Value: 5d00h00m00s
|     Rebinding Time Value: 8d18h00m00s
|     Subnet Mask: 255.255.255.0
|     Router: 192.168.178.1
|     Domain Name Server: 192.168.178.1
|     Domain Name: fritz.box
|     Broadcast Address: 192.168.178.255
|_    NTP Servers: 192.168.178.1
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 10.31 seconds

Hmmmm

Offline

#10 2022-12-14 20:50:55

seth
Member
Registered: 2012-09-03
Posts: 60,804

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

There's your dhcp server - check the fritz.box and make sure that the wireless connection is really made there - and whether you're maybe restricting the dhcp server to ethernet or you're possibly connecting to some guest network?

Online

#11 2022-12-14 21:51:04

GreenIcedTea
Member
Registered: 2021-12-30
Posts: 20

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

Factory reset my router and spent the last hour configuring the network - finally it is working! Thank you very much for your help!

Offline

#12 2022-12-14 22:00:13

seth
Member
Registered: 2012-09-03
Posts: 60,804

Re: No ipv4/inet over wlan0, ipv6 working fine - Solved

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Online

Board footer

Powered by FluxBB