Community discussions

MikroTik App
 
szaszg
just joined
Topic Author
Posts: 4
Joined: Fri Apr 29, 2022 8:56 am

False dynamic route

Fri Apr 29, 2022 12:50 pm

Hello!

My problem:
An RBD52G-5HacD2HnD
Firmware Type ipq4000L
Factory Firmware 6.45.9
Current Firmware 6.47.9
[admin@MikroTik] > /interface print 
Flags: D - dynamic, X - disabled, R - running, S - slave 
 #     NAME                                TYPE       ACTUAL-MTU L2MTU  MAX-L2MTU MAC-ADDRESS      
 0  R  ether1                              ether            1500  1598       9214 2C:C8:1B:EE:A0:87
 1   S ether2                              ether            1500  1598       9214 2C:C8:1B:EE:A0:88
 2  RS ether3                              ether            1500  1598       9214 2C:C8:1B:EE:A0:89
 3   S ether4                              ether            1500  1598       9214 2C:C8:1B:EE:A0:8A
 4   S ether5                              ether            1500  1598       9214 2C:C8:1B:EE:A0:8B
 5     wlan1                               wlan             1500  1600       2290 2C:C8:1B:EE:A0:8C
 6  X  wlan2                               wlan             1500  1600       2290 2C:C8:1B:EE:A0:8D
 7     wlan3                               wlan             1500  1600       2290 2E:C8:1B:EE:A0:8C
 8  R  ;;; defconf
       bridge                              bridge           1500  1598            2C:C8:1B:EE:A0:88
 9  X  bridge1                             bridge                                 2C:C8:1B:EE:A0:8C

[admin@MikroTik] > /interface bridge print 
Flags: X - disabled, R - running 
 0 R ;;; defconf
     name="bridge" mtu=auto actual-mtu=1500 l2mtu=1598 arp=reply-only arp-timeout=auto mac-address=2C:C8:1B:EE:A0:88 protocol-mode=rstp fast-forward=yes igmp-snooping=no 
     auto-mac=no admin-mac=2C:C8:1B:EE:A0:88 ageing-time=5m priority=0x8000 max-message-age=20s forward-delay=15s transmit-hold-count=6 vlan-filtering=no dhcp-snooping=no 

 1 X name="bridge1" mtu=1500 arp=enabled arp-timeout=auto mac-address=2C:C8:1B:EE:A0:8C protocol-mode=rstp fast-forward=yes igmp-snooping=no auto-mac=yes ageing-time=5m 
     priority=0x8000 max-message-age=20s forward-delay=15s transmit-hold-count=6 vlan-filtering=no dhcp-snooping=no 

[admin@MikroTik] > /interface bridge port print 
Flags: X - disabled, I - inactive, D - dynamic, H - hw-offload 
 #     INTERFACE                                              BRIDGE                                              HW  PVID PRIORITY  PATH-COST INTERNAL-PATH-COST    HORIZON
 0 I H ;;; defconf
       ether2                                                 bridge                                              yes    1     0x80         10                 10       none
 1   H ;;; defconf
       ether3                                                 bridge                                              yes    1     0x80         10                 10       none
 2 I H ;;; defconf
       ether4                                                 bridge                                              yes    1     0x80         10                 10       none
 3 I H ;;; defconf
       ether5                                                 bridge                                              yes    1     0x80         10                 10       none

[admin@MikroTik] > /ip address print
Flags: X - disabled, I - invalid, D - dynamic 
 #   ADDRESS            NETWORK         INTERFACE                                                                                                                           
 0   ;;; defconf
     192.168.88.1/24    192.168.88.0    wlan1                                                                                                                               
 1   10.1.99.2/16       10.1.0.0        bridge                                                                                                                              

[admin@MikroTik] > /ip arp print
Flags: X - disabled, I - invalid, H - DHCP, D - dynamic, P - published, C - complete 
 #    ADDRESS         MAC-ADDRESS       INTERFACE                                                                                                                           
 0  C 10.1.254.255    00:50:56:A8:11:29 bridge                                                                                                                              
 1  C 10.1.240.131    7C:10:C9:84:C2:94 bridge                                                                                                                              

[admin@MikroTik] > /ip route print  
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   S  0.0.0.0/0          81.xx.xx.43      ether1                    1
 1 A S  10.1.0.0/16                        bridge                    1
 2 ADC  81.xx.xx.40/29      10.1.99.2       bridge                    0
 3   S  81.xx.xx.40/29      81.xx.xx.43      ether1                    1
 4  DC  192.168.88.0/24    192.168.88.1    wlan1                   255
My problem is the route to "81.xx.xx.40/29 on bridge".
Why, and how can I flush this dynamic false route.

At the past I added IP address 81.xx.xx.43/29 to ether1 (and a static route too, to override the false route) but later i removed to router flush this dynamic route... but not.

I _do not_ want to reboot the device.

Thanks a lot,
Gergely
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: False dynamic route

Fri Apr 29, 2022 12:58 pm

results of:
/ip address export
and
/ip route export
?
 
User avatar
anav
Forum Guru
Forum Guru
Posts: 19321
Joined: Sun Feb 18, 2018 11:28 pm
Location: Nova Scotia, Canada
Contact:

Re: False dynamic route

Fri Apr 29, 2022 4:22 pm

You should be using latest long term ver 6.48 the last 6 firmware long term available, as we wait for a vers 7 long term
 
szaszg
just joined
Topic Author
Posts: 4
Joined: Fri Apr 29, 2022 8:56 am

Re: False dynamic route

Fri Apr 29, 2022 5:57 pm

[admin@MikroTik] > /ip address export
# jan/03/1970 04:56:30 by RouterOS 6.47.9
# software id = UHGL-4QHH
#
# model = RBD52G-5HacD2HnD
# serial number = <CENSORED>
/ip address
add address=192.168.88.1/24 comment=defconf interface=wlan1 network=192.168.88.0
add address=10.1.99.2/16 interface=bridge network=10.1.0.0

[admin@MikroTik] > /ip route export
# jan/03/1970 04:57:23 by RouterOS 6.47.9
# software id = UHGL-4QHH
#
# model = RBD52G-5HacD2HnD
# serial number = <CENSORED>
/ip route
add distance=1 gateway=ether1 pref-src=81.xx.xx.43
add distance=1 dst-address=10.1.0.0/16 gateway=bridge
add distance=1 dst-address=81.xx.xx.40/29 gateway=ether1 pref-src=81.xx.xx.43

Thanks!
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: False dynamic route

Fri Apr 29, 2022 6:19 pm

Effectively, this is internal problem...
Probably reboot solve the problem.
I understand you do not want boot, but on that occasion, I suggest at same time to upgrade to 6.48.6 long-term
 
tdw
Forum Guru
Forum Guru
Posts: 1845
Joined: Sat May 05, 2018 11:55 am

Re: False dynamic route

Fri Apr 29, 2022 6:41 pm

Using gateway=interfacename is only valid for point-to-point interfaces, not ethernet, you should specify an address. Directly-attached routes will be added automatically from the addresses and netmasks specified /ip address. You only have to use pref-src= if you have multiple IP addresses on the same interface.

/ip route
add distance=1 gateway=ether1yourgatewayaddress pref-src=81.xx.xx.43
add distance=1 dst-address=10.1.0.0/16 gateway=bridge
add distance=1 dst-address=81.xx.xx.40/29 gateway=ether1 pref-src=81.xx.xx.43


Presumably the ether1 IP address is obtained by DHCP as it is not present in /ip address
 
User avatar
rextended
Forum Guru
Forum Guru
Posts: 12001
Joined: Tue Feb 25, 2014 12:49 pm
Location: Italy
Contact:

Re: False dynamic route

Fri Apr 29, 2022 6:56 pm

Presumably the ether1 IP address is obtained by DHCP as it is not present in /ip address
:shock: ah... I must sleep, I do not have noticed that... :roll:

At this point is better to do not add manually routes at all, but leave the DHCP create appropriate route...
 
szaszg
just joined
Topic Author
Posts: 4
Joined: Fri Apr 29, 2022 8:56 am

Re: False dynamic route

Fri Apr 29, 2022 9:26 pm

Presumably the ether1 IP address is obtained by DHCP as it is not present in /ip address
The ether1 address is the "internet" address of the router. It a static one. There is no DHCP (not "home" configuration).

I just remove it, because the router now cannot see any ip on that range and to drop the false route on "bridge"... but...

If i add back, i see:
[admin@MikroTik] > /ip route print 
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  0.0.0.0/0          81.0.78.43      ether1                    1
 1 A S  10.1.0.0/16                        bridge                    1
 2 ADC  81.0.78.40/29      10.1.99.2       bridge                    0
                                           ether1            
 3   S  81.0.78.40/29      81.0.78.43      ether1                    1
 4  DC  192.168.88.0/24    192.168.88.1    wlan1                   255
At this point is better to do not add manually routes at all, but leave the DHCP create appropriate route...
O.K. I added static routes just to try to override the false one. But the dynamic route has "distance=0", and i can add only static routes with "distance=1" :(

BTW. if there are more than one route to dst. address the router should use the "longer way" if the packet not find the dst. on the "first" route, isn't it?

Gergely
 
tdw
Forum Guru
Forum Guru
Posts: 1845
Joined: Sat May 05, 2018 11:55 am

Re: False dynamic route

Fri Apr 29, 2022 10:56 pm

You still incorrectly have gateways set to interfaces, not addresses. Post the output of /export hide-sensitive after redacting any public IP addresses, etc.
 
szaszg
just joined
Topic Author
Posts: 4
Joined: Fri Apr 29, 2022 8:56 am

Re: False dynamic route

Sat Apr 30, 2022 1:36 pm

Hmm...

When I remove the 10.1.99.2/16 ip from bridge than the false dynamic route is removed by mikrotik (it make sense of course, in retrospect :-) )

Thanks all,
Gergely

Who is online

Users browsing this forum: iDaemon, jfh and 38 guests