交换机端口安全配置.doc_第1页
交换机端口安全配置.doc_第2页
交换机端口安全配置.doc_第3页
交换机端口安全配置.doc_第4页
交换机端口安全配置.doc_第5页
已阅读5页,还剩3页未读 继续免费阅读

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

【官方提供】【实验文档】【实验0021】【交换机的端口安全配置】【实验名称】交换机的端口安全配置。【实验目的】掌握交换机的端口安全功能,控制用户的安全接入。【背景描述】你是一个公司的网络管理员,公司要求对网络进行严格控制。为了防止公司内部用户的IP地址冲突,防止公司内部的网络攻击和破坏行为。为每一位员工分配了固定的IP地址,并且限制只允许公司员工主机可以使用网络,不得随意连接其他主机。例如:某员工分配的IP地址是172.16.1.55/24,主机MAC地址是00-06-1B-DE-13-B4。该主机连接在1台2126G上边。【技术原理】交换机端口安全功能,是指针对交换机的端口进行安全属性的配置,从而控制用户的安全接入。交换机端口安全主要有两种类项:一是限制交换机端口的最大连接数,二是针对交换机端口进行MAC地址、IP地址的绑定。限制交换机端口的最大连接数可以控制交换机端口下连的主机数,并防止用户进行恶意的ARP欺骗。交换机端口的地址绑定,可以针对IP地址、MAC地址、IPMAC进行灵活的绑定。可以实现对用户进行严格的控制。保证用户的安全接入和防止常见的内网的网络攻击。如ARP欺骗、IP、MAC地址欺骗,IP地址攻击等。配置了交换机的端口安全功能后,当实际应用超出配置的要求,将产生一个安全违例,产生安全违例的处理方式有3种: protect当安全地址个数满后,安全端口将丢弃未知名地址(不是该端口的安全地址中的任何一个)的包。 restrict当违例产生时,将发送一个Trap通知。 shutdown当违例产生时,将关闭端口并发送一个Trap通知。当端口因为违例而被关闭后,在全局配置模式下使用命令errdisable recovery来将接口从错误状态中恢复过来。【实现功能】针对交换机的所有端口,配置最大连接数为1,针对PC1主机的接口进行IPMAC地址绑定。【实验设备】S2126G交换机(1台),PC(1台)、直连网线(1条)【实验拓扑】无标题.jpg (7.45 KB)2008-11-14 13:46图 26【实验步骤】步骤1. 配置交换机端口的最大连接数限制。Switch#configure terminalSwitch(config)#interface range fastethernet 0/1-23 ! 进行一组端口的配置模式Switch(config-if-range)#switchport port-security !开启交换机的端口安全功能Switch(config-if-range)#switchport port-secruity maximum 1 ! 配置端口的最大连接数为1Switch(config-if-range)#switchport port-secruity violation shutdown !配置安全违例的处理方式为shutdown验证测试:查看交换机的端口安全配置。Switch#show port-securitySecure PortMaxSecureAddr(count) CurrentAddr(count) Security Action-Fa0/1 1 0 ShutdownFa0/2 1 0 ShutdownFa0/3 1 0 ShutdownFa0/4 1 0 ShutdownFa0/5 1 0 ShutdownFa0/6 1 0 ShutdownFa0/7 1 0 ShutdownFa0/8 1 0 ShutdownFa0/9 1 0 ShutdownFa0/10 1 0 ShutdownFa0/11 1 0 ShutdownFa0/12 1 0 ShutdownFa0/13 1 0 ShutdownFa0/14 1 0 ShutdownFa0/15 1 0 ShutdownFa0/16 1 0 ShutdownFa0/17 1 0 ShutdownFa0/18 1 0 ShutdownFa0/19 1 0 ShutdownFa0/20 1 0 ShutdownFa0/21 1 0 ShutdownFa0/22 1 0 ShutdownFa0/23 1 0 Shutdown步骤2. 配置交换机端口的地址绑定。 R 查看主机的IP和MAC地址信息在主机上打开CMD命令提示符窗口,执行ipconfig /all命令。无标题1.jpg (53.77 KB)2008-11-14 13:46图 27 R 配置交换机端口的地址绑定Switch#configure terminalSwitch(config)#interfacefastethernet 0/3Switch(config-if)#switchport port-securitySwitch(config-if)#switchport port-security mac-address0006.1bde.13b4 ip-address 172.16.1.55 !配置IP地址和MAC地址的绑定验证测试:查看地址安全绑定配置。Switch#show port-security addressVlan Mac Address IP Address Type Port Remaining Age(mins)-1 0006.1bde.13b4172.16.1.55 ConfiguredFa0/3【注意事项】1、交换机端口安全功能只能在ACCESS接口进行配置。2、交换机最大连接数限制取值范围是1128,默认是128。3、交换机最大连接数限制默认的处理方式是protect。【参考配置】Switch#show running-configSystem software version : 1.61(4) Build Sep9 2005 ReleaseBuilding configuration.Current configuration : 3556 bytes!version 1.0!hostname Switchvlan 1!interface fastEthernet 0/1switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/2switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/3switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1switchport port-security mac-address 0006.1bde.13b4 ip-address 172.16.1.55!interface fastEthernet 0/4switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/5switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/6switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/7switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/8switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/9switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/10switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/11switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/12switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/13switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/14switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/15switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/16switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/17switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/18switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/19switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/20switchport port-securityswitchport port-securityviolation shutdownswitchport port-security maximum 1!interface fastEthernet 0/21switchport port-securityswitchport port-securityviolation shutdownswitchport port-sec

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

最新文档

评论

0/150

提交评论