底辺エンジニアの備忘録

30過ぎて、記憶力低下が著しい為、メモ代わりにしていく予定。 自身のスキルが低いので、内容の正確さは保障できません・・・OTL

JUNIPER_LAG

JUNOSのLAG
まずはLAGの構成から・・・

f:id:klock_3rd:20180701134502p:plain

 

EX2200-24T側Config

 set chassis aggregated-devices ethernet device-count 10

delete interfaces ge-0/0/0 unit 0 
delete interfaces ge-0/0/1 unit 0 
delete interfaces ge-0/0/2 unit 0 
delete interfaces ge-0/0/3 unit 0 

set interfaces ge-0/0/0 ether-options 802.3ad ae0
set interfaces ge-0/0/1 ether-options 802.3ad ae0
set interfaces ge-0/0/2 ether-options 802.3ad ae0
set interfaces ge-0/0/3 ether-options 802.3ad ae0
set interfaces ae0 aggregated-ether-options minimum-links 2
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 

 

EX2200のVC側設定

set chassis aggregated-devices ethernet device-count 10

delete interfaces ge-0/0/0 unit 0 
delete interfaces ge-0/0/1 unit 0 
delete interfaces ge-1/0/0 unit 0 
delete interfaces ge-1/0/1 unit 0 

set interfaces interface-range AE0-RANGE member ge-0/0/0
set interfaces interface-range AE0-RANGE member ge-0/0/1
set interfaces interface-range AE0-RANGE member ge-1/0/0
set interfaces interface-range AE0-RANGE member ge-1/0/1
set interfaces interface-range AE0-RANGE ether-options 802.3ad ae0
set interfaces ae0 aggregated-ether-options minimum-links 2
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

VC側はinterface-rangeを使ってLAGを構成するIFを一つのGroupにまとめただけで、EX2200-24Tと、VC側の設定の差はなし。 これは設定者の好みによるかと

 

確認

EX2200

root> show interfaces terse

Interface        Admin Link Proto  Local         
ge-0/0/0        up  up
ge-0/0/0.0       up  up  aenet  --> ae0.0
ge-0/0/1        up  up
ge-0/0/1.0       up  up  aenet  --> ae0.0
ge-0/0/2        up  up
ge-0/0/2.0       up  up  aenet  --> ae0.0
ge-0/0/3        up  up
ge-0/0/3.0       up  up  aenet  --> ae0.0
ae0           up  up
ae0.0          up  up  eth-switch

 

 この状態で、ge-0/0/0 ~ ge-0/0/2までのLinkを抜く。
「minimum-links 2」だからDownするはず。

root> show interfaces terse

Interface        Admin Link Proto  Local        
ge-0/0/0        up  down
ge-0/0/0.0       up  down aenet  --> ae0.0
ge-0/0/1        up  down
ge-0/0/1.0       up  down aenet  --> ae0.0
ge-0/0/2        up  down
ge-0/0/2.0       up  down aenet  --> ae0.0
ge-0/0/3        up  up
ge-0/0/3.0       up  up  aenet  --> ae0.0
ae0           up  down
ae0.0          up  down eth-switch

ちゃんとAE0もダウンしてる。