总结:学习华为交换机端口保护相关配置:含端口保护的简介、作用、注意事项;含创建端口保护组(port protect-group)、添加接口为主用(或备用)接口(protect-group member)、端口保护配置检查(display port protect-group all)相关配置命令;和端口保护配置实例
一、端口保护的概念
1、端口保护的简介
❝
端口保护:将设备上的两个接口组成一个端口保护组,实现主备接口的备份。当主用接口出现异常时,业务及时切换到备用接口上
2、端口保护的作用
❝
端口组的作用:提高设备的可靠性、保证业务的连续性
3、端口保护的注意事项
❝
注意事项①:当主用接口发生故障(状态变为Down时),系统将自动切换业务到备用接口上;当备用接口承载业务后,即使主用接口恢复正常,业务也不会回切到主用接口上,只有在当备用接口发生故障时,才会切换回主用接口上
❝
注意事项②:一个端口保护组中只能包含一个主用接口和一个备用接口
二、配置命令
1、创建端口保护组
1.1 port protect-group
❝
命令:port protect-group ##创建端口保护组
port protect-group 1 ##创建编号为1的端口保护组

2、添加接口到端口保护组中(主用接口)
2.1 protect-group member
❝
命令:protect-group member 接口类型 接口编号 master ##将接口添加到端口保护组中
protect-group member gigabitethernet 0/0/1 master ##将G0/0/1接口添加到端口保护组中,并为主用接口

3、添加接口到端口保护组中(备用接口)
3.1 protect-group member
❝
[ZFB-protect-group1] protect-group member gigabitethernet 0/0/2 standby ##将G0/0/2接口添加到端口保护组中,并为备用接口

4、端口保护配置检查
4.1display port protect-group all
❝
display port protect-group all ##端口保护配置检查

4.2 输出信息详解
|
|
|
---|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
三、配置实例
1、端口保护组配置实例
1.1 创建编号为1的端口保护组,并将G0/0/1作为主用接口、将G0/0/2作为备用接口
<ZFB> system-view
[ZFB] port protect-group 1
[ZFB-protect-group1] protect-group member gigabitethernet 0/0/1 master
[ZFB-protect-group1] protect-group member gigabitethernet 0/0/2 standby

发表回复