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.