wpa_supplicant kils connection from my laptop

This forum is for discussion about general software issues.

wpa_supplicant kils connection from my laptop

Postby shadrock » Thu Sep 24, 2020 9:34 am

Hi everyone

my network is connected through a switch with a wireless router also connected to the switch,
so all my servers are accessible via the wireless or directly through the switch,
my laptop connects to the network via the wireless router,
I have a rpi3 configured with ArchLinuxARM-rpi-latest.tar.gz and connected to the switch
and can connect to it from my laptop via the wireless or directly through the switch,
i have also set a fixed address in the network configuration
for easy connection without guessing the dhcp addresss,
I set-up the wireless (wlan0) on the rpi3 and bonded it to the lan (eth0) using the configuration below,
wpa_supplicant connects to the wireless router correctly when enabled,
without wpa_supplicant enabled i can connect to the rpi3
through the wireless router to the switch from my laptop
and i can connect to the rpi3 from the other servers
on the lan via a wired connection to the switch,
when i enable wpa_supplicant i lose connection between the laptop and the rpi3
and no new connections can be made neither ping or ssh,
but i can still ssh to one of the servers on the lan from my laptop
then ssh from that server to the rpi3,
the rpi3 is still connected to to switch via a network cable
and eth0 is still the active interface,
i even tried bring down eth0 which caused wlan0 to become the active interface
but still could not ping the rpi3.

can someone check my configuration details to see if there is a error
or offer any suggestions

thanks shadrock



[alarm@koditest ~]$ cp /etc/systemd/network/eth0.network /etc/systemd/network/eth0.network-
[alarm@koditest ~]$ cat /etc/systemd/network/30-bond0.netdev

[NetDev]
Name=bond0
Kind=bond

[Bond]
Mode=active-backup
PrimaryReselectPolicy=always
MIIMonitorSec=1s


# Set the wired interface as the primary:
[alarm@koditest ~]$ cat /etc/systemd/network/30-ethernet-bond0.network

[Match]
Name=eth0

[Network]
Bond=bond0
PrimarySlave=true


# Set the wireless as the secondary:
[alarm@koditest ~]$ cat /etc/systemd/network/30-wifi-bond0.network

[Match]
Name=wlan0

[Network]
Bond=bond0


# Configure the bond interface as you would a normal interface:
[alarm@koditest ~]$ cat /etc/systemd/network/30-bond0.network

[Match]
Name=bond0

[Network]
DHCP=yes
DNS=1.1.1.1 208.67.220.220

[Address]
Address=10.2.1.137/24


[alarm@koditest ~]$ systemctl restart systemd-networkd
[alarm@koditest ~]$ cat /etc/wpa_supplicant/wpa_supplicant-wlan0.conf

ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=wheel
network={
ssid="zion"
scan_ssid=1
key_mgmt=WPA-PSK
psk="yoforeal"
}
EOF


[alarm@koditest ~]$ systemctl enable wpa_supplicant@wlan0.service
[alarm@koditest ~]$ systemctl start wpa_supplicant@wlan0.service

[alarm@koditest ~]$ ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,SLAVE,UP,LOWER_UP> mtu 1500 qdisc fq_codel master bond0 state UP group default qlen 1000
link/ether 0e:c6:37:02:1b:fe brd ff:ff:ff:ff:ff:ff
3: bond0: <BROADCAST,MULTICAST,MASTER,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default qlen 1000
link/ether 0e:c6:37:02:1b:fe brd ff:ff:ff:ff:ff:ff
inet 10.2.1.137/24 brd 10.2.1.255 scope global bond0
valid_lft forever preferred_lft forever
inet 10.2.1.248/24 brd 10.2.1.255 scope global secondary dynamic bond0
valid_lft 16299sec preferred_lft 16299sec
inet6 2a02:8010:658b:1:cc6:37ff:fe02:1bfe/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 2591741sec preferred_lft 604541sec
inet6 fd22:b5a7:3e84:bcd5:cc6:37ff:fe02:1bfe/64 scope global dynamic mngtmpaddr noprefixroute
valid_lft 2591741sec preferred_lft 604541sec
inet6 fe80::cc6:37ff:fe02:1bfe/64 scope link
valid_lft forever preferred_lft forever
4: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,SLAVE,UP> mtu 1500 qdisc fq_codel master bond0 state DOWN group default qlen 1000
link/ether 0e:c6:37:02:1b:fe brd ff:ff:ff:ff:ff:ff


[alarm@koditest ~]$ resolvectl
Global
LLMNR setting: yes
MulticastDNS setting: yes
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Current DNS Server: 208.67.220.220
DNS Servers: 208.67.220.220
Fallback DNS Servers: 1.1.1.1
9.9.9.10
8.8.8.8
2606:4700:4700::1111
2620:fe::10
2001:4860:4860::8888
DNS Domain: ad.tissisat.co.uk

Link 2 (eth0)
Current Scopes: none
DefaultRoute setting: no
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no

Link 3 (bond0)
Current Scopes: DNS LLMNR/IPv4 LLMNR/IPv6
DefaultRoute setting: yes
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no
Current DNS Server: 1.1.1.1
DNS Servers: 1.1.1.1
208.67.220.220

Link 4 (wlan0)
Current Scopes: none
DefaultRoute setting: no
LLMNR setting: yes
MulticastDNS setting: no
DNSOverTLS setting: no
DNSSEC setting: no
DNSSEC supported: no


[alarm@koditest ~]$ sudo systemctl status wpa_supplicant@wlan0.service
wpa_supplicant@wlan0.service - WPA supplicant daemon (interface-specific version)
Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant@.service; enabled; vendor preset: disabled)
Active: active (running) since Wed 2020-09-23 03:22:28 BST; 3min 44s ago
Main PID: 267 (wpa_supplicant)
Tasks: 1 (limit: 1473)
CGroup: /system.slice/system-wpa_supplicant.sli ... n0.service
└─267 /usr/bin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wlan0.conf -iwlan0

Sep 23 03:22:28 koditest systemd[1]: Started WPA supplicant daemon (interface-specific version).
Sep 23 03:22:28 koditest wpa_supplicant[267]: Successfully initialized wpa_supplicant
Sep 23 03:22:51 koditest wpa_supplicant[267]: wlan0: Trying to associate with SSID 'ZION'
Sep 23 03:22:54 koditest wpa_supplicant[267]: wlan0: Associated with c4:71:54:2a:78:9e
Sep 23 03:22:54 koditest wpa_supplicant[267]: wlan0: CTRL-EVENT-CONNECTED - Connection to c4:71:54:2a:78:9e completed [id=0 id_str=]
Sep 23 03:22:54 koditest wpa_supplicant[267]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0

[alarm@koditest ~]$ networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether enslaved configured
3 bond0 bond routable configured
4 wlan0 wlan enslaved configured

4 links listed.

[alarm@koditest ~]$ cat /proc/net/bonding/bond0

Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0 (primary_reselect always)
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 1000
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: b8:27:eb:9a:bc:62
Slave queue ID: 0

Slave Interface: wlan0
MII Status: up
Speed: Unknown
Duplex: Unknown
Link Failure Count: 2
Permanent HW addr: b8:27:eb:cf:e9:37
Slave queue ID: 0


[alarm@koditest ~]$ sudo systemctl stop wpa_supplicant@wlan0.service
[alarm@koditest ~]$ sudo systemctl status wpa_supplicant@wlan0.service
wpa_supplicant@wlan0.service - WPA supplicant daemon (interface-specific version)
Loaded: loaded (/usr/lib/systemd/system/wpa_supplicant@.service; enabled; vendor preset: disabled)
Active: inactive (dead) since Wed 2020-09-23 03:26:45 BST; 2min 34s ago
Process: 267 ExecStart=/usr/bin/wpa_supplicant -c/etc/wpa_supplicant/wpa_supplicant-wlan0.conf -iwlan0 (code=exited, status=0/SUC>
Main PID: 267 (code=exited, status=0/SUCCESS)

Sep 23 03:22:54 koditest wpa_supplicant[267]: wlan0: CTRL-EVENT-CONNECTED - Connection to c4:71:54:2a:78:9e completed [id=0 id_str=]
Sep 23 03:22:54 koditest wpa_supplicant[267]: wlan0: CTRL-EVENT-SUBNET-STATUS-UPDATE status=0
Sep 23 03:26:45 koditest wpa_supplicant[267]: nl80211: deinit ifname=p2p-dev-wlan0 disabled_11b_rates=0
Sep 23 03:26:45 koditest systemd[1]: Stopping WPA supplicant daemon (interface-specific version)...
Sep 23 03:26:45 koditest wpa_supplicant[267]: p2p-dev-wlan0: CTRL-EVENT-TERMINATING
Sep 23 03:26:45 koditest wpa_supplicant[267]: wlan0: CTRL-EVENT-DISCONNECTED bssid=c4:71:54:2a:78:9e reason=3 locally_generated=1
Sep 23 03:26:45 koditest wpa_supplicant[267]: nl80211: deinit ifname=wlan0 disabled_11b_rates=0
Sep 23 03:26:45 koditest wpa_supplicant[267]: wlan0: CTRL-EVENT-TERMINATING
Sep 23 03:26:45 koditest systemd[1]: wpa_supplicant@wlan0.service: Succeeded.
Sep 23 03:26:45 koditest systemd[1]: Stopped WPA supplicant daemon (interface-specific version).

[alarm@koditest ~]$ networkctl
IDX LINK TYPE OPERATIONAL SETUP
1 lo loopback carrier unmanaged
2 eth0 ether enslaved configured
3 bond0 bond degraded-carrier configured
4 wlan0 wlan no-carrier configured

4 links listed.

[alarm@koditest ~]$ cat /proc/net/bonding/bond0
Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)

Bonding Mode: fault-tolerance (active-backup)
Primary Slave: eth0 (primary_reselect always)
Currently Active Slave: eth0
MII Status: up
MII Polling Interval (ms): 1000
Up Delay (ms): 0
Down Delay (ms): 0
Peer Notification Delay (ms): 0

Slave Interface: eth0
MII Status: up
Speed: 1000 Mbps
Duplex: full
Link Failure Count: 0
Permanent HW addr: b8:27:eb:9a:bc:62
Slave queue ID: 0

Slave Interface: wlan0
MII Status: down
Speed: Unknown
Duplex: Unknown
Link Failure Count: 2
Permanent HW addr: b8:27:eb:cf:e9:37
Slave queue ID: 0
shadrock
 
Posts: 1
Joined: Thu Sep 24, 2020 9:06 am

Return to General

Who is online

Users browsing this forum: No registered users and 17 guests