锐捷交换机端口配置问题

来源:百度知道 编辑:UC知道 时间:2024/05/20 02:02:26
配置:S3760A上f0/1接口,允许通过的MAC为5,WEB机的MAC为固定安全地址,其它为学习安全,老化时间为8分钟(只用于自动学习地址),违例为ROTECT。

求大家给个配置代码,实在是不会呀

步骤:
Switch# configure terminal
!进入全局配置模式
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#mac-address-table aging-time 8 交换机老化时间
Switch(config)#int fa 0/1
Switch(config-if)#
Switch(config-if)# switchport mode access
!把端口模式改为access口
Switch(config-if)# switchport port-security
!启用端口安全
Switch(config-if)# switchport port-security maximum 5
!最多允许5个mac地址,最大128
Switch(config-if)# switchport port-security mac-address 00d0.f800.073c
!端口和mac地址的绑定
Switch(config-if)# switchport port-security mac-address 00d0.f800.073c ip-address 192.168.12.202
!端口+mac地址+ip地址绑定
Switch(config-if)# end 退出
Switch#wr 保存配置