Cisco交换机作业1.9 端口安全

导读:本篇文章讲解 Cisco交换机作业1.9 端口安全,希望对大家有帮助,欢迎收藏,转发!站点地址:www.bmabk.com

结构


新建财务部 153
pc0为内部存储资料的电脑,禁止上外网
pc10可以正常和其他部门联通
switch6——f0/24——switch5——f0/22——switch0

在这里插入图片描述

一、三层交换机设置


改成路由口就能配置ip
no switchport关闭二层接口并启用三层接口

conf t
int f0/22
no switchport
ip address 192.168.153.254 255.255.255.0

二、switch5设置


conf t
int f0/24
shutdown
switchport mode access

复制信任电脑MAC地址

在这里插入图片描述

switchport port-security
switchport port-security maximum 1
switchport port-security mac-address 0010.11EE.9D9E
switchport port-security violation restrict
no shut

三、PC0和PC10设置ip


在这里插入图片描述

四、测试结果


在这里插入图片描述

扩展


switchport port-security :打开端口防护

switchport port-security mac-address (mac地址):信任的mac地址

switchport port-security maximum 5: 允许最高5个MAC地址
.
在这里插入图片描述
switchport port-security vioalation:违规后怎么处理

shutdown:直接关闭

restrict:数据包丢弃并通知管理员

switchport port-security vioalation restrict:数据包全部丢弃

在这里插入图片描述

版权声明:本文内容由互联网用户自发贡献,该文观点仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 举报,一经查实,本站将立刻删除。

文章由极客之音整理,本文链接:https://www.bmabk.com/index.php/post/83750.html

(0)
小半的头像小半

相关推荐

极客之音——专业性很强的中文编程技术网站,欢迎收藏到浏览器,订阅我们!