Hi everyone,
I’ve followed the article about the VLAN-switch chip on the wiki to create a VLAN that can take advantage of the full wire speed the switch chip offers.
My VLAN is in essence working however, I cannot ping a single interface on the router.
Please take a look at following:
/interface ethernet switch rule>
Flags: X - disabled, I - invalid
0 switch=switch1 ports=ether3-local vlan-header=not-present copy-to-cpu=no
redirect-to-cpu=no mirror=no new-dst-ports=ether2-local
1 switch=switch1 ports=ether2-local vlan-header=not-present copy-to-cpu=no
redirect-to-cpu=no mirror=no new-dst-ports=ether3-local
/interface ethernet switch vlan>
# SWITCH VLAN-ID PORTS
0 switch1 0 ether2-local
ether3-local
cpu
The above rules allow a device attached to ether2-local to ping a device attached to ether3-local. Ether3-local also is also assigned an IP:
/ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK BROADCAST INTERFACE
0 192.168.0.249/24 192.168.0.0 192.168.0.255 ether3-local
However, nor ether2-local, nor ether3-local can ping 192.168.0.249
1 way to solve this is to change “copy to cpu=no” to “copy to cpu=yes” in the above switch rules. However, that means that every frame from ether2-local to ether3-local and vice versa is copied to the cpu. That doesn’t sound smart or even preferable.
So I’ve tried to come up with rules to solve this but I’ve been unable to get it right.
So below rules do not work:
2 switch=switch1 ports=ether3-local vlan-header=not-present copy-to-cpu=yes
redirect-to-cpu=no mirror=no new-dst-ports=cpu
3 switch=switch1 ports=cpu vlan-header=not-present copy-to-cpu=yes
redirect-to-cpu=no mirror=no new-dst-ports=ether3-local
Can someone explain me what I should do to get it right?
many thanks,
Jeroen