Enable default route on DHCP client and see what exactly is set by executing /ip address print detail and /ip route print detail. Then configure it statically and execute same commands. Then compare outputs to see what’s different (except for actual IP addresses). Note also subnet masks used, if you configure IP address with wrong subnet mask things will likely break.
Its pretty the same except that i am not adding gateway/dst address and pref. source address due to dynamic WAN (not a static connection) but i need manually route for adding comment and execute some scripts.
How can you possibly add a route without a gateway or destination address??
If you are using LTE passthough to another device, so the WAN address is terminated there, the LTE Mikrotik has no access to the WAN - you have to provide access via the other device.
A sketch showing what you are attempting plus the output of /export hide-sensitive would help.
Sorry my fault.
When i tried to add manual route i choosed the created vlan interface.
My WAP LTE Kit hast 2 VLANs. 1 for managment and 1 for passthrough (LTE ISP).
With default route everything is fine but the static doen’t work for any reason. Here the export:
As I wrote: show exact output of /ip route print and /ip address print (print command shows actual running values which is different than export which shows configuration … in case of dynamic stuff export won’t show much). And we need to see output for both DHCP and static case so we can compare them.
Because “pretty same” is not good enough, the devil hides in details.
And, please, copy-paste text outputs (inside [__code] [/code] environment for better readability). You can obfuscate public IP address (but do it in same way in both outputs, e.g. 89.172.x.y and make sure ‘x’ are the same in both cases, ditto ‘y’).
Flags: X - disabled, A - active, D - dynamic, C - connect, S - static, r - rip, b - bgp, o - ospf, m - mme, B - blackhole, U - unreachable, P - prohibit
# DST-ADDRESS PREF-SRC GATEWAY DISTANCE
0 A S ;;; ISP OPTICAL
0.0.0.0/0 pppoe-out 1
1 DS 0.0.0.0/0 178.160.xx.yyy 10
2 A S ;;; Route Studio Zagreb to Brela VLAN10
10.10.10.0/24 50.50.50.1 1
3 ADC 30.30.30.2/32 30.30.30.1 <l2tp-mikrotik_... 0
4 ADC 50.50.50.1/32 50.50.50.3 l2tp-brela 0
5 ADC 90.90.90.0/24 90.90.90.1 bridge_guests 0
6 ADC 172.29.xxx.yy/32 93.138.xx.yyy pppoe-out 0
7 ADC 178.160.xx.yyy/30 178.160.xx.yyy vlan-wap-isp 0
8 A S ;;; Route Studio Zagreb to Doma Zagreb
192.168.88.0/24 30.30.30.2 1
9 ADC 192.168.89.0/24 192.168.89.1 bridge 0
10 A S ;;; Route Studio Zagreb to Brela
192.168.90.0/24 50.50.50.1 1
11 ADC 192.168.243.0/24 192.168.243.200 bridge_vtek 0
Flags: X - disabled, I - invalid, D - dynamic
# ADDRESS NETWORK INTERFACE
0 ;;; default configuration
192.168.89.1/24 192.168.89.0 bridge
1 90.90.90.1/24 90.90.90.0 bridge_guests
2 192.168.243.200/24 192.168.243.0 bridge_vtek
3 D 178.160.xx.yyy/30 178.160.xx.yyy vlan-wap-isp
4 D 93.138.xx.yyy/32 172.29.xxx.yy pppoe-out
5 D 30.30.30.1/32 30.30.30.2 <l2tp-mikrotik_doma>
6 D 50.50.50.3/32 50.50.50.1 l2tp-brela
(somehow I doubt that in route line 7 both addresses are exactly the same, only the first one suffixed with /30 netmask, I’d guess the yyy in second address is larger than yyy in first address by 1 but that’s just guessing).
So if you want manually handle the routes via vlan-wap-isp interface, you have to add exactly the same two routes: the route towards 178.160.xx.yyy/30 subnet with gateway set to VLAN interface (line numbered 7 from your route print) and route towards everything (dst-address=0.0.0.0/0 via gateway on 178.160.xx.yyy/30 subnet (line 1 from your route print).
This connected route is added automatically from the IP address and netmask assigned to the interface (line numbered 3 from the /ip address print)
If the LTE service is similar to ones I’ve used the IP address is usually completely different after any disconnect and reconnect, not sticky to a particular cell tower, so it is impossible to add a manual static route as you have no idea what the interface address and gateway will be.
Thanks for your reply and your help. I found a solition with DHCP client script (with default route=yes). The script add the distance, gateway information (in case isp change it) and another route for routing mark). For now it works ok.