交换机的端口安全配置汇总

上传人:1824****985 文档编号:278349112 上传时间:2022-04-17 格式:DOCX 页数:12 大小:13.17KB
返回 下载 相关 举报
交换机的端口安全配置汇总_第1页
第1页 / 共12页
交换机的端口安全配置汇总_第2页
第2页 / 共12页
交换机的端口安全配置汇总_第3页
第3页 / 共12页
交换机的端口安全配置汇总_第4页
第4页 / 共12页
交换机的端口安全配置汇总_第5页
第5页 / 共12页
点击查看更多>>
资源描述

《交换机的端口安全配置汇总》由会员分享,可在线阅读,更多相关《交换机的端口安全配置汇总(12页珍藏版)》请在金锄头文库上搜索。

1、交换机的端口安全配置 交换机的端口安全配置。 掌握交换机的端口安全功能,控制用户的安全接入。 你是一个公司的网络管理员,公司要求对网络进行严格控制。为了防止公司内部用户的IP 地址冲突,防止公司内部的网络攻击和破坏行为。为每一位员工分配了固定的IP地址,并且限制只允许公司员工主机可以使用网络,不得随意连接其他主机。例如:某员工分配的IP地址是172.16.1.55/24,主机MAC地址是00-06-1B-DE-13-B4。该主机连接在1台2126G 上边。 交换机端口安全功能,是指针对交换机的端口进行安全属性的配置,从而控制用户的安全接入。交换机端口安全主要有两种类项:一是限制交换机端口的最大

2、连接数,二是针对交换机端口进行MAC地址、IP地址的绑定。 限制交换机端口的最大连接数可以控制交换机端口下连的主机数,并防止用户进行恶意的ARP欺骗。 交换机端口的地址绑定,可以针对IP地址、MAC地址、IPMAC进行灵活的绑定。可以实现对用户进行严格的控制。保证用户的安全接入和防止常见的内网的网络攻击。如ARP欺骗、IP、MAC地址欺骗,IP地址攻击等。 配置了交换机的端口安全功能后,当实际应用超出配置的要求,将产生一个安全违例,产生安全违例的处理方式有3种: protect 当安全地址个数满后,安全端口将丢弃未知名地址(不是该端口的安全地址中的任何一个)的包。 restrict 当违例产生

3、时,将发送一个Trap通知。 shutdown 当违例产生时,将关闭端口并发送一个Trap通知。 当端口因为违例而被关闭后,在全局配置模式下使用命令errdisable recovery来将接口从错误状态中恢复过来。 针对交换机的所有端口,配置最大连接数为1,针对PC1主机的接口进行IPMAC地址绑定。 S2126G交换机(1台),PC(1台)、直连网线(1条) 图 26 步骤1. 配置交换机端口的最大连接数限制。 Switch#configure terminal Switch(config)#interface range fastethernet 0/1-23 ! 进行一组端口的配置模式

4、Switch(config-if-range)#switchport port-security !开启交换机的端口安全功能 Switch(config-if-range)#switchport port-secruity maximum 1 ! 配置端口的最大连接数为1 Switch(config-if-range)#switchport port-secruity violation shutdown !配置安全违例的处理方式为shutdown 验证测试:查看交换机的端口安全配置。 Switch#show port-security Secure Port MaxSecureAddr(co

5、unt) CurrentAddr(count) Security Action - Fa0/1 1 0 Shutdown Fa0/2 1 0 Shutdown Fa0/3 1 0 Shutdown Fa0/4 1 0 Shutdown Fa0/5 1 0 Shutdown Fa0/6 1 0 Shutdown Fa0/7 1 0 Shutdown Fa0/8 1 0 Shutdown Fa0/9 1 0 Shutdown Fa0/10 1 0 Shutdown Fa0/11 1 0 Shutdown Fa0/12 1 0 Shutdown Fa0/13 1 0 Shutdown Fa0/14

6、1 0 Shutdown Fa0/15 1 0 Shutdown Fa0/16 1 0 Shutdown Fa0/17 1 0 Shutdown Fa0/18 1 0 Shutdown Fa0/19 1 0 Shutdown Fa0/20 1 0 Shutdown Fa0/21 1 0 Shutdown Fa0/22 1 0 Shutdown Fa0/23 1 0 Shutdown 步骤2. 配置交换机端口的地址绑定。 P查看主机的IP和MAC地址信息 在主机上打开CMD命令提示符窗口,执行ipconfig /all命令。 图 27 P配置交换机端口的地址绑定 Switch#configure

7、 terminal Switch(config)#interface fastethernet 0/3 Switch(config-if)#switchport port-security Switch(config-if)#switchport port-security mac-address 0006.1bde.13b4 ip-address 172.16.1.55 !配置IP地址和MAC地址的绑定 验证测试:查看地址安全绑定配置。 Switch#show port-security address Vlan Mac Address IP Address Type Port Remain

8、ing Age(mins) - 1 0006.1bde.13b4 172.16.1.55 Configured Fa0/3 1、交换机端口安全功能只能在ACCESS接口进行配置。 2、交换机最大连接数限制取值范围是1128,默认是128。 3、交换机最大连接数限制默认的处理方式是protect。 Switch#show running-config System software version : 1.61(4) Build Sep 9 2022 Release Building configuration. Current configuration : 3556 bytes ! vers

9、ion 1.0 ! hostname Switch vlan 1 ! interface fastEthernet 0/1 switchport port-security switchport port-security violation shutdown switchport port-security maximum 1 ! interface fastEthernet 0/2 switchport port-security switchport port-security violation shutdown switchport port-security maximum 1 !

10、 interface fastEthernet 0/3 switchport port-security switchport port-security violation shutdown switchport port-security maximum 1 switchport port-security mac-address 0006.1bde.13b4 ip-address 172.16.1.55 ! interface fastEthernet 0/4 switchport port-security switchport port-security violation shut

11、down switchport port-security maximum 1 ! interface fastEthernet 0/5 switchport port-security switchport port-security violation shutdown switchport port-security maximum 1 ! interface fastEthernet 0/6 switchport port-security switchport port-security violation shutdown switchport port-security maxi

12、mum 1 ! interface fastEthernet 0/7 switchport port-security switchport port-security violation shutdown switchport port-security maximum 1 ! interface fastEthernet 0/8 switchport port-security switchport port-security violation shutdown switchport port-security maximum 1 ! interface fastEthernet 0/9

13、 switchport port-security switchport port-security violation shutdown switchport port-security maximum 1 ! interface fastEthernet 0/10 switchport port-security switchport port-security violation shutdown switchport port-security maximum 1 ! interface fastEthernet 0/11 switchport port-security switchport port-security vi

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号