New Build - 08/29/2022 - r49976

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Goto page Previous  1, 2, 3  Next
Author Message
mrjcd
DD-WRT Guru


Joined: 31 Jan 2015
Posts: 6268
Location: Texas

PostPosted: Tue Aug 30, 2022 2:36    Post subject: Reply with quote
lexridge wrote:
Good luck with that. .... Switch Config page is a mess.

thanky Sir
yeahuh I seen the Switch Config page is borked from looking at the WNDR3700v4
I really have never paid much attention to that page anyways Wink

----
damnit I hate when electricty blinks out in middle of writing sompin
oh well all good now and my Debian machine recovers very nicely.
ONT, main router & webserver is all on UPS so that worky good for me.

I'll tinker with it someday --- AFAIK it will be just like the R7800.
AND I never use VLAN tagging ...just use VLANs for detached networks & such.
That should be simple BUT it all worked just fine for years the way it was Twisted Evil

I put a note on my EA8500 VLAN page saying none of it works with new DD-WRT builds ...just barely got that done before electricity blinked --- lil storm moving thru here tonight Cool
Sponsor
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Tue Aug 30, 2022 6:00    Post subject: Reply with quote
lexridge wrote:
Good luck with that. I have been trying now for a few days to reconfigure vlans on a spare EA8500. The last release seems to nullify any working vlans on the EA8500. Make one change, you can no longer get into it (via GUI). This one I cannot tell, since the Switch Config page is a mess. Next release may be the tail tell signs. Please post your results.

Since r49866 EA8500 is no longer single CPU port but dual WAN0 LAN6 like R7800, R7500v2 & ASRock G10 r49934.

After reset simply do not click Switch Config tab Save or Apply for any dual dedicated WAN 0 LAN 6 cpu port router.
Otherwise at this point congrats the config is now broken so router is useless as both ports 0 and 6 are now tagged!

I think we all would like to see Switch Config more versatile, adaptable, functional representative of default settings.
Currently it is nothing more than VLAN tab, so please at least for now pretend it does not exist for dual port routers!

In case adapting command-line solutions replace 0t with 6t. Networking tab ifnames vlan2 vlan1 are now eth0 eth1.
If following working examples from R7800 or R7500 v2 keep in mind ports 1 2 3 4 are reversed on netgear models.
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 960
Location: WV, USA

PostPosted: Tue Aug 30, 2022 10:57    Post subject: Reply with quote
mrjcd wrote:

I'll tinker with it someday --- AFAIK it will be just like the R7800.
AND I never use VLAN tagging ...just use VLANs for detached networks & such.
That should be simple BUT it all worked just fine for years the way it was Twisted Evil

I put a note on my EA8500 VLAN page saying none of it works with new DD-WRT builds ...just barely got that done before electricity blinked --- lil storm moving thru here tonight Cool

Unfortunately, I will be stuck on 49838 for the foreseeable future, as I use three tagged vlans on both my EA8500 (Gateway) and my R7800 (WAP w/no WAN port). Hopefully this will get sorted out in a timely manner and CPU ports will appear on the SC page. Dare I hold my breath? Very Happy

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r53562

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port.

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12834
Location: Netherlands

PostPosted: Tue Aug 30, 2022 11:04    Post subject: Reply with quote
@lexridge you can just use swconfig to setup just like on an R7800 (although the port order is not reversed I think)
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Tue Aug 30, 2022 11:06    Post subject: Reply with quote
Exactly if you want to selectively tag ports use startup script methods. For interfaces there is always networking tab.
Included everything needed in previous post to make necessary changes, and with links to mrjcd and egc examples.

I missed something for mrjcd examples 'swconfig dev switch0 set enable_vlan 1' in addition to replace all 0t with 6t.
Also optionally if you want to restore the vlan interface naming, 'vconfig set_name_type VLAN_PLUS_VID_NO_PAD'.

egc's document already covers these things. :)
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 960
Location: WV, USA

PostPosted: Tue Aug 30, 2022 13:14    Post subject: Reply with quote
blkt wrote:
Exactly if you want to selectively tag ports use startup script methods. For interfaces there is always networking tab.
Included everything needed in previous post to make necessary changes, and with links to mrjcd and egc examples.

I missed something for mrjcd examples 'swconfig dev switch0 set enable_vlan 1' in addition to replace all 0t with 6t.
Also optionally if you want to restore the vlan interface naming, 'vconfig set_name_type VLAN_PLUS_VID_NO_PAD'.

egc's document already covers these things. Smile

Good info. So I think my confusion came from (among other things) the command is slightly different than what I had been using previously I think. The difference is I was using eth0/1 as the device, and not switch0.
ie.
swconfig dev eth0 vlan 10 set ports "4t 6t"
instead of
swconfig dev switch0 vlan 10 set ports "4t 6t"
I guess this is the difference between single CPU port and dual CPU port, or am I entirely off base here?

It has occurred to me that I was able to get away with using the GUI on the R7800 to set up my VLANs previously because I have the WAN port disabled. Does that make sense?

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r53562

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port.

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248


Last edited by lexridge on Tue Aug 30, 2022 13:28; edited 1 time in total
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Tue Aug 30, 2022 13:25    Post subject: Reply with quote
'swconfig dev switch0 set enable_vlan 1' this command is enable_vlan 1 or 0, on or off.

Yes, without connection to WAN you likely would not have noticed your config is busted.
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 960
Location: WV, USA

PostPosted: Tue Aug 30, 2022 13:30    Post subject: Reply with quote
My bad. I pasted the wrong command. I corrected it in my post, but it should have been:
swconfig dev eth0 vlan 10 set ports "4t 6t"
instead of
swconfig dev switch0 vlan 10 set ports "4t 6t"

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r53562

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port.

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Tue Aug 30, 2022 13:46    Post subject: Reply with quote
Oh you caught another needed change to mrjcd's examples. Replace eth0 with switch0!

Before eth0 was split to vlan1(LAN) & vlan2(WAN) but now it's eth0(WAN) & eth1(LAN).
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 960
Location: WV, USA

PostPosted: Tue Aug 30, 2022 14:09    Post subject: Reply with quote
I have set this up on my spare EA8500 for testing. Seems to be working as the vlans show up on the networking page and via swconfig. I will manually add the bridges via the Networking tab later today. This hopefully will tag all the vlans on the router's physical port 4 (would be physical router port 1 if this were a R7800 I believe)
Code:

#Startup
#vlans
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 3 4 6"
swconfig dev switch0 vlan 10 set ports "4t 6t"
swconfig dev switch0 vlan 11 set ports "4t 6t"
swconfig dev switch0 vlan 12 set ports "4t 6t"
swconfig dev switch0 set apply

vconfig set_name_type VLAN_PLUS_VID_NO_PAD
vconfig add eth1 10
vconfig add eth1 11
vconfig add eth1 12
ifconfig vlan10 up
ifconfig vlan11 up
ifconfig vlan12 up


swconfig dev switch0 show
Code:

VLAN 1:
        vid: 1
        ports: 1 2 3 4 6
VLAN 2:
        vid: 2
        ports: 0 5
VLAN 10:
        vid: 10
        ports: 4t 6t
VLAN 11:
        vid: 11
        ports: 4t 6t
VLAN 12:
        vid: 12
        ports: 4t 6t



I assume this would work on either the EA8500 and/or the R7800 (with ports reversed).

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r53562

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port.

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12834
Location: Netherlands

PostPosted: Tue Aug 30, 2022 14:23    Post subject: Reply with quote
That is more or less how I have described it for the R7800 (for the R7800 you have to use Port 1 which is port 4 on the router) and I have tagged VLAN 1 on the trunk port as the other side of the trunk is an R7000 which does not support an untagged vlan when setup via the GUI (yes on those routers you can use the Switch config tab although with restrictions like not being able to have one untagged and one or more tagged vlans on the same port (I could use swconfig to do that))
_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
blkt
DD-WRT Guru


Joined: 20 Jan 2019
Posts: 5660

PostPosted: Tue Aug 30, 2022 14:30    Post subject: Reply with quote
@lexridge Remember vlan1 and vlan2 are no longer required or exist, eth1 already has 6 1 2 3 4.

Edit: never mind what I said above this just adds to the confusion, will send you a list of defaults.

TLDR you don't need this line it is already set -> swconfig dev switch0 vlan 1 set ports "1 2 3 4 6"


Last edited by blkt on Tue Aug 30, 2022 14:42; edited 1 time in total
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12834
Location: Netherlands

PostPosted: Tue Aug 30, 2022 14:38    Post subject: Reply with quote
blkt wrote:
@lexridge Remember vlan1 and vlan2 are no longer required or exist, eth1 already has 6 1 2 3 4.



To clarify swconfig still shows VLAN 1 and VLAN 2 but the WAN port is now ETH0 and that was VLAN2 if I am not mistaken

root@EA8500:~# swconfig dev switch0 show
VLAN 1:
vid: 1
ports: 1 2 3 4 6

VLAN 2:
vid: 2
ports: 0 5

root@EA8500:~# get_wanface
eth0

It does mean that if you were using VLAN2 as WAN port in e.g. firewall rules you are in for a treat.

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
lexridge
DD-WRT Guru


Joined: 07 Jun 2006
Posts: 960
Location: WV, USA

PostPosted: Tue Aug 30, 2022 14:42    Post subject: Reply with quote
@egc Yep, I used your guide as a comparison between new, and mrjcd's for the old.
@blkt Oh right. I have removed vlan1 from my startup. I knew vlan2 was a goner. Stupid question, since they no longer exist, why do they still show when doing a swconfig dev switch0 show?

_________________
Linksys EA8500 (Internet Gateway, AP/VAP) - DD-WRT r53562
Features in use: WDS-AP, Multiple VLANs, Samba, WireGuard, Entware: mqtt, mlocate

Netgear R7800 (WDS-AP, WAP, VAP) - DD-WRT r53562
Features in use: multiple VLANs over single trunk port

Linksys EA8500 WDS Station x2 - DD-WRT r53562

Netgear R6400v2 WAP, VAP 2.4ghz only w/VLANs over single trunk port.

OSes: Fedora 38, 9 RPis (2,3,4,5), 20 ESP8266s: Straight from Amiga to Linux in '94, never having owned a Windows PC.

Forum member #248
egc
DD-WRT Guru


Joined: 18 Mar 2014
Posts: 12834
Location: Netherlands

PostPosted: Tue Aug 30, 2022 14:46    Post subject: Reply with quote
Although now the EA8500 should be like the R7800 (save the reversed ports), I am following this with interest to see if it really is the case

So keep up the good work Smile

_________________
Routers:Netgear R7000, R6400v1, R6400v2, EA6900 (XvortexCFE), E2000, E1200v1, WRT54GS v1.
Install guide R6400v2, R6700v3,XR300:https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=316399
Install guide R7800/XR500: https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=320614
Forum Guide Lines (important read):https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=324087
Goto page Previous  1, 2, 3  Next Display posts from previous:    Page 2 of 3
Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum