LACP link aggregation control protocol Junos
07.02 2024 | by massimilianoLACP รจ un protocollo standard 802.1ad; i pacchetti LACP sono trasmessi ad un gruppo multicast MAC con indirizzo 01-80-c2-00-00-02; durante […]
LACP รจ un protocollo standard 802.1ad; i pacchetti LACP sono trasmessi ad un gruppo multicast MAC con indirizzo 01-80-c2-00-00-02; durante la negoziazione i pacchetti sono trasmessi ogni secondo.
Le combinazione agli estremi del channel possono essere:
on – on
auto โ desiderable
desiderable โ desiderable (only for PAgP; proprietario Cisco)
active โ active (only for LACP)
passive โ active (only for LACP)
Il significato di queste opzioni sono:
auto = negoziazione passiva del link aggregation
on = nessun protocollo รจ usato; si assume che su entrambi i capi del channel รจ abilitato il link aggregation
desiderable = negoziazione attiva del link aggregation solo per PAgP
active = negoziazione attiva del link aggregation solo per LACP

LACP รจ abilitato su una interface aggregate ethernet (ae) semplicemente settando la modalitร active or passive; ad ogni modo per lโinizio di una trasmissione di messaggi PDU in forma bidirezionale รจ necessario abilitare il protocollo LACP in entrambi i peer (local and remote ends of the link) e settare la modalitร active almeno su un peer.
Active Mode: con la combinazione Actor e Partner in mode active, essi possono scambiare link aggregation control PDU; il nodo actor trasmette quindi control PDU al suo partner convenendo sullo stato del protocollo suo e del suo partner.
Passive Mode: con la combinazione Actor e Partner in mode passive questi non possono scambiare nessun link aggregation control PDU e come risultato il protocollo LACP resta in Down status.
Di default Actor e Partner scambiano messaggi LACP-PDU ogni secondo; รจ possibile settare differenti periodic rates con il periodic statement sulla interfaccia local side. Eโ la configurazione su local side che specifica il comportamento del remote side.
Interval Fast = ogni secondo
Interval Slow = ogni 30 secondi
Esempio di configurazione:
set interface ge-0/0/5 ether-option 802.3ad ae0
set interface ge-0/0/6 ether-option 802.3ad ae0
!
set interface ae0 vlan-tagging
set interface ae0 aggregate-ether-option lacp active periodic fast
LACP configuration on MX960

root@vMX1> show configuration chassis | display set
set chassis aggregated-devices ethernet device-count 8
root@vMX1> show configuration interfaces ae1 | display set
set interfaces ae1 flexible-vlan-tagging # supporta 802.1Q vlan single-tag and dual-tag frames on logical interface
set interfaces ae1 encapsulation flexible-ethernet-services # enable a physical interface to support different type of Ethernet encapsulation at logical interface level; Junos provide two different style of configuration about support to service-provider style and enterprise style. This command support both styles.
set interfaces ae1 aggregated-ether-options minimum-links 2
set interfaces ae1 aggregated-ether-options lacp active
set interfaces ae1 aggregated-ether-options lacp force-up
root@vMX1> show configuration interfaces ge-0/0/0 | display set
set interfaces ge-0/0/0 gigether-options 802.3ad ae1
root@vMX1> show configuration interfaces ge-0/0/1 | display setย ย ย
set interfaces ge-0/0/1 gigether-options 802.3ad ae1
Nota: stessa configurazione su vMX2
root@vMX1> show interfaces terse | match ae1
ge-0/0/0.32767 up up aenet –> ae1.32767
ge-0/0/1.32767 up up aenet –> ae1.32767
ae1 up up
ae1.32767 up up multiservice
root@vMX1> show lacp interfaces
Aggregated interface: ae1
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
root@vMX1> show lacp statistics interfaces ae1
Aggregated interface: ae1
LACP Statistics: LACP Rx LACP Tx Unknown Rx Illegal Rx
ge-0/0/0 2661 2719 0 0
ge-0/0/1 2660 2720 0 0
Esempio di architettura e configurazione

MX960-1:
set interface ae2 description ยซvPC multichassis to Nexusยป
set interface ae2 flexible-vlan-tagging
set interface ae2 encapsulation flexible-ethernet-services
set interface ae2 aggregate-ether-option link-speed 10g
set interface ae2 aggregate-ether-option lacp active
!
set interface xe-1/1/0 gigaether-option 802.3ad ae2
set interface xe-3/1/0 gigaether-option 802.3ad ae2
MX960-2:
set interface ae3 description ยซvPC multichassis to Nexusยป
set interface ae3 flexible-vlan-tagging
set interface ae3 encapsulation flexible-ethernet-services
set interface ae3 aggregate-ether-option link-speed 10g
set interface ae3 aggregate-ether-option lacp active
!
set interface xe-1/1/0 gigaether-option 802.3ad ae3
set interface xe-3/1/0 gigaether-option 802.3ad ae3