[SOLVED] Trouble configuring vlan trunk for ROAS - r6400v2

Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking
Author Message
mad_mike
DD-WRT Novice


Joined: 27 Jun 2025
Posts: 5

PostPosted: Mon Jul 07, 2025 11:05    Post subject: [SOLVED] Trouble configuring vlan trunk for ROAS - r6400v2 Reply with quote
Hello everyone! I would like to ask for help. I'm having some troubles with my config for a VLAN trunk from my router to a managed switch.

Build: r61848 (latest)
Router: Netgear r6400v2
What I am trying to do:

[img]removed[/img]

swconfig dev switch0 show:

Quote:

VLAN 1:
ports: 1 2 3 4 5t
VLAN 2:
ports: 0 5
VLAN 4:
ports: 4t 5t
VLAN 5:
ports: 4t 5t
VLAN 6:
ports: 4t 5t



I've tried my vlan configs in the GUI but:
1) It doesn't seem to work. My choices in the menu are neither reflected by 'swconfig dev switch0 show,' nor do they appear as toggleable options in the networking menu of the GUI. (I admit maybe I was just being impatient and needed to wait for a few reboots?)
2) Unless I'm mistaken, it seems like it’s giving me the choice between either adding VLAN 1 as a tagged member of port 4 or excluding VLAN 1 from the port entirely? But what about adding VLAN1 as an native vlan? Or is it just assumed that VLAN1 will always be untagged, perhaps?




So far, only my default VLAN (VLAN 1) has been working. My other VLAN clients cannot ping their respective bridges. I believe my switch is configured properly because I can get clients from the same isolated VLAN talking to each other over the switch—just nothing to the router. Zero RX traffic on br4,br5 and br6.

I have the following for my start-up commands. Please let me know if I have any obvious mistakes.

Quote:

swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "1 2 3 4 5t"
swconfig dev switch0 vlan 4 set ports "4t 5t"
swconfig dev switch0 vlan 5 set ports "4t 5t"
swconfig dev switch0 vlan 6 set ports "4t 5t"
swconfig dev switch0 apply

vconfig add eth0 4
vconfig add eth0 5
vconfig add eth0 6

ifconfig vlan4 up
ifconfig vlan5 up
ifconfig vlan6 up

brctl addbr br4
brctl addif br4 vlan4
brctl addbr br5
brctl addif br5 vlan5
brctl addbr br6
brctl addif br6 vlan6

ifconfig br4 up
ifconfig br5 up
ifconfig br6 up

ifconfig br4 192.168.4.1 netmask 255.255.255.0 up
ifconfig br5 192.168.5.1 netmask 255.255.255.0 up
ifconfig br6 192.168.6.1 netmask 255.255.255.0 up


And more DHCP server configurations in the dnsmasq infrastructure section:

Quote:

interface=br4
dhcp-range=br4,192.168.4.100,192.168.4.104,255.255.255.0,24h
dhcp-option=br4,3,192.168.4.1

interface=br5
dhcp-range=br5,192.168.5.100,192.168.5.104,255.255.255.0,24h
dhcp-option=br5,3,192.168.5.1

interface=br6
dhcp-range=br6,192.168.6.100,192.168.6.110,255.255.255.0,24h
dhcp-option=br6,3,192.168.6.1


Subsequent to these startup commands, I do get this in the GUI:



But still, no Rx traffic on any bridges besides br0. I can't ping them. I've tried using the GUI to set the addresses of the bridges, but they just reset back to 0.0.0.0/0.

If anyone read all of this, thank you so much!

(EDIT): One last thing I wanted to mention was how with this cli config it appears that all the new bridges have the same MAC address. Is that by design? I don't have a deep understanding of this stuff but for instance on my linux machine the default behavior is that new bridges get their own unique local mac addresses, which makes me wonder.


Last edited by mad_mike on Mon Dec 29, 2025 11:31; edited 6 times in total
Sponsor
Per Yngve Berg
DD-WRT Guru


Joined: 13 Aug 2013
Posts: 7122
Location: Romerike, Norway

PostPosted: Mon Jul 07, 2025 12:26    Post subject: Reply with quote
Tag all vlans on the trunk port and use the GUI
mad_mike
DD-WRT Novice


Joined: 27 Jun 2025
Posts: 5

PostPosted: Mon Jul 07, 2025 14:04    Post subject: Reply with quote
Per Yngve Berg wrote:
Tag all vlans on the trunk port and use the GUI


Is there anyway to leave vlan as native?
ho1Aetoo
DD-WRT Guru


Joined: 19 Feb 2019
Posts: 3776
Location: Germany

PostPosted: Mon Jul 07, 2025 16:10    Post subject: Reply with quote
No, there is no GUI option for this.
You only need this if you are using strange switch hardware that does not allow you to tag VLAN1 or if you have no idea how to configure VLANs.
(by the way, pretty much every €20 switch allows this)

Alternatively, you can of course also use any other VLAN than 1, then it will also work with strange hardware.

According to the specification, all VLANs 1-4094 can be tagged or untagged...

_________________
Quickstart guides:

use Pi-Hole as simple DNS-Server with DD-WRT

Routers
Marvell OCTEON TX2 - QHora-322 - OpenWrt 24.10.4 - Gateway
Qualcomm IPQ8065 - R7800 - dd-wrt r53562 - WAP
mad_mike
DD-WRT Novice


Joined: 27 Jun 2025
Posts: 5

PostPosted: Thu Jul 10, 2025 3:14    Post subject: Reply with quote
Yes it is working now. My switch is from Cisco's SG lineup. I was able to configure the trunk link in 'general 802.1Q' mode, which as ho1Aetoo pointed out does not necessarily require an untagged VLAN.
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Advanced Networking 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