I am having trouble with the most basic setup. I havent done this for a long time, but after many hours trying i just did a basic setup so its easier to get help. I want to create a WAN port and multiple subnets on other ports, but no matter what i do the networks cant ping wan interface. So i created the most basic setup which doesnt work.
Code: Select all
# 2024-04-25 00:58:17 by RouterOS 7.14.3
# software id = **ELIDED**
#
# model = CRS326-24S+2Q+
# serial number = **ELIDED**
/interface list
add name=WAN
add name=LAN
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip hotspot profile
set [ find default=yes ] html-directory=hotspot
/ip pool
add name=dhcp_pool0 ranges=192.168.5.2-192.168.5.254
/ip dhcp-server
add address-pool=dhcp_pool0 interface=sfp-sfpplus2 name=dhcp1
/port
set 0 name=serial0
/interface list member
add interface=sfp-sfpplus1 list=WAN
add interface=sfp-sfpplus2 list=LAN
/ip address
add address=192.168.5.1/24 interface=sfp-sfpplus2 network=192.168.5.0
/ip dhcp-client
add interface=sfp-sfpplus1
/ip dhcp-server network
add address=192.168.5.0/24 dns-server=192.168.1.1,8.8.8.8 gateway=192.168.5.1
/ip firewall nat
add action=masquerade chain=srcnat out-interface-list=WAN
Running configuration:
Code: Select all
Flags: D - DYNAMIC; I - INACTIVE, A - ACTIVE; c - CONNECT, d - DHCP; H - HW-OFFLOA
DED
Columns: DST-ADDRESS, GATEWAY, DISTANCE
DST-ADDRESS GATEWAY DISTANCE
DAd 0.0.0.0/0 192.168.1.1 1
DAc 192.168.1.0/24 sfp-sfpplus1 0
DIcH 192.168.5.0/24 sfp-sfpplus2 0
I just cant figure out why this basic setup doesnt work, my sfp2 interface just wont ping any address over sfp1 interface and i dont know why is the route inactive.