Lab03 spine1/2 M-LAG
Spine1、spine2的初始配置
1、 spine1、spine2做M-LAG,10GE1/0/11 做peer link ,主设备优先级150,生成树采用v-stp模式
2、 在spine1、2上配置与FW1、2的M-LAG以V-stp的方式配置。在spine1、2及SDN-FW1、2上开启LLDP协议,考试预配置已开启,无需配置。
3、 Spine1、spine2之间为南北向多活网关。VTEP ip为10.45.45.45。虚拟MAC为0000-5e00-1002。
配置思路
1、STP开启
2、DFS组配置
3、peer-link配置
4、m-lag配置
5、对端端口、聚合配置
6、聚合状态检查
1、 Spine1、spine2初始配置及DFS-group配置
Spine1
Sysname Spine-1
Lldp enable
Spine2
Sysname Spine-2
Lldp enable
通过Dis lldp nei brief查看下spine1和spine2之间互联线缆。
Spine1
Inter 10G 1/0/17
Undo portswitch
Ip add 172.16.1.45 30
Spine2
Inter 10ge 1/0/17
Undo portswitch
Ip add 172.16.1.46 30
Ping 172.16.1.45 互联测试
Spine1
Dfs-group 1
Source ip 172.16.1.45
Priority 150
Spine2
Dfs-group 1
Source ip 172.16.1.46
2、 Peer link配置
Spine1
Inter eth-trunk 1
Trunkport 10Ge 1/0/18
Mode lacp-static
Peer-link 1
Spine2
Inter eth-trunk 1
Trunkport 10GE1/0/18
Mode lacp-static
Peer-link 1
Spine1
Stp mode rstp
Stp v-stp enable
Spine2
Stp mode rstp
Stp v-stp enable
3、 M-lag成员接口配置
Spine1
Inter eth-trunk2
Trunkport 10GE1/0/6
Mode lacp-static
Dfs-group 1 m-lag 1
Port link-type trunk
Undo port trunk allow vlan 1
Spine2
Inter eth-trunk 2
Trunkport 10GE1/0/6
Mode lacp-static
Dfs-group 1 m-lag 1
Port link-type trunk
Undo port trunk allow vlan 1
Spine1
Inter eth-trunk3
Trunkport 10GE1/0/7
Mode lacp-static
Dfs-group 1 m-lag 2
Port link-type trunk
Undo port trunk allow vlan 1
Spine2
Inter eth-trunk 3
Trunkport 10GE1/0/7
Mode lacp-static
Dfs-group 1 m-lag 2
Port link-type trunk
Undo port trunk allow vlan 1
Spine1、spine2与Internet路由器的M-LAG成员口,要创建vlan 1499
Spine1
Vlan batch 1499
Inter eth-trunk4
Trunkport 10GE1/0/8
Mode lacp-static
Dfs-group 1 m-lag 3
Port link-type trunk
Undo port trunk allow vlan 1
Spine2
Vlan batch 1499
Inter eth-trunk 4
Trunkport 10GE1/0/8
Mode lacp-static
Dfs-group 1 m-lag 3
Port link-type trunk
Undo port trunk allow vlan 1
4、 防火墙配置
Admin/Admin@123 防火墙第一次登陆要更改密码,建议更改成Huawei@123
FW1
Sysname SDN-FW1
Lldp enable
FW2
Sysname SDN-FW2
Lldp enable
FW1
Dis lldp nei list 查看互联接口
FW1
Inter eth-trunk 1
Portswitch
Trunkport G1/0/3 1/0/4
Mode lacp-static
Port link-type trunk
Undo port trunk allow vlan 1
FW2
Inter eth-trunk 1
Portswitch
Trunkport G1/0/3 1/0/4
Mode lacp-static
Port link-type trunk
Undo port trunk allow vlan 1
Dis eth-trunk 1 查看聚合状态