Establish communication through a VLAN between Mikrotik router and switch

Hello,

Have an issue establishing connection between 2 Mikrotik devices, the configurtion is the following:

Mikrotik Router (CCR1072) one one hand, with an IP address on VLAN 999 (10.0.0.1/30 assigned to VLAN) on the other hand, a switch (CRS305) with and IP address on VLAN 999 also (10.0.0.2/30). The switch is working in bridge mode, with VLAN tagging defined in “Bridge” submenu. Cannot manage to communicate one device with another via IP. On the router side I see the mac address of the VLAN 999 on the switch but not vice versa.

On CRS305, I have tried configuring the PVID on the bridge port and the IP address directly on the bridge, untagging VLAN 999 on the physical port with no result. Also have tried defining VLAN 999 on the port (from Interfaces submenu) and assigning the IP address to the VLAN interface, with no result.

Have 2 questions:

  1. Which could be the solution?
  2. Which is the correct way of configuring the switch side in order to tag all the outcoming traffic from that interface (sfp+1) with VLAN 999 label in order to establish communication with the CCR1072 router?

Thank you in advance

Andrey.

https://forum.mikrotik.com/viewtopic.php?t=182276

You had it right with the VLANS initially but you need to understand the /30 establishes a network between the devices BUT ONLY for those IPs.
The switch will only know about 10.0.0.0/30 not any other network because its a switch and has no default route.

If for example you are on a different IP range lets say 10.0.1.0/24 and connected to the router, the router knows how to get packets from 10.0.1.0/24 to the switch (10.0.0.2) but the switch has no idea what to do with 10.0.1.0/24 packets.

Generally the switch will need a static route of any other network that wants to access it back to the router on 10.0.0.1 or even send everything (0.0.0.0/0 next-hop 10.0.0.1) back to the router to start with until the penny drops.

If that is all too hard for you because you fail at understanding use a /24 instead of a /30 and put the device you want to access the switch with in the same network range =====> router 10.0.0.1 … switch 10.0.0.2 and PC to play with switch 10.0.0.3 :slight_smile: