Route

mikrotik 路線每秒自動出現並刪除

  • May 18, 2021

Mikrotik OS v6.48.2 有路由

#      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
0 ADS  0.0.0.0/0                          193.168.1.1               1   <<<<<<<<<<<<<<<<<<<<<
1   S  ;;; dyno
       0.0.0.0/0                          192.168.8.1               5
2   S  ;;; dyno
       0.0.0.0/0                          pppoe-out1                6
3   S  ;;; dyno
       0.0.0.0/0                          193.168.1.1              10
4 ADC  10.32.181.1/32     x.x.x.147   pppoe-out1                0
5 ADC  10.32.238.1/32     x.x.x.250   pppoe-out2                0
6 A S  ;;; dyno
       x.x.x.18/32                 193.168.1.1               1
7 ADC  192.168.8.0/24     192.168.8.100   lte1                      0
8 ADC  192.168.88.0/24    192.168.88.1    bridge                    0
9 ADC  193.168.0.0/16     193.168.0.177   ether1                    0

但是路線 0 消失並每隔 3-5 秒再次出現。所以它變得像

#      DST-ADDRESS        PREF-SRC        GATEWAY            DISTANCE
0   S  ;;; dyno
       0.0.0.0/0                          192.168.8.1               5
1 A S  ;;; dyno
       0.0.0.0/0                          pppoe-out1                6
2   S  ;;; dyno
       0.0.0.0/0                          193.168.1.1              10
3 ADC  10.32.181.1/32     x.x.x.147   pppoe-out1                0
4 ADC  10.32.238.1/32     x.x.x.250   pppoe-out2                0
5 A S  ;;; dyno
       x.x.x.18/32                 193.168.1.1               1
6 ADC  192.168.8.0/24     192.168.8.100   lte1                      0
7 ADC  192.168.88.0/24    192.168.88.1    bridge                    0
8 ADC  193.168.0.0/16     193.168.0.177   ether1                    0

LAN 沒有任何改變。沒有腳本正在執行。每隔 3-5 秒,它就會再次出現和消失。

/ip 地址列印

#   ADDRESS            NETWORK         INTERFACE                                                  
0   ;;; defconf
    192.168.88.1/24    192.168.88.0    bridge                                                     
1 D 193.168.0.177/16   193.168.0.0     ether1                                                     
2 D 192.168.8.100/24   192.168.8.0     lte1                                                       
3 D x.x.x.250/32   10.32.238.1     pppoe-out2                                                 
4 D x.x.x.147/32   10.32.181.1     pppoe-out1 

如何解決這個問題?

全部修復!原因:DHCP客戶端出錯,重試獲取新ip,刪除之前的路由,出錯後恢復之前的。

引用自:https://serverfault.com/questions/1063990