[SOLVED] R9000 VLAN Setup

Post new topic   Reply to topic    DD-WRT Forum Index -> Atheros WiSOC based Hardware
Author Message
edgerouter4
DD-WRT Novice


Joined: 30 Aug 2022
Posts: 5

PostPosted: Thu Sep 01, 2022 14:30    Post subject: [SOLVED] R9000 VLAN Setup Reply with quote
When I create VLAN interfaces in the switch tab as soon a click apply settings my router freezes and never come back I have to reset it. Same happens when I execute swconfig dev switch0/1 set enable_vlan 1. When I set apply it freezes and have to reset factory defaults as well.

Using latest DDWRT release from 8/31/22 :

Firmware: DD-WRT v3.0-r50012 std (08/31/22)
Time: 10:30:22 up 11:49, load average: 0.09, 0.03, 0.00
WAN: Disabled
Sponsor
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Thu Sep 01, 2022 15:40    Post subject: Reply with quote
You are cutting off the branch you are sitting on. After enabling VLAN, complete the configuration with ports and vlan before applying.
edgerouter4
DD-WRT Novice


Joined: 30 Aug 2022
Posts: 5

PostPosted: Thu Sep 01, 2022 19:44    Post subject: Reply with quote
I've followed the steps which says :Create VLAns in the Switch config tab first: When I do it and apply for then use swconfig the router freezes up Crying or Very sad

I can't see the VLANS interfaces when I try swconfig unless they are created first.
Per Yngve Berg
DD-WRT Guru


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

PostPosted: Thu Sep 01, 2022 21:10    Post subject: Reply with quote
https://forum.dd-wrt.com/phpBB2/viewtopic.php?t=322349&highlight=r9000+vlan
edgerouter4
DD-WRT Novice


Joined: 30 Aug 2022
Posts: 5

PostPosted: Fri Sep 02, 2022 0:51    Post subject: Reply with quote
I was using VLANs tab in the GUI, which is a NOT!, I just put all this configuration in the startup script portion and it worked!, mostly rebooting on every change, not using applying settings at all.

This is my configuration, I did change it to have Physical port 1, VLAN20 tagged and Untag traffic, bridging Wifi 2.4Ghz with VLAN20 and 5Ghz Traffic untag, which is tagged by my switch with VLAN10.

Thanks again

sleep 4
# Setup VLANS
# Switch0 Config
swconfig dev switch0 set enable_vlan 1
swconfig dev switch0 vlan 1 set ports "0t 1 2 4t 6t"
swconfig dev switch0 vlan 2 set ports "3 5t"
swconfig dev switch0 vlan 20 set ports "0t 2t 4t 6t"

swconfig dev switch0 set apply
# Switch1 Config
swconfig dev switch1 set enable_vlan 1
swconfig dev switch1 vlan 1 set ports "0t 2 3 4 5t"
swconfig dev switch1 vlan 20 set ports "0t 5t"

swconfig dev switch1 set apply
# Adding vlan links
vconfig add eth1 20

# Give vlans a kick into life
ifconfig vlan20 up

# Bridging vlans for connection in the recalcitrant R9000
brctl addif br20 vlan20

# Adding 2.4Ghz to VLAN 20
brctl delif br0 wlan1
brctl addif br20 wlan1

Quote:
I used DWCruiser's guide
[/b]
Display posts from previous:    Page 1 of 1
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