Posted: Sat Oct 02, 2021 2:48 Post subject: Wan port assignment stuck at vlan2, cannot disable
I set up my Belkin F7D3302 v1 as wifi ap following instructions on wiki. r47495
After setup wan was disabled in basic setup and top right corner but wan port kept working as lan even tho that feature is removed and by default wan port was linked to vlan2 while others were on vlan1. Also no vlan2 in br0 present.
So everything is alright except wan port working as lan port and not being disabled.
Wan port assignment was set to disabled by default in networking tab.
So i went to separate lan port 1 to vlan3 for my own needs and as soon as i changed lan1 to vlan3 the wan port assignment got stuck at vlan2.
I tried to set wan port assignment back to disabled, i just can't. Wan port still works as lan. Then i tried unticking wan from vlan2 saving, applying and then ticking it back. Still can't change wan port assignment to disabled. Then i went and put br0 to wan port assignment and it accepts it. But it just won't go to disabled. As soon as i chose disabled for wan port assignment it changes to vlan2(wan port). Then i went and set wan port to vlan4, wan port assignment still stuck at vlan2. Then I decided to set wan port together with rest of lan ports and then i lost connection. Had to do s 30 30 30 reset....
Any ideas how to troubleshoot this problem with wan port working as Lan even tho it's not configured and wan port assignment stuck at vlan2? Is wan port supposed to work as Lan by default if wan is disabled in basic setup? Even if it is why it is not in br0?
Also wifi interface is called wl0 in wireless tab but in networking tab same Mac as wl0 is called eth1. wl0.1 vap is named okay in both wireless settings and networking tab. So in br0 i had vlan1 eth1 and wl0.1 instead of vlan1 wl0 wl0.1. Is this normal?
When you disable the WAN port, it automatically becomes a LAN port. This was done whenever the "Make WAN port a LAN port (or whatever it was once called)" switch disappeared. Regarding the vlans, did you try doing a full reset? If you updated from a much earlier version, this is probably a necessary step. I have a Netgear 6250 and my Switch Config and Networking tabs look like this, running the same version. This router is also an AP only, not an Internet gateway.
6250vlans2.png
Description:
Filesize:
69.97 KB
Viewed:
1597 Time(s)
6250vlans.png
Description:
Filesize:
25.92 KB
Viewed:
1593 Time(s)
_________________ Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate
Wireless 5ghz only
Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r55779
Features in use: multiple VLANs over single trunk port
Linksys EA8500 WDS Station x2 - DD-WRT r55799
Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port. DD-WRT r55779
OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.
Joined: 18 Mar 2014 Posts: 12915 Location: Netherlands
Posted: Sat Oct 02, 2021 5:53 Post subject:
As Mentioned your WAN port is assigened to the LAN when you disable it so that is working according to your post.
The switch page does not adequately reflect this, I assume you looked at this after a full reset and put settings in manually and you have refreshed your browser cache. If you did all this and it still shows wrong then we can classify this as a bug.
VLAN's are actually done using swconfig on recent builds and the switch page does not always do a good job translating to swconfig so you can better use the swconfig utility from the command line direct to do vlans (that was already the case for Atheros/Qualcomm but now also for Broadcom)
I did 2 resets before upgrading to make sure, also after upgrading i did one reset to factory defualts again.
Its not browsers bad, multiple devices used to access web interface but everything is the same. Wan port assigment stuck at vlan2 (factory wan) on different devices with different broswers. I tried setting wan port assigment to br0, it works, it just wont get disabled. Every time i click on disabled it turns back to vlan2
Okay so thats sorted out, its normal for wan to work as lan when disabled.
But the wan port assigment gets stuck at vlan2 if i touch anything in switch configuration.
Alright i will do some nvram setting via ssh maybe its corrupted after touching settings in switch config.
Joined: 08 May 2018 Posts: 14246 Location: Texas, USA
Posted: Sat Oct 02, 2021 9:09 Post subject:
Doing nvram setting via the switched ports wiki is catch-22 as you likely now have swconfig for setting the port assignments. This should be interesting... _________________ "Life is but a fleeting moment, a vapor that vanishes quickly; All is vanity"
Contribute To DD-WRT Pogo - A minimal level of ability is expected and needed... DD-WRT Releases 2023 (PolitePol)
DD-WRT Releases 2023 (RSS Everything)
----------------------
Linux User #377467 counter.li.org / linuxcounter.net
I set up my Belkin F7D3302 v1 as wifi ap following instructions on wiki. r47495
K3X I presume? E.g. /09-28-2021-r47495/broadcom_K3X/
egc wrote:
VLAN's are actually done using swconfig on recent builds and the switch page does not always do a good job translating to swconfig so you can better use the swconfig utility from the command line direct to do vlans (that was already the case for Atheros/Qualcomm but now also for Broadcom)
I do not have a link ready for using swconfig but you can google for it or someone else may chime in
https://openwrt.org/docs/techref/swconfig
kernel-panic69 wrote:
NickyYTSRB wrote:
Alright i will do some nvram setting via ssh maybe its corrupted after touching settings in switch config.
Doing nvram setting via the switched ports wiki is catch-22 as you likely now have swconfig for setting the port assignments. This should be interesting...
As others have mentioned, you need to use swconfig. E.g. from my EA6900:
# swconfig list;swconfig dev switch0 show|grep -ie vlan -e port
Found: switch0 - bcm53011
enable_vlan: 1
ports: 0x01bf
Port 0:
link: port:0 link:down
Port 1:
link: port:1 link:down
Port 2:
link: port:2 link:up speed:1000baseT full-duplex auto
Port 3:
link: port:3 link:down
Port 4:
link: port:4 link:down
Port 5:
link: port:5 link:up speed:1000baseT full-duplex
Port 6:
link: port:6 link:down
Port 7:
link: port:7 link:down
Port 8:
link: port:8 link:up speed:1000baseT full-duplex auto
VLAN 1:
ports: 1 2 3 4 5t
VLAN 2:
ports: 0 5
Thanks everyone for replies, after hard reset i set it up as ap again as per instructions on wiki. Then i ran some commands and found out probabbly what is making all this mess. NVRAM settings do not follow swconfig but web interface follows NVRAM...
Here is output after access point configuration
Code:
root@F7D3302:~# swconfig list;swconfig dev switch0 show|grep -ie vlan -e port
Found: switch0 - bcm5325
enable_vlan: 1
ports: 0x003f
Port 0:
link: port:0 link:down
Port 1:
link: port:1 link:down
Port 2:
link: port:2 link:down
Port 3:
link: port:3 link:down
Port 4:
link: port:4 link:up speed:100baseT full-duplex auto
Port 5:
link: port:5 link:up speed:100baseT full-duplex
Port 6:
link: port:6 link:down
Port 7:
link: port:7 link:down
Port 8:
link: port:8 link:down
VLAN 1:
ports: 0 1 2 3 4 5t
root@F7D3302:~# nvram show | grep vlan.*ports | sort
MACs are intentionally left blank just for a screenshot.
The mess happens when i want to make my own vlan OR if i click anything in switch config tab....
So i guess this is a bug and i have to do switch configuration using swconfig and create my own vlans via terminal and use terminal to avoid Switch Config and Networking tab completly
Edit:
So i can 100% confirm that WAN port assigment and bridge configuration gets corrupted when ANY PORT is checked under vlan2 and "save" is clicked....
I tired to set WAN port to vlan3 and leave other 4 at vlan1 and eveything works. This must be a bug with new swconfig support