Upgrade 23.05 breaks WAN ­­— TP-Link Archer C6U

Upgrade 23.05 breaks WAN. If I connect the ISP cable into the LAN port (and configure it as WAN), then the connection works.

Rolling back to 22.03.6 makes WAN working.

logread of 23.05.2: https://pastebin.com/cRhgnb16
logread of 22.03.6: https://pastebin.com/dt7ivmKi
ip addr: Upgrade 23.05 breaks WAN ­­— TP-Link Archer C6U - #26 by rozhur
/etc/config/network: Upgrade 23.05 breaks WAN ­­— TP-Link Archer C6U - #7 by rozhur

Device: https://openwrt.org/toh/tp-link/archer_c6u_v1_eu

1 Like

There have been other devices affected by a similar situation, but I don't think I've seen this on any of the TP-Link devices

Did you keep settings when you ran the upgrade to 23.05?
What is physically upstream of your C6U? (a cable or DSL modem, an ONT, another router, etc?)

Yes. Rolling back to 22.03 with saving the settings makes WAN working.

Ethernet cable of ISP.

Have you tried upgrading without keeping settings?

What kind of ISP service do you have? Cable? DSL? Fiber? Cellular? Something else?

Yes. All the same.

I do not know for sure. A cable with an Ethernet connector is connected. Network speed 100 Mbits.

The provider gave me a static IP and a gateway IP, I added them to /etc/config/network and the Internet worked, but the upgrade with save keeping settings to 23.05 breaks the WAN. If you connect the ISP cable to LAN, the connection works, therefore, the ISP cannot be the cause of the problem.

I didn’t touch anything in OpenWRT except /etc/config/network, other settings are default, I didn’t install any packages on both versions of the firmware.

Do you have any equipment in your home that converts one type of physical signal to another? Is the ethernet connector on the wall or is it a on a box or a cable that leads somewhere else?

Let's see the working (22.03) configuration of your router:

Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
grafik
Remember to redact passwords, MAC addresses and any public IP addresses you may have:

ubus call system board
cat /etc/config/network

Then, let's see the same thing on 23.05 (do not keep settings when you do the upgrade -- just enter in the wan details as required by your ISP).

The cable leads to the ISP switch.

root@OpenWrt:~# ubus call system board
{
	"kernel": "5.10.201",
	"hostname": "OpenWrt",
	"system": "MediaTek MT7621 ver:1 eco:3",
	"model": "TP-Link Archer C6U v1",
	"board_name": "tplink,archer-c6u-v1",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "22.03.6",
		"revision": "r20265-f85a79bcb4",
		"target": "ramips/mt7621",
		"description": "OpenWrt 22.03.6 r20265-f85a79bcb4"
	}
}
root@OpenWrt:~# 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 'lan1'
	list ports 'lan2'
	list ports 'lan3'
	list ports 'lan4'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '192.168.74.1/24'

config device
	option name 'br-wan'
	option type 'bridge'
	list ports 'wan'

config interface 'wan'
	option device 'br-wan'
	option proto 'static'
	option ipaddr 'xxx/xx'
	option gateway 'xxx'
	list dns 'xxx'
	list dns 'xxx'

config globals 'globals'
	option packet_steering '1'

Now I’ll do it on 23.05, it will take some time

What are the first two octets of the redacted part (in bold: aaa.bbb.ccc.ddd)?

Do you mean show the numbers? This is a public IP, not private. I don’t want to show even part of it for confidentiality reasons.
I am convinced that the setup is correct, since it works on other devices (for example, by connecting directly to my PC).

That's why I asked only for the first two octets... I want to verify.

Please confirm that it does not start with 10, 172, or 192.

They really don't start with 10, 172, or 192. The output of the ip addr command also confirms this.

Ok... thanks. That is important to confirm.

So a few more questions:

  • have you tried configuring the wan as a DHCP client?
  • Why is your wan part of a bridge? This is uncommon and usually not necessary or desirable:
  • And the ISP switch... is this actually a regular ethernet switch, or is there a modem built-into this device?

Another thing that would be useful:

  • make note of the wan MAC address that is presented to the upstream/ISP as it is on 22.03.
  • Compare that against what is presented when you upgrade to 23.05

You don't have to post it here, but you can get it by looking at the wan interface details from the ouput of ip addr

    link/ether <MAC address here>

I reset settings. I checked it on both versions without saving the settings, everything is the same: on 23.05 WAN does not work, but on 22.03 it works.

{
	"kernel": "5.15.137",
	"hostname": "OpenWrt",
	"system": "MediaTek MT7621 ver:1 eco:3",
	"model": "TP-Link Archer C6U v1",
	"board_name": "tplink,archer-c6u-v1",
	"rootfs_type": "squashfs",
	"release": {
		"distribution": "OpenWrt",
		"version": "23.05.2",
		"revision": "r23630-842932a63d",
		"target": "ramips/mt7621",
		"description": "OpenWrt 23.05.2 r23630-842932a63d"
	}
}
config interface 'loopback'
	option device 'lo'
	option proto 'static'
	option ipaddr '127.0.0.1'
	option netmask '255.0.0.0'

config globals 'globals'
	option packet_steering '1'
	option ula_prefix 'xxx'

config device
	option name 'br-lan'
	option type 'bridge'
	list ports 'lan1'
	list ports 'lan2'
	list ports 'lan3'
	list ports 'lan4'

config interface 'lan'
	option device 'br-lan'
	option proto 'static'
	option ipaddr '192.168.1.1'
	option netmask '255.255.255.0'
	option ip6assign '60'

config interface 'wan'
	option device 'wan'
	option proto 'static'
	option ipaddr 'xxx/xx'
	option gateway 'xxx'
	list dns 'xxx'
	list dns 'xxx'

config interface 'wan6'
	option device 'wan'
	option proto 'dhcpv6'

This is different between your 22.03 and 23.05 configs.

It shouldn't matter since you have said that the upstream is a true public IP, but just for consistency, set it to 192.168.74.1 and restart your router.

ISP does not provide DHCP.

There were reasons from the old settings, but I understand that it is not needed now.

They are the same.

And I think I've found a clue. ip addr on 22.03 gives wan@eth0, on 23.05 just wan. That is, for some reason wan is not assigned to eth0.

What is the device in WAN?

I tested exactly these settings with 192.168.1.1 and without br-wan on both versions. The WAN behavior is still the same.

What were the reasons previously? Did you test without the bridge in 22.03? Did it still work? If not, maybe the same bridge config is needed in 23.05.

They don't have a device in wan, as far as I can read.