I spend another couple of hours trying to solve the vlan setup problem ..... without sucsess 
I try to explain the problem using the attached picture (shown at the bottum)
![]()
In the picture the main bridge containing a couple of vlans connected to the outside world using mostly trunks.
The vlans are defined via the bridge menu vlans connecting the involved interfaces. That works for a managed switch without routing functionality.
However in this case I also want the CRS to behave as router, so I need to add vlan interfaces/gateways, which provide the connection to the router core and functionality like vlan subnet, dhcp-server, dns, internet access etc.
That is where the problem is. In pfSense you simply define an vlan interface and ready you are. But in router-OS I am lost.
- I defined a vlan under interfaces, which is I think an vlan-interface which you can use as vlan "gateway"
- I did assign a subnet to that gateway and a dhcp server, things I could not tie to vlans as defined in a bridge.
- And I can use those vlan-interfaces in the firewall so that looks ok as well
'However that the problem starts
I need to relate / connect ^the vlan-gateway^ to the manages swith vlans ....
and I simply do not manage .....
I tried that by including ^the vlan-gateway^ in the bridge. That is possible .... but it does not work ....
I tried to:
- ping the vlan-gateway from an vlan trunk NOP (using ping tool)
- tried to ping the PC form the vlan-gateway NOP (using ping tool)
- tried to pint the vlan-gateway from the PC NOP
- etc
So I am still completely lost
Note that I am using latest stable RouterOS 7 version
Below some small parts of the config
Louis
[admin@MikroTik] /interface> print
Flags: X - DISABLED, R - RUNNING; S - SLAVE
Columns: NAME, TYPE, ACTUAL-MTU, L2MTU, MAX-L2MTU, MAC-ADDRESS
NAME TYPE ACTUAL-MTU L2MTU MAX-L2MTU MAC-ADDRESS
skipped some lines
;;; GW_CRS_GUESTS
17 R GW_CRS_GUESTS vlan 1500 65531 DE:55:2B:43:9F:24
;;; GW_CRS_MNGT
18 R GW_CRS_MNGT vlan 1500 1588 CC:2D:E0:A3:91:64
;;; GW_CRS_PCLAN
19 R GW_CRS_PCLAN vlan 1500 1588 CC:2D:E0:A3:91:64
20 R IPTV bridge 1500 65535 62:C5:B1:38:3B:61
;;; Internet via VLAN 6
[admin@MikroTik] /ip/address> print
Columns: ADDRESS, NETWORK, INTERFACE
ADDRESS NETWORK INTERFACE
;;; LocalMngt
0 192.168.88.2/24 192.168.88.0 00 RJ45-CRS317-MNGT
1 192.168.201.1/24 192.168.201.0 GW_CRS_PCLAN
2 192.168.202.1/24 192.168.202.0 GW_CRS_GUESTS
[admin@MikroTik] /ip/address>
[admin@MikroTik] /ip/dhcp-server> print
Columns: NAME, INTERFACE, ADDRESS-POOL, LEASE-TIME, ADD-ARP
NAME INTERFACE ADDRESS-POOL LEASE-TIME ADD-ARP
;;; CRS_GUESTS
0 GUESTS GW_CRS_GUESTS GUESTS 30m yes
;;; CRS_PCLAN
1 CRS_PCLAN GW_CRS_PCLAN PCLAN 30m yes
20 R IPTV bridge 1500 65535 62:C5:
;;; Internet via VLAN 6
21 R KPN-INTERNET-WAN vlan 1508 1594 CC:2D:
;;; IPTV via VLAN 4
22 R KPN-IPTV-WAN vlan 1508 1594 CC:2D:
;;; defconf
23 R MAIN-bridge bridge 1500 1592 CC:2D:
24 R MNGT-bridge bridge 1500 1592 CC:2D
;;; Router bridge
25 R Router bridge 1500 65535 DE:55:
;;; pfSense
26 RS RouterConn bond 1500 1592 CC:2D:
27 WAN (PPPoE KPN) pppoe-out
28 R WAN-bridge bridge 1508 1598 CC:2D:
[admin@MikroTik] /ip/dhcp-server/network> print
Columns: ADDRESS, GATEWAY, DOMAIN
ADDRESS GATEWAY DOMAIN
;;; CRS-PCLAN
0 192.168.201.0/24 192.168.201.0 crs-pc.lan
;;; CRS-GUESTS
1 192.168.202.0/24 192.168.202.1 crs-guests.lan
[admin@MikroTik] /ip/route> print
Flags: D - DYNAMIC; A - ACTIVE; c - CONNECT, s - STATIC
Columns: DST-ADDRESS, GATEWAY, DISTANCE
DST-ADDRESS GATEWAY DISTANCE
0 As 0.0.0.0/0 192.168.88.3 1
DAc 192.168.88.0/24 MNGT-bridge 0
DAc 192.168.201.0/24 GW_CRS_PCLAN 0
DAc 192.168.202.0/24 GW_CRS_GUESTS 0
[admin@MikroTik] /interface/bridge> print
Flags: X - disabled, R - running
0 R name="IPTV" mtu=auto actual-mtu=1500 l2mtu=65535 arp=enabled arp-timeout=auto
mac-address=62:C5:B1:38:3B:61 protocol-mode=rstp fast-forward=yes igmp-snooping=no
auto-mac=yes ageing-time=5m priority=0x8000 max-message-age=20s forward-delay=15s
transmit-hold-count=6 vlan-filtering=no dhcp-snooping=no
1 R ;;; defconf
name="MAIN-bridge" mtu=auto actual-mtu=1500 l2mtu=1592 arp=enabled arp-timeout=auto
mac-address=CC:2D:E0:A3:91:64 protocol-mode=rstp fast-forward=yes igmp-snooping=no
auto-mac=no admin-mac=CC:2D:E0:A3:91:64 ageing-time=5m priority=0x8000 max-message-age=20s
forward-delay=15s transmit-hold-count=6 vlan-filtering=yes ether-type=0x8100 pvid=88
frame-types=admit-all ingress-filtering=yes dhcp-snooping=no
2 R name="MNGT-bridge" mtu=auto actual-mtu=1500 l2mtu=1592 arp=enabled arp-timeout=auto
mac-address=CC:2D:E0:A3:91:64 protocol-mode=rstp fast-forward=yes igmp-snooping=no
auto-mac=yes ageing-time=5m priority=0x8000 max-message-age=20s forward-delay=15s
transmit-hold-count=6 vlan-filtering=no dhcp-snooping=no
3 R ;;; Router bridge
name="Router" mtu=auto actual-mtu=1500 l2mtu=65535 arp=enabled arp-timeout=auto
mac-address=DE:55:2B:43:9F:24 protocol-mode=rstp fast-forward=yes igmp-snooping=no
auto-mac=yes ageing-time=5m priority=0x8000 max-message-age=20s forward-delay=15s
transmit-hold-count=6 vlan-filtering=yes ether-type=0x8100 pvid=1
frame-types=admit-only-vlan-tagged ingress-filtering=yes dhcp-snooping=no
4 R name="WAN-bridge" mtu=auto actual-mtu=1508 l2mtu=1598 arp=enabled arp-timeout=auto
mac-address=CC:2D:E0:A3:91:54 protocol-mode=rstp fast-forward=yes igmp-snooping=no
auto-mac=yes ageing-time=5m priority=0x8000 max-message-age=20s forward-delay=15s
transmit-hold-count=6 vlan-filtering=no dhcp-snooping=no
[admin@MikroTik] /interface/bridge>