1、登录华为交换机,进入系统视图模式。
3、在接口视图下开启端口安全功能。命令:port-security enable
5、配置端口功能的保护动作。命令:port-security protect-action protect