Community discussions

MikroTik App
 
schmiro
just joined
Topic Author
Posts: 3
Joined: Wed Feb 28, 2024 1:55 pm

L009UiGS-RM: Default route is not part of exported configuration (/export command)

Wed Feb 28, 2024 2:15 pm

Hello everyone,

when i export the configuration of my L009UiGS-RM (RouterOS Version is: 7.13.5) with command ‘/export’ or ‘/export verbose’ the default route to 0.0.0.0/0 is not listed.

I would have expected an entry similar like:
/ip route
add distance=1 gateway=192.168.178.1

Looking via Winbox into the UI under ‘IP → Routes’ i can find the default route properly configured. See screenshot attached.
d434863fc11547111fdce376bdbf3595.jpg
Any idea what is wrong here ?

With my old MT router RB750 gr 2, with RouterOS 6.x all time the default route was listed with command '/export'.
Do i have to use the '/expor't command in a diffrent way in 7.x or ist it a bug ?

Thanks in advance for your help !

Regards
Ralf
You do not have the required permissions to view the files attached to this post.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11646
Joined: Thu Mar 03, 2016 10:23 pm

Re: L009UiGS-RM: Default route is not part of exported configuration (/export command)

Wed Feb 28, 2024 3:48 pm

It's probably a bug. On my audience running 7.13.2 I can see it in export:
/ip/route> print 
Flags: D - DYNAMIC; I - INACTIVE, A - ACTIVE; c - CONNECT, s - STATIC; H - HW-OFFLOADED
Columns: DST-ADDRESS, GATEWAY, DISTANCE
#      DST-ADDRESS      GATEWAY       DISTANCE
0  As  0.0.0.0/0        192.168.99.1         1
  DAc  192.168.99.0/24  vlan-99              0

/ip/route> export 
# 2024-02-28 14:45:38 by RouterOS 7.13.2
# software id = D47K-966T
#
# model = RBD25G-5HPacQD2HPnD
# serial number = D5840EE80054
/ip route
add gateway=192.168.99.1
 
schmiro
just joined
Topic Author
Posts: 3
Joined: Wed Feb 28, 2024 1:55 pm

Re: L009UiGS-RM: Default route is not part of exported configuration (/export command)

Wed Feb 28, 2024 5:48 pm

Hello,

i called the /export command on top level. And in this case there was no default route listed.

If i call the export command on /ip/route level the default route is shown.
But using the print command nothing is shown. See below.

[quote][admin@MikroTik] /ip/route> print    
Flags: D - DYNAMIC; I - INACTIVE, A - ACTIVE; c - CONNECT, s - STATIC; H - HW-OFFLOADED
Columns: DST-ADDRESS, GATEWAY, DISTANCE
#      DST-ADDRESS       GATEWAY        DISTANCE
0  IsH 0.0.0.0/0         192.168.178.1         1
  DAc  192.168.2.0/24    ether2                0
  DIcH 192.168.3.0/24    ether3                0
  DIcH 192.168.4.0/24    ether4                0
  DIcH 192.168.5.0/24    ether5                0
  DAc  192.168.7.0/24    bridge1               0
  DIcH 192.168.178.0/24  ether1                0
[admin@MikroTik] /ip/route> export   
# 2024-02-28 15:36:59 by RouterOS 7.13.5
# software id = xxx
#
# model = L009UiGS
# serial number = yyy
[/quote]

Yes, seems to be a bug.

The bug was as well in 7.13.4.

Regards
Ralf
 
holvoetn
Forum Guru
Forum Guru
Posts: 5500
Joined: Tue Apr 13, 2021 2:14 am
Location: Belgium

Re: L009UiGS-RM: Default route is not part of exported configuration (/export command)

Wed Feb 28, 2024 6:41 pm

Best to contact support about it with your findings.
 
jaclaz
Long time Member
Long time Member
Posts: 667
Joined: Tue Oct 03, 2023 4:21 pm

Re: L009UiGS-RM: Default route is not part of exported configuration (/export command)

Wed Feb 28, 2024 8:55 pm

A (good?) additional question could be if it affects only the "main" gateway route or all the Static ones.
 
schmiro
just joined
Topic Author
Posts: 3
Joined: Wed Feb 28, 2024 1:55 pm

Re: L009UiGS-RM: Default route is not part of exported configuration (/export command)

Tue Mar 05, 2024 3:08 pm

A (good?) additional question could be if it affects only the "main" gateway route or all the Static ones.

Even with my old MT router RB750 gr 2 all time only the default route to 192.168.178.1 was listed under section /ip route with command '/export'.
/ip route
add distance=1 gateway=192.168.178.1 
All the other routes to the other networks (e.g. 192.168.2.0/24, 192.168.3.0/24, etc.) visible on the Winbox UI/ Route List never have been listed with /export command.

Regards
Ralf

PS: sorry for replying so late, but i was ill for some days.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11646
Joined: Thu Mar 03, 2016 10:23 pm

Re: L009UiGS-RM: Default route is not part of exported configuration (/export command)

Tue Mar 05, 2024 3:14 pm

All the other routes to the other networks (e.g. 192.168.2.0/24, 192.168.3.0/24, etc.) visible on the Winbox UI/ Route List never have been listed with /export command.

Winbox has a bit different logic built in, so you can't directly compare what is shown by winbox to what is shown by individual commands in CLI.

Alas: the routes you mention are not explicitly set routes, they are listed in /ip route print as "D" - dynamic. Which means they are there, but configuration, which "made them" was done elsewhere ... so export in route subtree can not export those. In particular: those are "connected networks" which are accessible directly via appropriate interface (shown in route print output) because IP address (set on those interfaces) includes subnet mask, shorter than 31 (meaning that more than a single "foreign" host is accessible via that interface, making that a "subnet"). Hence "route" instructing device to reach those destinations by using appropriate interface. Likewise there might be a default route (dynamic as well, so non-exportable) if WAN interface is PPPoE and property "default-route" is set to "yes".
 
jaclaz
Long time Member
Long time Member
Posts: 667
Joined: Tue Oct 03, 2023 4:21 pm

Re: L009UiGS-RM: Default route is not part of exported configuration (/export command)

Tue Mar 05, 2024 3:50 pm

@schmiro
To clear my previous post there are Dynamic rules D (that are auto-generated by the router depending on the networks/connections available and never exported) and Static s rules.
These latter ones can be of two types:
1) catch-all gateways, such as yours:
add distance=1 gateway=192.168.178.1
that actually is a "short form" for:
add dst-address=0.0.0.0/0 distance=1 gateway=192.168.178.1
2) specific routes, only as an example:
add dst-address=192.168.0.0/24 distance=2 gateway=192.168.178.1

The questions are:
1) are both types of Static routes above not exported?
2) or is it only the one without and explicit dst-address?
Or if you prefer:
1) what happens if you add temporarily a:
add dst-address=192.168.0.0/24 distance=2 gateway=192.168.178.1
, does it export?
2) what happens if you try adding the dst-address=0.0.0.0/0 to the main gateway route, does it export?

Who is online

Users browsing this forum: akakua, broderick, vingjfg and 20 guests