Thursday, May 23, 2024

思科交换机在指定接口拦截特定MAC地址

mac access-list extend Source-Mac-All-Zero

 deny host 0000.0000.0000

 permit any any

 

 

interface FastEthernet0/30

 switchport access vlan 14

 switchport mode access

 mac access-group Source-Mac-All-Zero in


参考:

https://community.cisco.com/t5/switching/how-to-block-range-of-mac-addresses-in-cisco-switches-routers/td-p/4317895

No comments:

Post a Comment

华为S5720交换机把syslog输出到日志主机

# 启用信息管理功能 info-center enable # 指定模块、通道名称、日志级别 (default指所有模块) info-center source default channel 2 log level informational # 指定日志输出源接口 info-...