[Solved] Netgear R6400v2 and VLANs [Not working]

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
lexridge
DD-WRT Guru


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

PostPosted: Tue Mar 19, 2024 3:05    Post subject: [Solved] Netgear R6400v2 and VLANs [Not working] Reply with quote
So after a few days messing with my ancient WRT54GLs, in an attempt to set up a 2.4ghz WAP/VAP for IoT and VLANs, I gave up because they kept erasing the settings on boot and I got terribly frustrated and threw them in the fscking trash can. So I found a NG6400v2 at a thrift shop for $15. Happy!

I flashed DD-WRT r53562 on it. I was pleased the see the GUI was pretty much identical to my R7800 (which is used only as a WAP/VAP) and used it for a guide to set this one up since they will be so far apart they should never see each others radios.

I then set up the WAPs/VAPs, then the bridges br1-br3) then the VLANs via the Switch Config page. VLAN10-12 and assigned them all to only switch port 4. Tagged them all on port 4 (while still including vlan1) and the CPU port 5 then added them to the bridges as well as the 2.4ghz wireless VAPs. Rebooted and the router is not accessible from port 4. The other ports work fine so I am not locked out.

I am guessing I may still need to use the Switched Ports Wiki ( https://wiki.dd-wrt.com/wiki/index.php/Switched_Ports ) because this should not be happening if the Switch Config tab is working correctly for this router, or am I wrong about that?

"swconfig dev switch0 show" shows the vlans correctly configured for the right ports.
Code:

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

But using the nvram show | grep port.*vlans | sort command, the vlans10-12 do not show up and I would think they should. They are also not assigned to et0. Do they need to be?
Code:

# nvram show | grep port.*vlans | sort
size: 33660 bytes (97412 left)
port0vlans=1 18000 19000 20000
port1vlans=1 18000 19000 20000
port2vlans=1 18000 19000 20000
port3vlans=1 18000 19000 20000
port4vlans=1 3 4 5 16000 18000 19000 20000
port5vlans=1 3 4 5 16000 17000 18000 19000 20000 21000

# nvram show | grep vlan.*hwname | sort
size: 33660 bytes (97412 left)
vlan1hwname=et0
vlan2hwname=et0



I am writing this asking if anyone else has ran into this issue on this particular router? I can post screen shots and additional shell outputs if needed, just don't have the time at the moment.

_________________
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.

Forum member #248


Last edited by lexridge on Wed Mar 20, 2024 2:47; edited 1 time in total
Sponsor
lexridge
DD-WRT Guru


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

PostPosted: Tue Mar 19, 2024 4:39    Post subject: Reply with quote
alright, just dicovered this... I can connect the router's VAPs and get an IP address from the main router on every VAP (all different subnets). I have verified by the IP addresses assigned to my phone when connecting. So the wireless VAPs w/vlans are working. I just cannot access the router from its own IP address via port 4, yet apparently the main router with multiple DHCP servers can see all the address except for the main IP address. WTH?

The following pic I am plugged into port 3 as port 4 is not accessible.



Selection_001.png
 Description:
 Filesize:  35.35 KB
 Viewed:  669 Time(s)

Selection_001.png



_________________
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.

Forum member #248
lexridge
DD-WRT Guru


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

PostPosted: Tue Mar 19, 2024 5:23    Post subject: Reply with quote
Bridge settings


Selection_001.png
 Description:
 Filesize:  14.22 KB
 Viewed:  662 Time(s)

Selection_001.png



_________________
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.

Forum member #248
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Tue Mar 19, 2024 7:43    Post subject: Reply with quote
And what am I supposed to do with the half-complete information?

Post full screenshots of the "networking" tab
Post the configuration of the gateway (a trunk configuration is not a one-way configuration but requires correct settings on both sides)

Quote:
I am guessing I may still need to use the Switched Ports Wiki


nobody cares about outdated stuff

Quote:
The following pic I am plugged into port 3 as port 4 is not accessible.


this raises some questions....
You plugged the trunk cable into port 3 and now you have access to VLAN1?

Then your trunk is configured incorrectly on the gateway and VLAN1 is not tagged.

Or do you have a PC/client connected to port 3?
Since port 4 is tagged, you can only connect devices that are capable of VLAN tagging to this port.

however post complete information

this can only be a vlan1 problem if everything else works Smile

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
lexridge
DD-WRT Guru


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

PostPosted: Tue Mar 19, 2024 16:13    Post subject: Reply with quote
Quote:
nobody cares about outdated stuff

Mostly true, except for very old routers such as the WRT54GLv1.1 (no swconfig command). I tried getting this to work on two of them, and actually DID make it work. But upon reboot, all NVRAM settings would reset to factory. Tried on two different WRT54GLs across several DD-WRT releases, going back to 2021.
Quote:

this raises some questions....
You plugged the trunk cable into port 3 and now you have access to VLAN1?

Then your trunk is configured incorrectly on the gateway and VLAN1 is not tagged.

Or do you have a PC/client connected to port 3?
Since port 4 is tagged, you can only connect devices that are capable of VLAN tagging to this port.

however post complete information

this can only be a vlan1 problem if everything else works

You confirmed exactly what I suspected, since vlans 10 11 12 were all working but the router was not accessible via the port4 on its own IP. I dug into it more closely this morning. My setup is rather complicated, but is temporary since the R6400v2 will be moved to a different location once configured.

Port 4 of the EA8500 Gateway (tagged vlans 1 10 11 12) comes to my external garage and connects to a managed switch, a TP-Link TL-SG108E. Switch ports 1 2 6 7 are all tagged to match the Gateway. Port 7 is plugged into port 10 of a Dell PowerConnect 2824 managed switch. My test environment is plugged into port 24 of the Dell switch to port 4 of R6400v2. So, this was the problem. The Dell switch does not allow vlan 1 to be tagged, but did allow vlans 10-12 to be tagged.

So bypassing the Dell switch and going directly into the TP-Link switch fixed the problem. So I now know I will not have this issue once I move this R6400v2 back into the house directly connected to the Gateway.

I guess if I want to continuing using this Dell switch, I am going to have to move DDWRT vlan1 to another vlan....EVERYWHERE (across 5 managed switches and 4 routers). It is odd this setup worked on the WRT54GLs (until rebooting). Old hardware perhaps not caring to check for tags perhaps. Who knows.

Thank you ho1Aetoo! All good now.

_________________
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.

Forum member #248
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3006
Location: Germany

PostPosted: Tue Mar 19, 2024 16:36    Post subject: Reply with quote
Then the switch is a bad choice.

All VLANs 1-4096 can be tagged or untagged.
Only VLAN0 is always untagged. (this is a special case for backward compatibility)

_________________
Quickstart guides:
use Pi-Hole as simple DNS-Server with DD-WRT
VLAN configuration via GUI - 1 CPU port
VLAN configuration via GUI - 2 CPU ports (R7800, EA8500 etc)

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 23.05.3 - Gateway
Qualcomm IPQ8065 - R7800 - DD-WRT - WAP
lexridge
DD-WRT Guru


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

PostPosted: Tue Mar 19, 2024 17:02    Post subject: Reply with quote
Perhaps so. I didn't buy it fortunately. It was given to me a few months back. I will dig into it a little more and see if there is a way to tag vlan1, but I have my doubts.
_________________
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.

Forum member #248
lexridge
DD-WRT Guru


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

PostPosted: Tue Mar 19, 2024 17:58    Post subject: Reply with quote
Well Dell really did screw that up. After a bit of searching, vlan1 is not allowed to be tagged. Only 2-4096 can be tagged. Whoever thought of this was a dumb***!
_________________
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.

Forum member #248
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC 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 can attach files in this forum
You can download files in this forum