The switch supports vlans (802.1Q and Port Based)
The router is setup using nat with ether1 connected to the wan and ether2 connected to the lan. The vlan is setup on the ether2 interface like this:
Code: Select all
[admin@CLYCLPRT83-1] /interface vlan> print detail
Flags: X - disabled, R - running, S - slave
0 R name="Visitor" mtu=1500 mac-address=00:0C:42:0E:03:4F arp=enabled vlan-id=2 interface=ether2
Code: Select all
[admin@CLYCLPRT83-1] > ip address pr
0 xx.xx.xx.xx/24 xx.xx.xx.0 xx.xx.xx.255 ether1
1 10.10.10.1/24 10.10.10.0 10.10.10.255 ether2
2 192.168.83.1/29 192.168.83.0 192.168.83.7 Visitor
- Added a second vlan with id 2
- On Switch Port 1 I set vlan 2 to tag egress ports
- On Switch Port 24 I set vlan 2 to untag egress ports
- Changed the PVID on switch port 24 to 2
- Removed switch port 24 from vlan 1
When I plug into switch port 24, I recieve a dhcp address from the router from the vlan2 subnet. Trouble is, I can ping across to the subnet on the ether2 interface.
I have added a firewall rule to prevent cross subnet talking, but I was under the impression that this was not something that needed to be done when setting up a vlan. Can anyone give me some insight into this as to what I may be missing. I have tried modifying some settings on the switch etc, with the same results so I am wondering if it is something the Mikrotik allows by design.
If you need further config details, just ask. Thanks for your time.