Are you talking about a normal reboot with a normally functioning configuration
(such that nothing is changing across the reboot)?
Normal yes. Not sure what you mean by nothing is changing across the reboot. Do you mean am I making config changes to the router before rebooting? No.
In terms of this thread, I thought it was said that this could happen when the firmware first initializes, on the first boot after it's been written to the device. Fine, I felt that was acceptable.
Then I noticed that when I reboot it, normal reboots, this issue happens now and then and it's random. Random in terms of, I've not found any way to reproduce it reliably.
A device rebooting should not affect anything upstream, but it would be expected of course for
the stuff downstream of the device being rebooted.
That's why I'm posting about it, because it is affecting the network, it's conflicting with the main LAN gateway that is 192.168.1.1.
Let's see your system diagram (a photo sketch on paper is sufficient).
I'm not sure what you want me to show. It's a standard network.
LAN devices-->pfsense firewall-->provider modem-->Internet
describe the specific symptoms of the network going down? For example, have you tried
persistent pings to another device on the lan? on the internet? etc? Does this affect both wired
and wireless devices? Any other clues?
I've not tested wireless since most of the time, I'm not using it.
When it reboots, my own PC loses Internet access for 10-30 seconds or so. That's how I noticed it. Initially I didn't notice the correlation between rebooting router and loss of network.
When I reboot the router, I use three other servers on the same LAN to ping 192.168.1.1, 4.2.2.2 and the router itself so I know when it's rebooting and back.
I just rebooted the 21.x.x openwrt router now. No change to anything, just a simple 'reboot -f'.
Just prior, I opened three ssh sessions to different machines on the LAN.
One is pinging the openwrt router itself at 192.168.1.5.
Another is pinging 4.2.2.2 and another is pinging the local gw 192.168.1.1.
As the openwrt router reboots, 4.2.2.2 is timing out but am still able to ping 192.168.1.1.
I know it's not the openwrt router responding because I can no longer ping it since it's rebooting.
They key however is that this ONLY happens when I reboot this openwrt 21.x.x router.
And it doesn't always happen. I rebooted it again and that time, no changes.
I did it a third time, this time pings stopped to 4.2.2.2 and 192.168.1.1 and I can always tell when RDP loses access which it did to a remote server I'm constantly using. The loss started maybe 15 seconds into the reboot. First both 4.2.2.2 and 192.168.1.1 stopped responding then 192.168.1.1 responses but the Internet was unreachable. Maybe 20-30 seconds later, the Internet was reachable again.
BTW, I've got those pings continuously running to see if there is any obvious Internet access loss and I'm not seeing any unless I reboot this router.
Why this affects Internet access is a mystery to me right now but this only happens with the new version of openwrt. I have other openwrt routers here that I play here and have online doing different things and none of those affect the network. Those are all 18.x.x however.
To me, it's something to do with the built in 192.168.1.1 causing a conflict with the main firewall temporarily. Meaning, when it boots, it's doing something using 192.168.1.1 temporarily and is of course why I'm not able to ping it at 192.168.1.5 since the network config that I have is not yet running but something else is.
Please copy the output of the following commands
OpenWrt 22.03.3, r20028-43d71ad93e
cat /etc/config/network
config interface 'loopback'
option device 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config device
option name 'br-lan'
option type 'bridge'
list ports 'eth0.1'
config interface 'lan'
option device 'br-lan'
option proto 'dhcp'
config interface 'wan'
option device 'eth0.2'
option proto 'dhcp'
config interface 'wan6'
option device 'eth0.2'
option proto 'dhcpv6'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '1 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0 6t'
cat /etc/config/wireless
config wifi-device 'radio0'
option type 'mac80211'
option channel '1'
option hwmode '11g'
option path 'platform/10300000.wmac'
option htmode 'HT20'
option disabled '0'
config wifi-iface 'sta'
option device 'radio0'
option network 'wwan'
option mode 'sta'
option ssid 'xxx'
option encryption 'xxx'
option key 'xxx'
option disassoc_low_ack '0'
option disabled '0'
cat /etc/config/dhcp
config dhcp 'lan'
option interface 'lan'
option start '100'
option limit '150'
option leasetime '12h'
option domain 'lan'
option dhcpv4 'server'
option dhcpv6 'server'
option ra 'server'
option ra_slaac '1'
list ra_flags 'managed-config'
list ra_flags 'other-config'
config odhcpd 'odhcpd'
option maindhcp '1'
option leasefile '/tmp/hosts/odhcpd'
option leasetrigger '/usr/sbin/odhcpd-update'
option loglevel '4'