首页 / 配置案例 / 锐捷数据中心交换机配置 M-LAG 跨设备链路聚合
适用型号:锐捷数据中心交换机(典型配置案例 V1.4)
基于当前【参考资料】,无法给出一份“完整可部署”的锐捷数据中心交换机 M-LAG 跨设备链路聚合配置;资料只包含单级/双级典型案例的部分命令,且 Leaf2、Peer-Link 完整配置、验证命令、常见报错等未完整覆盖。若需要完整配置,请补充设备型号/软件版本。以下仅按资料整理可检索到的配置步骤与命令片段。
按客户规划的 IGP 部署,例如 OSPF / RIP / ISIS,实现各设备环回口地址三层互通;资料中该部分未展开[4]。
以下为单级 M-LAG 案例中 Leaf1 的全局 M-LAG 配置[4]:
Leaf1> enable
Leaf1# configure terminal
Leaf1(config)# vrf definition VRF-1
Leaf1(config-vrf)# exit
Leaf1(config)# interface vlan 4094
Leaf1(config-if-VLAN 4094)# vrf forwarding VRF-1
Leaf1(config-if-VLAN 4094)# exit
Leaf1(config)# vap domain 1
Leaf1(config-vap-domain)# data-sync local 2.2.2.1 peer 2.2.2.2 vrf VRF-1
Leaf1(config-vap-domain)# peer-keepalive local 2.2.2.9 peer 2.2.2.10 vrf VRF-1
Leaf1(config-vap-domain)# priority 6
Leaf1(config-vap-domain)# dual-active auto recovery
Leaf1(config-vap-domain)# recover up-delay 120 none-vap 60
Leaf1(config-vap-domain)# no fast-convergence
Leaf1(config-vap-domain)# exit
说明:
# Peer-lin... 截断,未完整展示 Peer-Link 相关配置[4]。资料中该段首行显示为 e aggregateport 105,疑似进入 AggregatePort 105 接口视图的命令被截断;资料未完整显示进入该接口视图的命令行[2]。
可确认的 AggregatePort 105 接口配置如下[2]:
Leaf1(config-if-AggregatePort 105)# switchport mode trunk
Leaf1(config-if-AggregatePort 105)# vap 105
Leaf1(config-if-AggregatePort 105)# switchport trunk allowed vlan only 1101,1102,3001,3002
Leaf1(config-if-AggregatePort 105)# switchport trunk allowed vlan remove 4094
Leaf1(config-if-AggregatePort 105)# carrier-delay up 2 down 0
说明:
vap 105 用于将该聚合口加入 M-LAG/vAP 逻辑[2]。switchport trunk allowed vlan only 放行,并移除 VLAN 4094[2]。carrier-delay up 2 down 0 用于接口载波延迟控制[2]。单级 M-LAG 案例中 Leaf1 的链路检测配置如下[2]:
Leaf1(config)# link state track 1 up-delay 60
Leaf1(config)# interface tengigabitethernet 3/1
Leaf1(config-if-TenGigabitEthernet 3/1)# link state group 1 downstream
Leaf1(config-if-TenGigabitEthernet 3/1)# exit
Leaf1(config)# interface tengigabitethernet 3/48
Leaf1(config-if-TenGigabitEthernet 3/48)# link state group 1 upstream
Leaf1(config-if-TenGigabitEthernet 3/48)# carrier-delay up 2 down 0
说明:
link state track 1 up-delay 60 配置链路状态跟踪组及上行延迟[2]。downstream,上联接口配置为 upstream[2]。资料仅显示:
(2) 在Leaf2上配置如下命令。
# 配置全局M-LAG。
Leaf2>
后续命令未给出[2]。 因此:手册中未检索到完整 Leaf2 M-LAG 配置命令,请换关键词或补充设备型号/软件版本。
双级 M-LAG 案例同样要求先根据客户规划的 IGP 部署,例如 OSPF / RIP / ISIS,实现各设备环回口地址三层互通;资料中该部分未展开[3]。
以下为双级 M-LAG 案例中 Spine1 的全局 M-LAG 配置[3]:
Spine1> enable
Spine1# configure terminal
Spine1(config)# vrf definition VRF-1
Spine1(config-vrf)# exit
Spine1(config)# interface vlan 4094
Spine1(config-if-VLAN 4094)# vrf forwarding VRF-1
Spine1(config-if-VLAN 4094)# exit
Spine1(config)# vap domain 1
Spine1(config-vap-domain)# data-sync local 2.2.2.1 peer 2.2.2.2 vrf VRF-1
Spine1(config-vap-domain)# peer-keepalive local 2.2.2.9 peer 2.2.2.10 vrf VRF-1
Spine1(config-vap-domain)# priority 6
Spine1(config-vap-domain)# dual-active auto recovery
Spine1(config-vap-domain)# recover up-delay 120 none-vap 60
说明:
资料中双级案例出现如下 Leaf1 三层聚合口配置[1]:
Leaf1(config)# interface aggregateport 2
Leaf1(config-if-AggregatePort 2)# no switchport
Leaf1(config-if-AggregatePort 2)# ip address 2.2.2.9 255.255.255.252
Leaf1(config-if-AggregatePort 2)# vap error-down except
说明:
interface aggregateport 2 被配置为三层接口,并配置 IP 地址[1]。vap error-down except 用于该接口的 vAP 异常 down 例外处理[1]。interface aggregateport 2,但内容被截断[1]。资料中注释明确该部分为“配置 M-LAG 成员口”[1]:
Leaf1(config)# interface tengigabitethernet 0/1
Leaf1(config-if-Tengigabitethernet 0/1)# port-group 1 mode active
Leaf1(config-if-Tengigabitethernet 0/1)# exit
Leaf1(config)# interface aggregateport 1
Leaf1(config-if-AggregatePort 1)# switchport mode trunk
Leaf1(config-if-AggregatePort 1)# vap 1
Leaf1(config-if-AggregatePort 1)# exit
Leaf1(config)# interface tengigabitethernet 0/2
Leaf1(config-if-Tengigabitethernet 0/2)# port-group 2 mode active
Leaf1(config-if-Tengigabitethernet 0/2)# exit
说明:
port-group <编号> mode active 加入聚合组[1]。vap 1 加入 M-LAG/vAP[1]。资料中还出现如下后续片段[6]:
Leaf1(config)# interface aggregateport 2
Leaf1(config-if-AggregatePort 2)# switchport mode trunk
Leaf1(config-if-AggregatePort 2)# vap 2
Leaf1(config-if-AggregatePort 2)# exit
Leaf1(config)# interface range tengigabitethernet 0/47-48
Leaf1(config-if-range)# port-group 101 mode active
Leaf1(config-if-range)# exit
Leaf1(config)# interface aggregateport 101
Leaf1(config-if-AggregatePort 101)# switchport mode trunk
Leaf1(config-if-AggregatePort 101)# vap 101
Leaf1(config)# link state track 1 up-delay 60
Leaf1(config)# interface range tengigabitethernet 0/1-2
Leaf1(config-if-range)# link state group 1 downstream
Leaf1(config-if-range)# exit
Leaf1(config)# interface range TenGigabitEthernet 0/47-48
说明:
interface range tengigabitethernet 0/47-48 通过 port-group 101 mode active 加入聚合组[6]。vap 101 加入 M-LAG/vAP[6]。link state track 1 up-delay 60 和下联接口 link state group 1 downstream[6]。interface range TenGigabitEthernet 0/47-48 后截断,未显示完整后续命令[6]。双级案例资料中,AggregatePort 2 出现过两种不同配置方向:
Leaf1(config-if-AggregatePort 2)# no switchport
Leaf1(config-if-AggregatePort 2)# ip address 2.2.2.9 255.255.255.252
Leaf1(config-if-AggregatePort 2)# vap error-down except
来源[1]。
Leaf1(config-if-AggregatePort 2)# switchport mode trunk
Leaf1(config-if-AggregatePort 2)# vap 2
来源[6]。
由于资料片段不完整,不能判断两者是否属于同一设备、同一阶段或不同案例上下文。不要直接合并执行,需结合完整手册、设备型号和软件版本确认。
手册中未检索到相关内容,请换关键词或补充设备型号/软件版本。
手册中未检索到相关内容,请换关键词或补充设备型号/软件版本。
vap domain,并包含 data-sync、peer-keepalive、priority、dual-active auto recovery、recover up-delay 等命令[4][3]。no fast-convergence;双级 Spine1 片段未显示该命令,不能跨案例直接套用[4][3]。port-group <编号> mode active 加入聚合[1][6]。vap <编号>,例如 vap 1、vap 2、vap 101、vap 105[1][6][2]。1101,1102,3001,3002,并移除 4094[2]。link state track、link state group downstream/upstream 以及 carrier-delay[2][6]。【参考出处】
[1] 锐捷数据中心交换机 典型配置案例 (V1.4).pdf / 第 492 页 > 典型配置案例 双级 M-LAG 案例配置 / 第 492 页 · 行 1-45 [2] 锐捷数据中心交换机 典型配置案例 (V1.4).pdf / 第 481 页 > 典型配置案例 单级 M-LAG 案例配置 / 第 481 页 · 行 1-45 [3] 锐捷数据中心交换机 典型配置案例 (V1.4).pdf / 第 488 页 > 典型配置案例 双级 M-LAG 案例配置 / 第 488 页 · 行 1-42 [4] 锐捷数据中心交换机 典型配置案例 (V1.4).pdf / 第 480 页 > 典型配置案例 单级 M-LAG 案例配置 / 第 480 页 · 行 1-43 [5] 锐捷数据中心交换机 典型配置案例 (V1.4).pdf / 第 478 页 > 典型配置案例 单级 M-LAG 案例配置 / 第 478 页 · 行 1-40 [6] 锐捷数据中心交换机 典型配置案例 (V1.4).pdf / 第 492 页 > 典型配置案例 双级 M-LAG 案例配置 / 第 492 页 · 行 1-45
更多配置问题可进入 BOOKRAG 控制台 选择对应型号直接提问,回答基于该型号官方手册原文。