Community discussions

MikroTik App
 
freddi
newbie
Topic Author
Posts: 36
Joined: Sat Oct 27, 2018 1:26 pm

View configured static routes

Mon Jun 22, 2020 12:42 pm

Hello,
I would like to view and edit the static routes I've defined using Winbox.
If I go to ip/routes - the system informs me "there are too many routes to display them all".
I only defined a few and I would like to see them using Winbox.

I can see them if I export the configuration, but I expect there must be a better way.
Thanks!
 
sindy
Forum Guru
Forum Guru
Posts: 10206
Joined: Mon Dec 04, 2017 9:19 pm

Re: View configured static routes

Mon Jun 22, 2020 1:17 pm

You can export just the statically configured routes - /ip route export
To see all routes and their state, use /ip route print
 
freddi
newbie
Topic Author
Posts: 36
Joined: Sat Oct 27, 2018 1:26 pm

Re: View configured static routes

Mon Jun 22, 2020 5:07 pm

Thanks - yes I am aware of the possibility to display this information using the CLI. My question was - is it possible using winbox?
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: View configured static routes

Mon Jun 22, 2020 6:37 pm

Click the link to show them all anyway and then use filter to show only the static ones.
 
User avatar
k6ccc
Forum Guru
Forum Guru
Posts: 1497
Joined: Fri May 13, 2016 12:01 am
Location: Glendora, CA, USA (near Los Angeles)
Contact:

Re: View configured static routes

Mon Jun 22, 2020 7:31 pm

I'm a little curious how many routes you have, that it can't display in WinBox. I just looked at my RB750 and there are 29 routes of which 12 are static.
 
User avatar
mutluit
Forum Veteran
Forum Veteran
Posts: 821
Joined: Wed Mar 25, 2020 4:04 am

Re: View configured static routes

Mon Jun 22, 2020 8:04 pm

Thanks - yes I am aware of the possibility to display this information using the CLI. My question was - is it possible using winbox?
Yes, IP / Routes in GUI. Those with "S" are the static ones, which also can be edited.
 
changeip
Forum Guru
Forum Guru
Posts: 3830
Joined: Fri May 28, 2004 5:22 pm

Re: View configured static routes

Mon Jun 22, 2020 8:07 pm

use the filter dropdown and select static=yes
 
freddi
newbie
Topic Author
Posts: 36
Joined: Sat Oct 27, 2018 1:26 pm

Re: View configured static routes

Tue Jun 23, 2020 8:32 am

@xvo and @ k6ccc: There are 821035 routes in the list - (it is used as a BGP router).
Displaying them all is not an option.

@changeip: I see two dropdowns in the Filter line - one shows dst address and no further options, the other scan be either "ís" or "ín".
There is another drowndown in the line above next to the Find button. It has two options - "main" and "all".
 
User avatar
xvo
Forum Guru
Forum Guru
Posts: 1237
Joined: Sat Mar 03, 2018 1:12 am
Location: Moscow, Russia

Re: View configured static routes

Tue Jun 23, 2020 11:02 am

Unfortunately filtering doesn't work unless you show the routes.
Always thought about it being quite unhandy, but that's how it is.
Devices like hEX or hAP ac2 are quite ok to show ~30k routes, doesn't know about ~800k or weaker devices.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: View configured static routes

Tue Jun 23, 2020 11:55 am

Probably because filtering is a client-side affair. The router still sends everything to winbox, but winbox omits things on the display.
In cases like this that is a bit unproductive because there is so much information to be filtered, and it even becomes too much for the router.
(you see the same issue in BGP advertisements)

I think the best suggestion is open a terminal window and do /ip route export (that can be done within winbox)
 
freddi
newbie
Topic Author
Posts: 36
Joined: Sat Oct 27, 2018 1:26 pm

Re: View configured static routes

Wed Jun 24, 2020 9:41 am

OK. Thanks for your contributions.
We need to live with that. A bit inconvenient for those who prefer a graphical user-interface. It really should be possible to modify the setup using winbox only.
It is what it is.
 
pe1chl
Forum Guru
Forum Guru
Posts: 10240
Joined: Mon Jun 08, 2015 12:09 pm

Re: View configured static routes

Wed Jun 24, 2020 10:46 am

You could post a feature request to have a "/export browser" inside the winbox GUI.
That can sometimes be handy for other purposes as well...
Like a button that appears in every properties window, and when you click it it shows a new text window with the export of (only) that specific property.
And another button on the main menu to show the export of the entire router, ready to be selected/copied.
This can often be convenient when setting up new routers using (parts of) config from other routers as well.

Also, you should question how many static routes you need or want. I would recommend to setup OSPF or a separate BGP instance to automatically manage your internal routes.

Who is online

Users browsing this forum: GoogleOther [Bot] and 213 guests