Strange behaviour when Raspberry PI 4 connected to my OPNsense device

Started by hushcoden, November 24, 2021, 10:14:43 AM

Previous topic - Next topic
Briefly, my device has got 3 ports, WAN, LAN1 and LAN2, and each time I reboot the RB Pi 4 (which is connected to LAN2) all my devices (which are connected to a WAP on LAN1) lose Internet for about 2 minutes: why is that ?

Tia.

Hard to say without details about the software on the Pi. First thought is an IP conflict since the timescale fits an ARP timeout.

Run a ping to 8.8.8.8 from one of your affected devices and Wireshark its traffic to see what's going on.

Bart...

Raspi OS?
Connected via wifi or RJ45?
Interface on raspi configured for DHCP or fixed IP?
Is the network connection on the raspi functional during these 2 min?
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

Quote from: chemlud on November 24, 2021, 09:21:25 PM
Raspi OS?
Tried both Buster and Bullseye 64 bit

Quote
Connected via wifi or RJ45?
RJ45

Quote
Interface on raspi configured for DHCP or fixed IP?
Fixed IP

Quote
Is the network connection on the raspi functional during these 2 min?
Yes, LAN wise it seems all okay, e.g. I can use VNCViewer, SSH, and the shared printer

Do you have a usb nic anywhere by any chance. Some usb nics send a reset packet that broadcasts over the network that causes problems with many devices.

Nope, I don't use USB NIC - and if I connect the PS4 to same LAN2 port, I can reboot it many times and it all works normally.

I did also connect the Raspi directly to my laptop, and I can't see that same strange behaviour, i.e. my laptop never loses Internet connection.

Thanks.

Does the raspi try to connect to the WAP in LAN1? I don't get what the connection between joining LAN2 via RJ45 and the connection of your clients to a WAP in LAN1 should be....
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

Quote from: chemlud on November 25, 2021, 02:35:19 PM
Does the raspi try to connect to the WAP in LAN1?
No, both Bluetooth and Wi-Fi on Raspi are disabled.

Quote
I don't get what the connection between joining LAN2 via RJ45 and the connection of your clients to a WAP in LAN1 should be....
Me neither  ::)

I should probably look at some OPNsense logs, but have no clue where to start from, any advice?

Quote from: hushcoden on November 25, 2021, 04:50:04 PM
I should probably look at some OPNsense logs, but have no clue where to start from, any advice?

Yes, start with the devices that have the actual problem - record a packet capture on a workstation that is running a ping -t 8.8.8.8 and check which errors you see.

There is as yet nothing to point to OPNsense - just to a general connectivity issue in a subnet that you can reliably trigger with a reboot of a device.

In a way, you're lucky. Random problems are much harder to diagnose :)

Bart...

My idea: try  something like Debian or opensuse

https://en.opensuse.org/HCL:Raspberry_Pi4

If same problem: post here again

If not: post in networking section of raspi forums...
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

Will try with a different OS sooner or later, for now I have swapped it with the PS4, i.e. Raspi connected to one of the LAN port of the WAP, and PS4 to LAN2 and no more that issue.

Are you using the LAN ports of your sense in bridge mode? Would not recommend....
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

Quote from: chemlud on November 29, 2021, 04:17:40 PM
Are you using the LAN ports of your sense in bridge mode? Would not recommend....
Nope: LAN1 = 192.168.0.0/24 and LAN2 = 192.168.10.0/24

Raspi is no longer connected, but still I experience this annoying issue this time with the PS4 connected to that same LAN2 port: each and everytime I switch it on, all my LAN clients lose Internet for a couple of minutes.

I have attached what I can see on the general log, any suggestions?

Tia.