OpenWrt Forum Archive

Topic: Archer C7 Vlans

The content of this topic has been archived on 26 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Trying to configure two vlans on archer c7 v2.  One vlan is called Guest and the other Home. Guest is basically the guest wifi, where as Home is the home wifi and lan ports on the device. I have configured the device so as the WAN port is a LAN port, hence giving me 5 LAN ports total. The Guest Vlan has an id of 100. I left the default vlan 1 for my home vlan. Not sure if this works or not.

When it comes to setting up the tagged, untagged ports I am a bit unsure of what needs to happen. There doesnt appear to be much documentation and whereas everything is device specific it is confusing. 

The following link shows the switch ports:  http://wiki.openwrt.org/toh/tp-link/tl-wdr7500

I dont quite understand what needs to be tagged and what doesn't  I have a trunk set up between a managed switch on port 1, which I converted from WAN to LAN.  Do I tag that port? Do I tag the CPU?

TIA

maverik1981 wrote:

Trying to configure two vlans on archer c7 v2.  One vlan is called Guest and the other Home. Guest is basically the guest wifi, where as Home is the home wifi and lan ports on the device. I have configured the device so as the WAN port is a LAN port, hence giving me 5 LAN ports total. The Guest Vlan has an id of 100. I left the default vlan 1 for my home vlan. Not sure if this works or not.

When it comes to setting up the tagged, untagged ports I am a bit unsure of what needs to happen. There doesnt appear to be much documentation and whereas everything is device specific it is confusing. 

The following link shows the switch ports:  http://wiki.openwrt.org/toh/tp-link/tl-wdr7500

I dont quite understand what needs to be tagged and what doesn't  I have a trunk set up between a managed switch on port 1, which I converted from WAN to LAN.  Do I tag that port? Do I tag the CPU?

TIA

This is my current configuration:

root@(none):/# vi /etc/config/network

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'fdba:a938:35cb::/48'

config interface 'lan'
        option proto 'dhcp'
        option type 'bridge'
        option ifname 'eth1'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option vid '1'
        option ports '0 1t 2 3 4 5 6t'

config interface 'Guest'
        option type 'bridge'
        option proto 'dhcp'
        option ifname 'eth1.100'

As soon as I add the following I lock myself out of openwrt.


config switch_vlan
        option device 'switch0'
        option vlan '2'
        option vid '100'
        option ports '1 6t'

From my understanding, port 6 is CPU for eth1. Since I converted WAN port (1) to LAN I do not have eth0.  Port 1 is the trunk port to a switch. Should this be tagged for both vlans? Seems I have problems when I try enabling the 2nd vlan.

if you use one port inside a vlan dont use it inside another vlan unless you tag it
im not sure how to configure for both router vlans to use the outside switch though, unless natting

so im suggesting 3 configs; you test them(be sure you have failsafe or ttl adapter)
all vlans are for lan zone of firewall
*ports not shown are off

vlan1 0t 3 4 5 
vlan2 0t 1t 2

or 
vlan1 0t 1t 3 4 5 
vlan2 0t 1t 2

or
vlan1 0t 3 4 5 
vlan2 0t 2
vlan3     1t 6

(Last edited by makarel on 4 Sep 2015, 16:44)

makarel wrote:

if you use one port inside a vlan dont use it inside another vlan unless you tag it
im not sure how to configure for both router vlans to use the outside switch though, unless natting

so im suggesting 3 configs; you test them(be sure you have failsafe or ttl adapter)
all vlans are for lan zone of firewall
*ports not shown are off

vlan1 0t 3 4 5 
vlan2 0t 1t 2

or 
vlan1 0t 1t 3 4 5 
vlan2 0t 1t 2

or
vlan1 0t 3 4 5 
vlan2 0t 2
vlan3     1t 6

In your examples here, the middle one is the only one where both vlans are tagged on the trunk port. If I do not tag trunk port for vlan how will that information go to the switch and my dhcp server?

whell .. i cant test

The discussion might have continued from here.