mac电脑查看运行程序:创建并应用端口访问列表

来源:百度文库 编辑:偶看新闻 时间:2024/04/28 06:40:25
创建并应用端口访问列表
在VLAN或二层接口上,可以使用MAC地址和MAC扩展ACL名称过滤非IP地址通信,从而保障企业网络访问安全,拒绝非授权用户对敏感部门的访问。配置过程与其他扩展名称ACL相似。 1.创建端口扩展访问列表名称
  
Switch# configure terminal  进入全局配置模式。
Switch(config)# mac access-list extended name  为扩展MAC地址列表定义一个名称,进入扩展MAC地址列表配置模式。


Switch (config-ext-mac)l# {deny | permit} {any | host source MAC address | source MAC address mask}                                        {any | host destination MAC address | destination MAC address mask}
                                      定义允许或拒绝的源MAC地址或目的MAC地址。使用Host,可以指定特定主机的MAC地址;使用掩码,可以指                                       定多个主机MAC地址。
Switch(config-ext-mac)# end
Switch# show access-lists name
Switch# copy running-config startup-config

2.将端口访问列表应用到二层接口
  
Switch# configure terminal
Switch(config)#interface interface-id
Switch(config-if)# mac access-group {name} {in}  将MAC访问列表应用到二层接口。注意,该命令不适用于EtherChannle。
Switch(config-if)# end
Switch# show mac access-group [interface interface-id]
Switch# copy running-config startup-config