VLANs and internal DNS Server

Post new topic   Reply to topic    DD-WRT Forum Forum Index -> Broadcom SoC based Hardware
Goto page Previous  1, 2
Author Message
jebise101
DD-WRT Guru


Joined: 25 Sep 2009
Posts: 594

PostPosted: Sat Dec 30, 2017 4:20    Post subject: Reply with quote
well i give up getting ddwrt to work for both vlan1 and vlan3 on port 1. I either get no ip address or everything is on the proper vlan with working wifi including my guest wifi but none of my other wired devices can get online.

I guess i stick with a managed switch plus tagging the vlans on the webui in ddwrt, at least this works properly.

Now last thing i need to figure out is how make vlan1 invisible to vlan3.

Any pointers?
Sponsor
hubermania
DD-WRT User


Joined: 24 Aug 2012
Posts: 217

PostPosted: Mon Jan 01, 2018 1:19    Post subject: Reply with quote
Very Happy Welcome to the wonderful world of "vlan trunking"! You should ignore the web UI when setting up VLANs. That dang UI caused me nothing but problems. I had to factory reset Exclamation then define all the vlans with nvram settings. Do take note that there are no dots (.) in the nvram variable names, that's a search expression. A grep for "port.*vlan" will search for "port<anything>vlan".

For trunking, I found it necessary to tag both the wired ports and the cpu port in dd-wrt. Like you, I had a mix of tagged and untagged vlans on a single port. Here's how you would setup port 1 as a trunk for vlan1 (untagged/default) and vlan3 (tagged):

nvram set vlan1ports="1 2 3 4 8t*"
nvram set vlan2ports="0 8t"
nvram set vlan3ports="1t 8t"
nvram set vlan3hwname=et0
nvram set port5vlans="1 2 3 16"
nvram set trunking=1
nvram commit
reboot

16=tagged, t=tagged, *=default
Now create a new bridge and add vlan3 in Setup->Networking, and update your dnsmasq configuration to give it address ranges, just like br0 does for vlan1. Once all that's done, it's just a firewalling problem.

_________________
[Broadcom] Asus rt-ac66u r34311 ('66 should only be factory reset through the DD UI)
Fix RT-AC66U "wl1 [2.4 GHz TurboQAM]". DD-WRT failsafe UI @ http|https://169.254.255.1/
rizla7
DD-WRT User


Joined: 11 May 2012
Posts: 293

PostPosted: Mon Jan 01, 2018 11:18    Post subject: Reply with quote
More info on trunking is located here: https://www.dd-wrt.com/wiki/index.php/Switched_Ports

Although you need an understanding/primer of 802.11q trunks and VLAN encapsulation to fully implement it.
hubermania
DD-WRT User


Joined: 24 Aug 2012
Posts: 217

PostPosted: Mon Jan 01, 2018 19:28    Post subject: Reply with quote
That Switched_Ports Wiki is indeed a great primer on VLANs. The last section on VLAN trunking describes exactly what OP is attempting to do:
Quote:
create a default VLAN (untagged VLAN on a trunk port) which is not possible at all in the GUI even if the GUI works for your model
Unfortunately it doesn't mention tagging the CPU port, though doing so might be a Broadcom quirk. The wiki didn't quite teach me to fish, but it taught me to cast like the wind! Very Happy

The final piece of the puzzle was an unanswered 5-year-old thread WRT610nv2 DDwrt VLAN. It talks about the /proc/switch/eth0/vlan/*/ports files produced by the broken UI. Looking at them it seems the CPU port gets tagged on all the vlans when trunking. This led me to muck around with the trunking and vlanXports settings to arrive at the working combination I posted above.

_________________
[Broadcom] Asus rt-ac66u r34311 ('66 should only be factory reset through the DD UI)
Fix RT-AC66U "wl1 [2.4 GHz TurboQAM]". DD-WRT failsafe UI @ http|https://169.254.255.1/
Goto page Previous  1, 2 Display posts from previous:    Page 2 of 2
Post new topic   Reply to topic    DD-WRT Forum 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