You are not logged in.

#1 2023-07-13 15:23:50

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 73
Website

[Solved] LAN between 2 laptops NetworkManager stuck on getting IP

Laptop A:  Dualboot: Arch Linux | Windows 10
Laptop B: Windows 7

I connected them with a LAN cable and the Laptop A is unable to get the IP configuration.
The connection is working perfectly when the laptop A is running Windows 10.
WiFi and USB Ethernet are working.
Unfortunately I can't test the Ethernet connection with a router since I don't have any.

enp7s0: connecting (getting IP configuration) to Wired connection 1
        "Realtek RTL8111/8168/8411"
        ethernet (r8169), 08:97:98:8F:F0:3A, hw, mtu 1500

Output of journalctl -f

Jul 13 17:13:43 WolfArch NetworkManager[6401]: <info>  [1689261223.1237] dhcp4 (enp7s0): activation: beginning transaction (timeout in 45 seconds)
Jul 13 17:13:43 WolfArch NetworkManager[6401]: <info>  [1689261223.1237] dhcp4 (enp7s0): state changed no lease
Jul 13 17:16:11 WolfArch NetworkManager[6401]: <info>  [1689261371.0183] device (enp7s0): Activation: starting connection 'Wired connection 1' (273b725b-52c9-3c67-8108-96f6cb416420)
Jul 13 17:16:11 WolfArch NetworkManager[6401]: <info>  [1689261371.0184] audit: op="connection-activate" uuid="273b725b-52c9-3c67-8108-96f6cb416420" name="Wired connection 1" pid=942 uid=1000 result="success"
Jul 13 17:16:11 WolfArch NetworkManager[6401]: <info>  [1689261371.0185] device (enp7s0): state change: disconnected -> prepare (reason 'none', sys-iface-state: 'managed')
Jul 13 17:16:11 WolfArch NetworkManager[6401]: <info>  [1689261371.0188] device (enp7s0): state change: prepare -> config (reason 'none', sys-iface-state: 'managed')
Jul 13 17:16:11 WolfArch NetworkManager[6401]: <info>  [1689261371.0194] device (enp7s0): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed')
Jul 13 17:16:11 WolfArch NetworkManager[6401]: <info>  [1689261371.0199] dhcp4 (enp7s0): activation: beginning transaction (timeout in 45 seconds)
Jul 13 17:16:56 WolfArch NetworkManager[6401]: <info>  [1689261416.0549] device (enp7s0): state change: ip-config -> failed (reason 'ip-config-unavailable', sys-iface-state: 'managed')
Jul 13 17:16:56 WolfArch NetworkManager[6401]: <warn>  [1689261416.0552] device (enp7s0): Activation: failed for connection 'Wired connection 1'

Last edited by Wolfyxon (2023-07-14 18:38:38)


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#2 2023-07-13 16:15:32

-thc
Member
Registered: 2017-03-15
Posts: 775

Re: [Solved] LAN between 2 laptops NetworkManager stuck on getting IP

The Windows network stack and NetworkManager both default to DHCP - but only the Windows stack falls back to APIPA addresses (Link-Local) when DHCP fails.

Try to set the NM LAN connection to "Link Local only" and try to ping the APIPA address chosen by the Windows PC.

Offline

#3 2023-07-13 20:22:54

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 73
Website

Re: [Solved] LAN between 2 laptops NetworkManager stuck on getting IP

Try to set the NM LAN connection to "Link Local only"

How do I do that? I can't find it in the wiki.


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

#4 2023-07-14 05:06:23

-thc
Member
Registered: 2017-03-15
Posts: 775

Re: [Solved] LAN between 2 laptops NetworkManager stuck on getting IP

Assuming NM has labeled your Ethernet connection as "Wired connection 1":

nmcli c modify "Wired connection 1" ipv4.method link-local

Back to the default:

nmcli c modify "Wired connection 1" ipv4.method auto

Offline

#5 2023-07-14 18:37:51

Wolfyxon
Member
From: Poland
Registered: 2022-11-21
Posts: 73
Website

Re: [Solved] LAN between 2 laptops NetworkManager stuck on getting IP

Worked. Thanks!


Display: Xorg | Display manager: lightdm | Greeter: lightdm-gtk-greeter | DE/WM: i3 | kernel: 6.8.2-arch1-1 | GPU drivers: modesetting, nvidia-dkms

Offline

Board footer

Powered by FluxBB