MC-LAG multichassis Junos

Home » Blog » Configuration Template » Juniper » MC-LAG multichassis Junos

MC-LAG multichassis Junos

07.02 2024 | by massimiliano

MC-LAGs groups è un protocollo proprietario Juniper che permette di creare una singola interfaccia logica tra due peer switch Server […]



MC-LAGs groups è un protocollo proprietario Juniper che permette di creare una singola interfaccia logica tra due peer switch Server ed un peer switch Client, provvedendo ad un collegamento in ridondanza ed in load-balancing.

Supporta scenari multihoming e costituisce un loop-free layer 2 network (no Spanning Tree).

MC-LAG utilizza ICCP (Inter-Chassis Control Protocol) per scambiare informazioni e coordinarsi con il suo peer gemello per garantire una corretta trasmissione delle informazioni (forwarding traffic).

PEER SERVER 1

set chassis aggregated-devices ethernet device-count 2

set interface xe-0/0/0 ether-option 802.3ad ae1

set interface xe-0/0/1 ether-option 802.3ad ae0

set interface xe-0/0/2 ether-option 802.3ad ae0

set interface ae0 aggregate-ether-option lacp active

set interface ae0 unit 0 family ethernet-switching interface-mode trunk

set interface ae0 unit 0 family ethernet-switching vlan members v10

set interface ae0 unit 0 family ethernet-switching vlan members v50

set interface ae1 aggregate-ether-option lacp active

set interface ae1 aggregate-ether-options lacp system-id aa:bb:cc:dd:ee:ff

set interface ae1 aggregate-ether-options lacp admin-key 3

set interface ae1 aggregate-ether-options mc-ae mc-ae-id 3

set interface ae1 aggregate-ether-options mc-ae redundancy-group 1

set interface ae1 aggregate-ether-options mc-ae chassis-id 0

set interface ae1 aggregate-ether-options mc-ae mode active

set interface ae1 aggregate-ether-options mc-ae status-control active

set interface ae1 aggregate-ether-options mc-ae init-delay-time 240

set interface ae1 unit 0 family ethernet-switching interface-mode trunk

set interface ae1 unit 0 family ethernet-switching vlan members v10

!

set interface em0 unit 0 family inet address 10.1.1.1/24

set interface irb unit 10 family inet address 10.10.10.1/24

set interface irb unit 50 family inet address 10.10.50.1/30

set multi-chassis multi-chassis protection 10.10.50.2 interface ae0

set protocols icpp local-ip-address 10.10.50.1

set protocols icpp peer 10.10.50.2 session-establishment-hold-time 340

set protocols icpp peer 10.10.50.2 redundancy-group-id-list 1

set protocols icpp peer 10.10.50.2 backup-liveness-detection backup-peer-ip 10.1.1.2

set protocols icpp peer 10.10.50.2 liveness-detection minimum-receive-interval 1000

set protocols icpp peer 10.10.50.2 liveness-detection transmit-interval minumum-interval 1000

set switch-option service-id 10

set vlan v10 vlan-id 10

set vlans v10 l3-interface irb.10

set vlan v50 vlan-id 50

set vlans v50 l3-interface irb.50

PEER SERVER 2

set chassis aggregated-devices ethernet device-count 2

set interface xe-0/0/0 ether-option 802.3ad ae1

set interface xe-0/0/1 ether-option 802.3ad ae0

set interface xe-0/0/2 ether-option 802.3ad ae0

set interface ae0 aggregate-ether-option lacp active

set interface ae0 unit 0 family ethernet-switching interface-mode trunk

set interface ae0 unit 0 family ethernet-switching vlan members v10

set interface ae0 unit 0 family ethernet-switching vlan members v50

set interface ae1 aggregate-ether-option lacp active

set interface ae1 aggregate-ether-options lacp system-id aa:bb:cc:dd:ee:ff

set interface ae1 aggregate-ether-options lacp admin-key 3

set interface ae1 aggregate-ether-options mc-ae mc-ae-id 3

set interface ae1 aggregate-ether-options mc-ae redundancy-group 1

set interface ae1 aggregate-ether-options mc-ae chassis-id 1

set interface ae1 aggregate-ether-options mc-ae mode active

set interface ae1 aggregate-ether-options mc-ae status-control active

set interface ae1 aggregate-ether-options mc-ae init-delay-time 240

set interface ae1 unit 0 family ethernet-switching interface-mode trunk

set interface ae1 unit 0 family ethernet-switching vlan members v10

!

set interface em0 unit 0 family inet address 10.1.1.2/24

set interface irb unit 10 family inet address 10.10.10.2/24

set interface irb unit 50 family inet address 10.10.50.2/30

set multi-chassis multi-chassis protection 10.10.50.1 interface ae0

set protocols icpp local-ip-address 10.10.50.2

set protocols icpp peer 10.10.50.1 session-establishment-hold-time 340

set protocols icpp peer 10.10.50.1 redundancy-group-id-list 1

set protocols icpp peer 10.10.50.1 backup-liveness-detection backup-peer-ip 10.1.1.1

set protocols icpp peer 10.10.50.1 liveness-detection minimum-receive-interval 1000

set protocols icpp peer 10.10.50.1 liveness-detection transmit-interval minumum-interval 1000

set switch-option service-id 10

set vlan v10 vlan-id 10

set vlans v10 l3-interface irb.10

set vlan v50 vlan-id 50

set vlans v50 l3-interface irb.50

Nota:

liveness-detection = BFD failure detection

LAG CLIENT

set chassis aggregated-devices ethernet device-count 2

set interface xe-0/0/0 ether-options 802.3ad ae1

set interface xe-0/0/1 ether-options 802.3ad ae1

set interface xe-0/0/2 unit 0 family ethernet-switching interface-mode access

set interface xe-0/0/2 unit 0 family ethernet-switching vlan members v10

set interface ae1 aggregate-ethernet-option lacp active

set interface ae1 unit 0 family ethernet-switching interface-mode trunk

set interface ae1 unit 0 family ethernet-switching vlan members v10

set interface irb unit 10 family inet address 10.10.10.3/24

 et vlan v10 vlan-id 10

set vlans v10 l3-interface irb.10

Verifica

ICPP is running: show icpp

LACP is running: show lacp interface

MC-AE and ICL-PL interface is UP: show interface mc-ae

MAC learning is OK: show ethernet-switching table

Torna in alto