主设备配置如下:
Keepalive链路
interface smartgroup1023 //用作MC-LAG的Keepalive链路接口
switch attribute disable
yes
description For_Keepalived
exit
interface xgei-0/1/1/47
switch attribute disable
yes
description For_Keepalived
exit
interface xgei-0/1/1/48
switch attribute disable
yes
description For_Keepalived
exit
smartgroup fast-switch 1023 enable //开启smartgroup口快速切换功能
lacp
interface smartgroup1023
lacp mode 802.3ad
lacp fast respond //lacp快速收敛
exit
interface xgei-0/1/1/47
smartgroup 1023 mode active
exit
interface xgei-0/1/1/48
smartgroup 1023 mode active
exit
exit
ip vrf keepalive
rd 1:1
address-family ipv4
exit
exit
interface smartgroup1023 //配置keepalive链路的三层接口地址
ip vrf forwarding keepalive
ip address 1.1.1.1 255.255.255.252
exit
samgr
track zte interface smartgroup1023
exit
Peer-Link链路
interface smartgroup1024
description For_PeerLink
exit
interface xlgei-0/1/1/53
description For_PeerLink
exit
interface xlgei-0/1/1/54
description For_PeerLink
exit
smartgroup fast-switch 1024 enable //开启smartgroup口快速切换功能
lacp
interface smartgroup1024
lacp mode 802.3ad
lacp fast respond
exit
interface xlgei-0/1/1/53
smartgroup 1024 mode active
exit
interface xlgei-0/1/1/54
smartgroup 1024 mode active
exit
exit
lacp peer-link smartgroup1024 // 将smartgroup1024设置为peerlink
exit
exit
switchvlan-configuration
interface smartgroup1024
switchport mode trunk
switchport trunk vlan xx //peer-link透传下行业务VLAN
switchport trunk native vlan 4094 //将ICCP通道使用的VLAN作为本地vlan
acceptable frame types tag
exit
exit
iccp peerlink vlan 4094
interface vlan 4094
ip address 1.1.1.5 255.255.255.252
exit
MC-LAG配置
mpls ldp instance 1
router-id 1.1.1.5
exit
redundancy interchassis group 1 //配置RG组,用于TOR链路同步mac表项,每一个RG组绑定10个SG。
peer 1.1.1.6
apply mac //表明这个rg会用于同步mac
apply arp //表明这个rg会用于同步arp
apply nd //表明这个rg会用于同步nd
apply stp //表明这个rg会用于同步stp
exit
redundancy interchassis group 2 //配置RG组,用于TOR链路同步mac表项,每一个RG组绑定10个SG。
peer 1.1.1.6
apply mac //表明这个rg会用于同步mac
apply arp //表明这个rg会用于同步arp
apply nd //表明这个rg会用于同步nd
apply stp //表