I have recently purchased a RB2011UiAS router and 260GS router. I’ve got most of this up and running, but struggling with getting a trunk working between ether3 on the switch and ether5 on the router.
Here is the layout I’ve got:
cable modem ↔ SwOS ↔ RouterOS
I only need a single VLAN for the various devices to connect via ethernet and WLAN, which I’ve get setup with a bridge on the router. I also have 2 devices physically located next to the switch that need to be on the same VLAN. As such, I’ve setup a trunk between the switch and router. The other VLAN trunked between router and switch will be used for the router to bridge the cable modem, and thus have a public IP assigned directly to VLAN2 on the router. I will then use the IP assigned to VLAN 3 on the router as a default gateway, PAT’ing to the public IP.
With a device on an untagged port vlan 3 on the switch, I can ping another device on the router untagged vlan 3, with the trunk handling this traffic between the router/switch. When I add an IP to vlan 3 on the router, I can ping this IP from the device connected to the router, but I can’t ping it from the device conneted to the switch. This IP will be the default gateway for all devices on VLAN 3, so needs to be reachable by devices on the switch.
I’ve tried a bridge per VLAN, I’ve tried using the Atheros switch within the router to set VLAN’s, and I’ve tried using master ports on each Atheros switch within the router including a cross connect from ether1 to ether7, but these all fail. I’ve also tried Atheros rules, but the chipset doesn’t support changing the VLAN tag, nor matching on the VLAN tag.
If I was configuring this on Cisco gear, this is how I’d do it.
—Switch—
interface ethernet0/2
switchport mode access
switchport access vlan 2
interface ethernet0/3
description trunk to RouterOS
switchport mode trunk
switchport trunk allowed vlan 2,3
interface ethernet 0/4
switchport mode access
switchport access vlan 3
—Router—
interface ethernet0/2
switchport mode access
switchport access vlan 3
interface ethernet0/3
switchport mode access
switchport access vlan 3
interface ethernet0/5
description trunk to SwitchOS
switchport mode trunk
switchport trunk allowed vlan 2,3
vlan 3
ip address 172.24.0.1/24
From what I’ve read, what I’m asking is not possible with RouterOS, ie traffic received via a tagged port cannot be processed by the router. I’m struggling to believe this is the case though, and am willing to try just about any crazy scenaior you can come up with. I don’t care about switching at line speed nor loading up the single 1Gb/s trunk link - the 2 devices connected directly to the switch on VLAN 3 all have 100Mb/s interfaces, and the cablem modem is only up to 30Mb/s.
Any suggestions? Anything you need me to clarify?