hi
i asked this before and many others too.
How to create a separate lan with vlans?
I read all post and guides but i dont get this sorry.
This 2 CPU Ports confuses me.
Normally you just set cpu to be tagged on every vlan or?
Im using the wrt1200ac.
The default switch config looks like this i think:
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 1 2 3 6'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 5'
option vid '2'
So i tried to change my config to this but it didnt work:
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 '1 2 3 6t'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 5t'
option vid '2'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option ports '0 6t'
config interface 'lan'
option ifname 'eth0.1'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option ipaddr '192.168.0.254'
config interface 'wan'
option ifname 'eth0.2'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option proto 'static'
option ipaddr '192.168.178.2'
option gateway '192.168.178.1'
option dns '84.200.69.80 84.200.70.40'
option netmask '255.255.255.252'
What did i wrong? Has the lan interface to be a bridge? Where is stored which interfaces are bridged?
As soon as i set port 6 (cpu port of switch?) i loose all connectivity.
The wan side works fine with port 5 tagged (cpu) and wan interface switched to eth0.2
Thank you.
//Edit
I noticed in the web gui. There is only one column labeled CPU Port which is port 5.
But Port 5 should be wan cpu port.
So changed the config like this:
config interface 'lan'
option type 'bridge'
option ifname 'eth1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'wan'
option proto 'dhcp'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option ifname 'eth0.2'
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 '1 2 3 6'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 5t'
option vid '2'
config switch_vlan
option device 'switch0'
option vlan '3'
option vid '3'
option ports '0 5t'
config interface 'Isolated'
option proto 'static'
option ifname 'eth0.3'
option ipaddr '192.168.0.254'
option netmask '255.255.255.0'
And it seems to work. Can someone please tell me why this works.
I also tought when vlans are enabled eth1 bridge isnt suppose to work anymore? Shouldnt it be set to eth0.1 ?
thank you.
(Last edited by shm0 on 4 Jun 2016, 13:44)