ネットワーク備忘録

アラフォーエンジニアのネットワーク系の備忘録。twitter:@deigo25374582

JUNOS_LAG(不具合対処メモ)

JUNOSのLACP不具合のメモ

Versionは以下

 Junos: 15.1R1.8

 

LACPの設定を入れた後に下記コマンドを実行したらエラーとなった。

> show lacp interfaces
warning: lacp subsystem not running - not needed by configuration.

調べてみたら、「LACPモードが入っていないから表示される」という内容だったけど、実際には投入している。

 

set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 aggregated-ether-options lacp periodic fast
set interfaces ae0 unit 0 family ethernet-switching

 

なので、色々と調べて以下で解決。

 

まず、ConfigからLACP関連を削除

delete interfaces ae0

次にLLDPも削除

delete protocol lldp interface all

あればLLDP-MEDも削除

 

そして、Shellモード

root@Juniper-SW3:RE:0% cd /var/run/db/
root@Juniper-SW3:RE:0% rm schema.db.cache

 schema.db.cacheを削除

 root@Juniper-SW3:RE:0% mgd -I

mgd: commit complete

 mgdを実行(complete表示までは時間が掛かる)

root@Juniper-SW3:RE:0% ps -auxw | grep mgd
root 1039 0.0 3.4 34740 18084 ?? I 3:16PM 0:01.35 /usr/sbin/mgd -N
root 1694 0.0 0.2 2264 1212 p1 S+ 3:40PM 0:00.03 grep mgd
root@Juniper-SW3:RE:0%
root@Juniper-SW3:RE:0% kill -9 1039 

 先ほど実行したmgdのプロセスをKill

root@Juniper-SW3:RE:0% ps -auxw | grep mgd
root 1695 59.9 4.3 34740 22460 ?? S 3:40PM 0:01.42 /usr/sbin/mgd -N
root 1697 0.0 0.2 2264 1212 p1 S+ 3:40PM 0:00.03 grep mgd
root@Juniper-SW3:RE:0% 

 Kill後再確認したら、再度mgdが上がっているのを確認

 

再度、LACPの設定を入れる

set interfaces ae0 aggregated-ether-options lacp active
set interfaces ae0 aggregated-ether-options lacp periodic fast
set interfaces ae0 unit 0 family ethernet-switching

 

commit&確認

 admin@Juniper-SW3# run show lacp interfaces
Aggregated interface: ae0
  LACP state:    Role  Exp  Def Dist Col Syn Aggr Timeout Activity
   ge-0/0/0    Actor  No  No  Yes Yes Yes  Yes   Fast  Active
   ge-0/0/0   Partner  No  No  Yes Yes Yes  Yes   Fast  Active
   ge-0/0/1    Actor  No  No  Yes Yes Yes  Yes   Fast  Active
   ge-0/0/1   Partner  No  No  Yes Yes Yes  Yes   Fast  Active
  LACP protocol:    Receive State Transmit State     Mux State
   ge-0/0/0         Current  Fast periodic Collecting distributing
   ge-0/0/1         Current  Fast periodic Collecting distributing

 

Juniperサイトの不具合情報

https://prsearch.juniper.net/InfoCenter/index?page=prcontent&id=PR1222504

 

おわり