Community discussions

MikroTik App
 
Syn
just joined
Topic Author
Posts: 1
Joined: Thu Apr 25, 2024 2:01 am

Need help with setting up WAN and LAN networks

Thu Apr 25, 2024 2:13 am

Hi!
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.

# 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:

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.
Last edited by tangent on Thu Apr 25, 2024 6:40 am, edited 1 time in total.
Reason: wrapped /export and /print output in code blocks
 
rplant
Member
Member
Posts: 333
Joined: Fri Sep 29, 2017 11:42 am

Re: Need help with setting up WAN and LAN networks

Thu Apr 25, 2024 10:14 am

It looks like the lan sfp2 is not running.
In winbox, double click on the sfp2 and check its link status.

What is it connected too?

If a 1G DAC or optical device you possibly need to force it to 1GBaseX, or at least include 1GBaseX in
the Auto negotiation settings in the ethernet tab.

if 10G probably need 10G BaseCR

Who is online

Users browsing this forum: No registered users and 7 guests