You are not logged in.

#1 2018-08-28 19:00:03

emak
Member
Registered: 2012-03-20
Posts: 32

[SOLVED] Software access point w NetworkManager having both LAN/WLAN

Hi

I would like to use Networkmanager to make a software access point through the Wifi while having the internet connectivity through the LAN cable.

Somehow I do not manage to get both up at the same time. NetworkManager will typically kill the unused interface - see an extract of relevant journalctl entries:

NetworkManager[8510]: <info>  [1535481683.5545] device (eno1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed')
NetworkManager[8510]: <info>  [1535481683.5553] device (eno1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed')
NetworkManager[8510]: <info>  [1535481683.5613] device (eno1): Activation: successful, device activated.
NetworkManager[8510]: <info>  [1535481683.6053] policy: set 'Ethernet DHCP Client' (eno1) as default for IPv4 routing and DNS
wpa_supplicant[791]: rfkill: WLAN hard blocked
kernel: iwlwifi 0000:02:00.0: RF_KILL bit toggled to disable radio.
kernel: iwlwifi 0000:02:00.0: reporting RF_KILL (radio disabled)
systemd[1]: Starting Load/Save RF Kill Switch Status...
kernel: wlp2s0: deauthenticating from 9c:b8:v7:f2:f7:88 by local choice (Reason: 3=DEAUTH_LEAVING)
NetworkManager[8510]: <info>  [1535481684.3915] manager: rfkill: WiFi now disabled by radio killswitch
NetworkManager[8510]: <info>  [1535481684.3919] device (wlp2s0): state change: activated -> unavailable (reason 'none', sys-iface-state: 'managed')

The only way I could do it for now is by completely unmanaging the interfaces by Network-Manager - but that's not practical in everydays life... /etc/NetworkManager/NetworkManager.conf:

#[keyfile]
#unmanaged-devices=interface-name:wlp2s0,eno1

I have a Dell Latitude E7450 with an Intel Wireless AC-9260 card (or a Latitude E7480 with an Intel Wireless 8265). When connected to the cable the WLAN shows up as hard blocked, thus making the following command useless:

# rfkill list 
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes
# rfkill unblock 1
# rfkill list 
0: hci0: Bluetooth
        Soft blocked: no
        Hard blocked: no
1: phy0: Wireless LAN
        Soft blocked: no
        Hard blocked: yes

I have tried blocking the rfkill command with an udev rule which did not work neither

# Interfaces that shouldn't be managed by NetworkManager
#
ACTION=="add", SUBSYSTEM=="net", KERNEL=="eno1", ENV{NM_UNMANAGED}="1"
ACTION=="add", SUBSYSTEM=="net", KERNEL=="wlp2s0", ENV{NM_UNMANAGED}="1"

Any ideas?

Last edited by emak (2018-09-23 10:39:17)

Offline

#2 2018-08-28 21:00:36

TheSaint
Member
From: my computer
Registered: 2007-08-19
Posts: 1,523

Re: [SOLVED] Software access point w NetworkManager having both LAN/WLAN

I think that the only connection manager able to work with multiple connection is netctl.


do it good first, it will be faster than do it twice the saint wink

Offline

#3 2018-09-23 10:37:16

emak
Member
Registered: 2012-03-20
Posts: 32

Re: [SOLVED] Software access point w NetworkManager having both LAN/WLAN

Well. I did not found it out on this computer and I could neither find a BIOS setting (newer Dell Laptops have a BIOS setting to disable the network when WLAN is connected). But I just replaced my laptop in the meantime and the new one did not have a RJ45 port so I had to buy a USB3.0 - RJ45 adapter. And this works perfectly (both Ethernet and WLAN activated at the same time). I tested and this solution also works with the old laptop. Kind of a workaround but I still mark this thread as solved.

Offline

Board footer

Powered by FluxBB