




版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、【官方提供】【实验文档】【实验 0021】【交换机的端口安全配置】【实验名称】交换机的端口安全配置。【实验目的】掌握交换机的端口安全功能,控制用户的安全接入。【背景描述】你是一个公司的网络管理员,公司要求对网络进行严格控制。为了防止公司内部用 户的IP地址冲突,防止公司内部的网络攻击和破坏行为。为每一位员工分配了固定的IP地址,并且限制只允许公司员工主机可以使用网络,不得随意连接其他主机。例如:某员工分配的IP 地址是172.16.1.55/24,主机 MAC地址是00-06-1B-DE-13-B4。该主机连接在1台2126G上边。【技术原理】交换机端口安全功能,是指针对交换机的端口进行安全属
2、性的配置,从而控制用户 的安全接入。交换机端口安全主要有两种类项:一是限制交换机端口的最大连接数,二是针对交换机端口进行 MAC地址、IP地址的绑定。限制交换机端口的最大连接数可以控制交换机端口下连的主机数,并防止用户进行 恶意的ARP欺骗。交换机端口的地址绑定,可以针对 IP地址、MAC地址、IP + MAC进行灵活的绑定。 可以实现对用户进行严格的控制。保证用户的安全接入和防止常见的内网的网络攻 击。女口 ARP欺骗、IP、MAC地址欺骗,IP地址攻击等。配置了交换机的端口安全功能后,当实际应用超出配置的要求,将产生一个安全违例,产生安全违例的处理方式有 3种:protect当安全地址个数
3、满后,安全端口将丢弃未知名地址(不是该端口的安全地址中的任何一个)的包。restrict当违例产生时,将发送一个 Trap通知。shutdown当违例产生时,将关闭端口并发送一个 Trap通知。当端口因为违例而被关闭后,在全局配置模式下使用命令errdisable recovery 来将接口从错误状态中恢复过来。【实现功能】针对交换机的所有端口,配置最大连接数为1,针对PC1主机的接口进行IP + MAC地址绑定。【实验设备】S2126G交换机(1台),PC( 1台)、直连网线(1条)【实验拓扑】PCA图26【实验步骤】步骤1.配置交换机端口的最大连接数限制。Switch#co nfigure
4、 termi nalSwitch(config)#interfacerange fastethernet 0/1-23!进行一组端口的配置模式Switch(config-if-range)#switchport port-security!开启交换机的端口安全功能Switch(c on fig-if-ra nge)#switchport port-secruity maximum 1!配置端口的最大连接数为1Switch(config-if-range)#switchport port-secruity violation shutdown!配置安全违例的处理方式为shutdown验证测试:查
5、看交换机的端口安全配置。Switch#show port-securitySecure Port MaxSecureAddr(co unt) Curre ntAddr(co unt) Security Actio nFa0/110Shutdow nFa0/210Shutdow nFa0/310Shutdow nFa0/410Shutdow nFa0/510Shutdow nFaO/61Shutdow nOFaO/71Shutdow nOFaO/81Shutdow nOFaO/91Shutdow nOFa0/101Shutdow nOFaO/111Shutdow nOFaO/121Shutdow
6、 nOFaO/131Shutdow nOFaO/141Shutdow nOFaO/151Shutdow nOFaO/161Shutdow nOFaO/171Shutdow nOFaO/181Shutdow nOFaO/191Shutdow nOFaO/2O1Shutdow nOFaO/211Shutdow nOFaO/221Shutdow nOFaO/231OShutdow n步骤2.配置交换机端口的地址绑定。查看主机的IP和MA(地址信息在主机上打开CMD命令提示符窗口,执行ipconfig /all命令。!配置IP地址和MAC地址的绑定AddressIPRema ining Age( mi
7、ns)图27配置交换机端口的地址绑定Switch#configure terminalSwitch(c on fig)#i nterfacefastether net 0/3Switch(con fig-if)#switchport port-securitySwitch(c on fig-if)#switchport port-security mac-address 0006.1bde.13b4 ip-address 172.16.1.55验证测试:查看地址安全绑定配置。Switch#show port-security addressVla nMacAddressTypePort0006
8、.1bde.13b4172.16.1.55Con figuredFa0/3【注意事项】1、 交换机端口安全功能只能在ACCES接 口进行配置。2、 交换机最大连接数限制取值范围是1128,默认是128。3、 交换机最大连接数限制默认的处理方式是protect 。【参考配置】Switch#show running-configSystem software version : 1.61(4) Build Sep9 2005 ReleaseBuild ing con figurati on.Current configuration : 3556 bytes!vers ion 1.0!host n
9、ame Switchvia n 1!in terface fastEther net 0/1switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/2switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther
10、 net 0/3switchport port-securityswitchport port-securityviolati on shutdow n172.16.1.55switchport port-security maximum 1switchport port-security mac-address 0006.1bde.13b4 ip-address!in terface fastEther net 0/4switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-secu
11、rity maximum 1 in terface fastEther net 0/5switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/6switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther ne
12、t 0/7switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/8switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/9switchport port-securityswitchpor
13、t port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/10switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/11switchport port-securityswitchport port-securityviolati on shutdow n
14、in terface fastEthernet 0/12switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEthernet 0/13switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/14switchpor
15、t port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/15switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/16switchport port-securityswitchport port-secur
16、ityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/17switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/18switchport port-securityswitchport port-securityviolati on shutdow nswitchport po
17、rt-security maximum 1in terface fastEther net 0/19switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEther net 0/20switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security maximum 1!in terface fastEthernet 0/21switchport port-securityswitchport port-securityviolati on shutdow nswitchport port-security max
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 工作与生活场景下的智能穿戴需求分析
- 工作中的心理调适与健康管理
- 工作中的时间管理与优化
- 工作场所心理健康关注与干预措施
- 工业设备涂装的耐腐蚀性研究
- 工作分析与职位设置
- 工作环境创新与员工工作动力提升
- 工作报告的炫酷动态效果制作
- 工程师必 备的数据分析技能
- 工程质量管理与工程验收标准研究
- 结核病分子诊断
- 餐饮服务行业食品安全管理人员知识考试题库(附答案)
- 太阳系中的有趣科学学习通超星期末考试答案章节答案2024年
- 上海市幼儿园幼小衔接活动指导意见(修订稿)
- 培训学校收费和退费管理制度
- 法社会学教程(第三版)教学
- 国内外高等教育教材比较研究课题
- 浙江省绍兴市诸暨市2023-2024学年五年级下学期期末数学试卷
- 煤矿调度智能化培训课件
- 基于PLC的啤酒发酵自动控制系统
- 重庆市沙坪坝区2022-2023学年八年级下学期期末英语试题
评论
0/150
提交评论