VLAN trunk: does swconfig "vid" correspond to tag

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


Joined: 31 May 2020
Posts: 32

PostPosted: Wed Jul 22, 2020 20:12    Post subject: VLAN trunk: does swconfig "vid" correspond to tag Reply with quote
I have two routers connected via a tagged VLAN trunk with 3 subnets. I am able to access all three subnets (via configured ports/APs), using a single trunk.
I am using tag numbers on both routers: 101, 105, 106 for briges br0, br1, & br2.

QUESTION: Should I be tagging vlan1, vlan5 & vlan6, or br0, br1, br2 (which correspond to the vlans)?

QUESTION: Does the "vid" number (SWCONFIG cli) correspond to the "tag number" in the GUI? I attmepted to set it the same as the tag number, but the result apears to be vid: 1, 5, & 6 (see commands/results, below).


I've gotten devices roaming between routers (staying within the same subnet), but I keep losing access to the router, even from a PC plugged in and served directly by it. i'm diagnosing further, but i wanted to make sure that the vid/tags are configured correctly.

QUESTION: Should the inner router (before being configured for the trunk) function the same when plugged into a LAN port vs TRUNK port on the gateway router?

I expect:
1) my router must be plugged into gateway port 1/2/3 before i apply the trunk configutation to the router
2) then, must be moved to the trunk port (port 4) *as the inner router reboots, after applying the trunking*.

is this correct? or, can the router be a wired, wan-disabled client of the gateway, when plugged into the trunked port 4?

Thank you!

Details:

Gateway: ASUS RTA-66U (build 43334)
- 3 vlans, 2 APs, 2 VAPs, 3 bridges, 3 dhcp servers, firewalled and working as desired.

vlan settings via NVRAM:
Code:

                nvram set vlan5hwname=et0
                nvram set vlan6hwname=et0

                nvram set vlan1ports="1 4t 8*" 
                nvram set vlan2ports= "0 8"   
                nvram set vlan5ports="2 4t 8"
                nvram set vlan6ports="3 4t 8" 
       
                nvram set port1vlans="1"
                nvram set port2vlans="5"
                nvram set port3vlans="6"
                nvram set port4vlans="1 5 6 16"
                nvram set port5vlans="1 2 5 6 16"
                nvram commit
                reboot


result:
Code:

                vlan1ports=1 4t 8*
                vlan2ports=
                vlan5ports=2 4t 8
                vlan6ports=3 4t 8
                vlan1hwname=et0
                vlan2hwname=et0
                vlan5hwname=et0
                vlan6hwname=et0
                port0vlans=2
                port1vlans=1
                port2vlans=5
                port3vlans=6
                port4vlans=1 5 6 16
                port5vlans=1 2 5 6 16



Router: TP-LINK ARCHER A7 v5 (build 43334)
- also with 3 vlans, 2 APs, 2 VAPs, 3 bridges, WAN/DHCP disabled, router mode

vlan settings via SWCONFIG commands in startup:
Code:

                swconfig dev eth0 vlan 1 set ports "0t 1t 2"
                swconfig dev eth0 vlan 1 set vid 101
                swconfig dev eth0 vlan 5 set ports "0t 1t 3 4"
                swconfig dev eth0 vlan 5 set vid 105
                swconfig dev eth0 vlan 6 set ports "0t 1t 5"
                swconfig dev eth0 vlan 6 set vid 106
                swconfig dev eth0 set enable_vlan 5
                swconfig dev eth0 set enable_vlan 6
                swconfig dev eth0 set apply
                vconfig add eth0 5
                vconfig add eth0 6

result:
Code:

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

Sponsor
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum 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