路由交换学习第九天:边缘端口&BPDU保护&链路聚合
作者:互联网
配置边缘端口和开启BPDU保护:
[HW-SW3]stp bpdu-protection //SW3开启全局BPDU保护
[HW-SW3]interface GigabitEthernet 0/0/1 //配置g0/0/1口
[HW-SW3-GigabitEthernet0/0/1]stp edged-port disable //不开启边缘端口
[HW-SW3-GigabitEthernet0/0/1]int g 0/0/3 //配置g0/0/3口
[HW-SW3-GigabitEthernet0/0/3]stp edged-port disable //不开启边缘端口
[HW-SW3]stp edged-port default //开启全局边缘端口
***//开启全局bpdu保护前需要把trunk链路不开启边缘端口
[HW-SW3]display cu | i stp
stp edged-port default
stp mode stp
stp bpdu-protection
stp edged-port disable
stp edged-port disable
================================================
静态聚合:
[HW-SW1]int Eth-Trunk 12 //创建Eth-Trunk 12
[HW-SW1-Eth-Trunk12]trunkport g 0/0/5 to 0/0/6 //绑定端口5和6
[HW-SW2]int Eth-Trunk 12 //创建Eth-Trunk 12
[HW-SW2-Eth-Trunk12]trunkport g 0/0/5 to 0/0/6 //绑定端口5和6
[HW-SW2-Eth-Trunk12]shutdown //关闭端口
[HW-SW2-Eth-Trunk12]undo shutdown //开启端口
[HW-SW2-Eth-Trunk12]port link-type trunk //修改Eth-Trunk12为 trunk
[HW-SW2-Eth-Trunk12]port trunk allow-pass vlan all //允许所以VLAN通过
[HW-SW2]dis eth-trunk 12 //查看eth-trunk 12配置信息
Eth-Trunk12's state information is:
WorkingMode: NORMAL Hash arithmetic: According to SIP-XOR-DIP
Least Active-linknumber: 1 Max Bandwidth-affected-linknumber: 8
Operate status: up Number Of Up Port In Trunk: 2
PortName Status Weight
GigabitEthernet0/0/5 Up 1
GigabitEthernet0/0/6 Up 1
标签:Trunk12,第九天,BPDU,端口,HW,SW3,链路,Eth,port 来源: https://blog.51cto.com/63736/2428020