1.简单二层架构
1.1 拓扑图

1.2 配置
1.2.1 Leaf1配置
system-mac必须配置,否则会有一个node处于unknown状态,即使配置主节点的mac,主节点也需要配置system-mac为自己的mac
## M-LAG配置
[Leaf1] m-lag system-mac 0001-0001-0001 # 手动设置MAC,通常建议使用主设备的系统MAC,另一台设备配置需相同
[Leaf1] m-lag system-number 1 # 数字小的成为主设备,
[Leaf1] m-lag system-priority 130 # 两台的优先级需要一样
[Leaf1] m-lag mad exclude interface GigabitEthernet1/0/13 # 配置保留接口,这个接口会在脑裂后不会被关闭
[Leaf1] m-lag consistency-check disable # 模拟器中配置完成后,会报一致性检测失败的错,导致接口起不来,使用这条命令能解决,但生产环境中慎用
## keepalive链路配置
[Leaf1] interface g1/0/13
[Leaf1-GigabitEthernet1/0/13]ip address 10.1.1.1 255.255.255.252
[Leaf1] m-lag keepalive ip destination 10.1.1.2 source 10.1.1.1 # 配置DAD检测接口
## peer-link接口配置
[Leaf1] interface Bridge-Aggregation10
[Leaf1-Bridge-Aggregation10] link-aggregation mode dynamic
[Leaf1]interface GigabitEthernet 1/0/11
[Leaf1-GigabitEthernet1/0/11] port link-aggregation group 10
[Leaf1]interface GigabitEthernet 1/0/12
[Leaf1-GigabitEthernet1/0/12] port link-aggregation group 10
[Leaf1] interface Bridge-Aggregation10
[Leaf1-Bridge-Aggregation10] port m-lag peer-link 1
## M-LAG接口配置
[Leaf1]int Bridge-Aggregation 5
[Leaf1-Bridge-Aggregation5] port link-type trunk
[Leaf1-Bridge-Aggregation5] port trunk permit vlan all
[Leaf1-Bridge-Aggregation5] link-aggregation mode dynamic
[Leaf1]interface GigabitEthernet 1/0/1
[Leaf1-GigabitEthernet1/0/1] port link-aggregation group 5
[Leaf1]int Bridge-Aggregation 5
[Leaf1-Bridge-Aggregation5] port m-lag group 5
华为的做法中,peer-link需要关闭STP
1.2.2 Leaf2配置
Leaf2和Leaf1的配置只有细微

最低0.47元/天 解锁文章
1122

被折叠的 条评论
为什么被折叠?



