侧边栏壁纸
博主头像
落叶人生博主等级

走进秋风,寻找秋天的落叶

  • 累计撰写 130562 篇文章
  • 累计创建 28 个标签
  • 累计收到 9 条评论
标签搜索

目 录CONTENT

文章目录

路由交换学习第九天:边缘端口&BPDU保护&链路聚合

2023-03-10 星期五 / 0 评论 / 0 点赞 / 73 阅读 / 2052 字

配置边缘端口和开启BPDU保护:[HW-SW3]stp bpdu-protection //SW3开启全局BPDU保护[HW-SW3]interface GigabitEthernet 0/0

.

配置边缘端口和开启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

.

广告 广告

评论区