Hello,
Despite my network knowledge and experiences with e.g. pfSense and a lots of effort (!), I do not manage to route traffic between two local VLAN’s on my new CRS317
![]()
The situation
I bought the CRS317 as “10G-core” next to my actual network. For this moment the intended situation is:
- pfSense as “border router” and gateway to ISP
- gs1920 (actual main switch) as 1G-network
- CRS317 as “internal router”, behind pfSense and as 10G-core
Local on the CRS317 there are three VLAN’s which should communicate between themselves:
- Greenzone 10G / NAS
- PC-LAN 10G / workstation
- Route99 the data-route between 1G-network and the 10G-CRS317
(Default DATA-gateway) -
Connections to other VLAN's not relevant here.
The problem
I can not even ping between the VLAN’s. It, seems (!!??) so easy, however not working ![]()
- Between “Greenzone 10G” and “PC-LAN 10G” vlans
- Not between the gateways, and not form the NAS towards the “PC-LAN 10G-gateway”
Of course comparable problem towards Route99, but that is essentially the same.
Note that I did create a few FW-rules, not to block the traffic, but to see the counters and to create logs.
- When I ping between the NAS and its gateway, I see that the input and output chain are triggerd.
- When I ping towards the NAS I see that the forward chain is triggerd once (towards the NAS)
- At this moment the FW-rules are intended to pass every thing !
I sincerely hope that someone understands why it is not working, and is willing to help !!
Thanks in advance,
Louis
Below, detailed information.
Within GUI-screen interfaces – all vlans and interfaces have status “R” or “RS”
[admin@MikroTik] > ip address print
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 192.168.218.1/24 192.168.218.0 GreenZone 10G
1 192.168.216.1/24 192.168.216.0 PC-LAN 10G
2 192.168.10.12/24 192.168.10.0 MNGT-LAN
3 192.168.88.1/24 192.168.88.0 VLAN88
4 D 192.168.10.139/24 192.168.10.0 MNGT-LAN
[admin@MikroTik] > ip route print
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 S 0.0.0.0/0 192.168.1.1 MNGT-LAN 1
1 ADS 0.0.0.0/0 192.168.10.1 1
2 ADC 192.168.10.0/24 192.168.10.12 MNGT-LAN 0
3 ADC 192.168.88.0/24 192.168.88.1 VLAN88 0
4 ADC 192.168.216.0/24 192.168.216.1 PC-LAN 10G 0
5 ADC 192.168.218.0/24 192.168.218.1 GreenZone 10G 0
# aug/26/2019 19:43:22 by RouterOS 6.45.3
# software id = UT7L-U4J9
#
# model = CRS317-1G-16S+
# serial number = xyz
/interface bridge
add admin-mac=xyz auto-mac=no comment=defconf name=\
VirtualSwitch1 vlan-filtering=yes
/interface ethernet
set [ find default-name=sfp-sfpplus2 ] advertise=100M-full,1000M-full name=\
"02 GateWay"
set [ find default-name=sfp-sfpplus12 ] advertise=1000M-full,10000M-full \
name="12 NAS_DATA"
set [ find default-name=sfp-sfpplus16 ] advertise=\
100M-full,1000M-full,2500M-full,5000M-full,10000M-full name=\
"16 PC-werkkamer"
set [ find default-name=ether1 ] advertise=100M-full,1000M-full name=\
"17 LOC-MNGT"
/interface vlan
add interface=VirtualSwitch1 name=DEFAULT-LAN vlan-id=1
add interface=VirtualSwitch1 name="GreenZone 10G" vlan-id=218
add interface="05 GS1920" name=MNGT-LAN vlan-id=10
add interface=VirtualSwitch1 name="PC-LAN 10G" vlan-id=216
add interface="02 GateWay" name=Route99 vlan-id=99
add interface=VirtualSwitch1 name=VLAN88 vlan-id=88
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=PCLAN_POOL ranges=192.168.216.128-192.168.216.253
add name=GZ_POOL ranges=192.168.218.128-192.168.218.253
/ip dhcp-server
add address-pool=PCLAN_POOL disabled=no interface="PC-LAN 10G" name=\
PCLAN_DHCP
add address-pool=GZ_POOL disabled=no interface="GreenZone 10G" name=GZ_DHCP
/routing bgp instance
set default as=65456 out-filter=connected-in router-id=192.168.10.201 \
routing-table=MNGT
/interface bridge port
add bridge=VirtualSwitch1 comment=defconf ingress-filtering=yes interface=\
"17 LOC-MNGT" pvid=88
add bridge=VirtualSwitch1 comment=defconf edge=no frame-types=\
admit-only-vlan-tagged ingress-filtering=yes interface="02 GateWay" pvid=\
1002
add bridge=VirtualSwitch1 comment=defconf edge=no frame-types=\
admit-only-vlan-tagged ingress-filtering=yes interface="12 NAS_DATA" \
pvid=1012
add bridge=VirtualSwitch1 comment=defconf edge=yes frame-types=\
admit-only-untagged-and-priority-tagged ingress-filtering=yes interface=\
"16 PC-werkkamer" pvid=216
/ip neighbor discovery-settings
set discover-interface-list=all
/interface bridge vlan
add bridge=VirtualSwitch1 comment=MNGT-LAN tagged=\
"05 GS1920,VirtualSwitch1,11 NAS_EM0" vlan-ids=10
add bridge=VirtualSwitch1 comment="PC-LAN 10G" tagged=\
"PC-LAN 10G,VirtualSwitch1" untagged="16 PC-werkkamer" vlan-ids=216
add bridge=VirtualSwitch1 comment="GreenZone 10G" tagged=\
"12 NAS_DATA,VirtualSwitch1" vlan-ids=218
add bridge=VirtualSwitch1 comment="DEFAULT LAN" tagged="VirtualSwitch1,05 GS19\
20,07 SW-woonkamer,08 SW-logeerkamer,09 SW-SLK-L&N\",10 SW-werkkamer" \
vlan-ids=1
add bridge=VirtualSwitch1 comment="Route99 CRS317 <> GS1920 DataGW" tagged=\
"02 GateWay" vlan-ids=99
add bridge=VirtualSwitch1 comment="VLAN88 Local MNGT" tagged=VirtualSwitch1 \
untagged="17 LOC-MNGT" vlan-ids=88
/interface list member
add interface="17 LOC-MNGT" list=LAN
add interface="02 GateWay" list=WAN
add interface="05 GS1920" list=LAN
add interface="12 NAS_DATA" list=LAN
add interface="13 Server" list=LAN
add interface="14 KVM-Link" list=LAN
add interface="15 S-Elise_LA" list=LAN
add interface="16 PC-werkkamer" list=LAN
/ip address
add address=192.168.218.1/24 interface="GreenZone 10G" network=192.168.218.0
add address=192.168.216.1/24 interface="PC-LAN 10G" network=192.168.216.0
add address=192.168.10.12/24 interface=MNGT-LAN network=192.168.10.0
add address=192.168.88.1/24 interface=VLAN88 network=192.168.88.0
/ip dhcp-client
add dhcp-options=hostname,clientid disabled=no interface=MNGT-LAN
/ip dhcp-server network
add address=192.168.216.0/24 dns-server=192.168.216.1 gateway=192.168.216.1
add address=192.168.218.0/24 dns-server=192.168.218.1 gateway=192.168.218.1
/ip firewall filter
add action=drop chain=forward comment=\
"Block standarised IP-ranges which should not be there" dst-address-list=\
bogons in-interface-list=WAN
add action=accept chain=input routing-mark=MNGT
add action=accept chain=output routing-mark=MNGT
add action=accept chain=forward routing-mark=MNGT
add action=accept chain=forward dst-address=192.168.218.18 log=yes \
log-prefix=16to18 src-address=192.168.88.16
add action=accept chain=input log=yes log-prefix=in-src18 src-address=\
192.168.218.18
add action=accept chain=input dst-address=192.168.218.18 log=yes log-prefix=\
in-dst18
add action=accept chain=output log=yes log-prefix=out-src18 src-address=\
192.168.218.18
add action=accept chain=output dst-address=192.168.218.18 log=yes log-prefix=\
out-dst18
add action=accept chain=input
add action=accept chain=output
add action=accept chain=forward connection-state="" log=yes log-prefix=FORW
add action=drop chain=input log=yes
add action=drop chain=output log=yes
add action=drop chain=forward log=yes
/ip firewall mangle
add action=mark-packet chain=prerouting in-interface=MNGT-LAN \
new-packet-mark=MNGT-TR passthrough=yes
add action=mark-routing chain=prerouting new-routing-mark=MNGT packet-mark=\
MNGT-TR passthrough=yes
add action=mark-routing chain=output new-routing-mark=MNGT passthrough=yes \
src-address=192.168.10.0/24
/ip route
add distance=1 gateway=MNGT-LAN pref-src=192.168.1.1 routing-mark=MNGT
/ip service
set winbox disabled=yes
/routing bgp network
add comment="GreenZone 10G" network=192.168.218.0/24
add comment="PC-LAN 10G" network=192.168.216.0/24
/routing bgp peer
add name=pfSense remote-address=192.168.10.200 remote-as=65123 ttl=default
/system routerboard settings
set boot-os=router-os
/system swos
set allow-from-ports=p5,p17 allow-from-vlan=88