Dear all,
I’m new to RouterOS although I have experience configuring firewalls (Palo Alto)
I’m using a Mikrotik hAP AX^3
Target setup:
- Use it as an access point for different WLANs
- Use different SSIDs for different access rights
- Each SSID should use a different VLAN on the LAN interface
- No need for any firewall rules, Internet/LAN access is configured on the Palo Alto firewall
I deleted the default bridge
I connected eth2 to the main LAN switch
I managed to assign an IP to eth2
I can connect from the LAN to the AP
I added a VLAN to eth2
[admin@MikroTik] /ip> address/print
Columns: ADDRESS, NETWORK, INTERFACE
# ADDRESS NETWORK INTERFACE
;;; LAN
0 192.168.xx.91/24 192.168.xx.0 ether2
;;; Influencershit
1 192.168.xy.91/24 192.168.xy.0 vlan198
/ip/route> print detail
Flags: D - dynamic; X - disabled, I - inactive, A - active; c - connect, s - static, r - rip, b - bgp, o - ospf, i - is-is, d - dhcp, v - vpn, m - modem, y - bgp-mpls-vpn;
H - hw-offloaded; + - ecmp
DAc dst-address=192.168.xx.0/24 routing-table=main gateway=ether2 immediate-gw=ether2 distance=0 scope=10 suppress-hw-offload=no local-address=192.168.xx.91%ether2
DAc dst-address=192.168.xy.0/24 routing-table=main gateway=vlan198 immediate-gw=vlan198 distance=0 scope=10 suppress-hw-offload=no local-address=192.168.xy.91%vlan198
/interface/vlan> print
Flags: R - RUNNING
Columns: NAME, MTU, ARP, VLAN-ID, INTERFACE
# NAME MTU ARP VLAN-ID INTERFACE
;;; Influencer
0 R vlan198 1500 enabled 198 ether2
I can ping the default gateway for eth2, but I can’t ping the default gateway for vlan198
Am I missing some basic understanding?
Do I need a bridge to have one physical interface acting as a hybrid port, supporting both untagged and VLAN tagged networks?
Saw something along these lines when browsing previous posts.
Once this will be sorted the next questions comes up about routing:
The different VLANs will each have their respective firewall subinterface as the default route
The untagged LAN interface (eth2) has a corresponding LAN firewall interface as the default route
How can I create a routing table with different default routes based on the source interface?
I tried adding different default routes but not sure this is correct:
/ip/route> print detail
Flags: D - dynamic; X - disabled, I - inactive, A - active; c - connect, s - static, r - rip, b - bgp, o - ospf, i - is-is, d - dhcp, v - vpn, m - modem, y - bgp-mpls-vpn;
H - hw-offloaded; + - ecmp
0 IsH dst-address=0.0.0.0/0 routing-table=main pref-src=192.168.xy.91 gateway=192.168.xy.254 immediate-gw="" check-gateway=ping distance=1 scope=30 target-scope=10
vrf-interface=vlan198 suppress-hw-offload=no
1 As ;;; LAN management
dst-address=0.0.0.0/0 routing-table=main pref-src=192.168.xx.91 gateway=192.168.xx.2 immediate-gw=192.168.xx.2%ether2 check-gateway=ping distance=1 scope=30
target-scope=10 vrf-interface=ether2 suppress-hw-offload=no
DAc dst-address=192.168.xx.0/24 routing-table=main gateway=ether2 immediate-gw=ether2 distance=0 scope=10 suppress-hw-offload=no local-address=192.168.xx.91%ether2
DAc dst-address=192.168.xy.0/24 routing-table=main gateway=vlan198 immediate-gw=vlan198 distance=0 scope=10 suppress-hw-offload=no local-address=192.168.xy.91%vlan198
Thanks and Regards,
Andreas