全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
海量资料 超值下载交换机端口与MAC地址绑定一、实验目的1. 了解什么是交换机的MAC绑定功能;2. 熟练掌握MAC与端口绑定的静态方式。二、实验描述主要实验内容如下:1交换机IP地址为192.168.1.10/24,PC1的地址为192.168.1.101/24;PC2的地址为192.168.1.102/242. 在交换机上作MAC与端口绑定三、实验拓扑四、实验设备1.S2960 1台2PC 2台3.双绞线 2根五、实验步骤第1步: 配置PC1的地址为192.168.1.101/24,配置PC2的地址为192.168.1.102/24.然后得到PC1的主机的MAC地址PCipconfig /allPhysical Address.: 000A.418B.D76CIP Address.: 192.168.1.101Subnet Mask.: 255.255.255.0Default Gateway.: 0.0.0.0DNS Servers.: 0.0.0.0我们得到了PC1的MAC地址:000A.418B.D76C第2步:配置交换机的IP地址Switch(config)#int vlan 1Switch(config-if)#ip add 192.168.1.10 255.255.255.0Switch(config-if)#no shSwitch(config-if)#exit第3步:使用端口的MAC地址绑定功能Switch(config)#int f0/1Switch(config-if)#switchport mode accessSwitch(config-if)#switchport port-security第4步:添加端口静态安全MAC地址,缺省端口最大安全地址数为1Switch(config-if)#switchport port-security mac-address 000A.418B.D76C验证配置:Switch#sh port-security address Secure Mac Address Table-VlanMac AddressTypePortsRemaining Age(mins)-1000A.418B.D76CSecureConfiguredFastEthernet0/1-Total Addresses in System (excluding one mac per port) : 0Max Addresses limit in System (excluding one mac per port) : 1024第5步:使用PING命令验证在PC1上ping 192.168.1.10能通PCping 192.168.1.10Pinging 192.168.1.10 with 32 bytes of data:Reply from 192.168.1.10: bytes=32 time=32ms TTL=255Reply from 192.168.1.10: bytes=32 time=31ms TTL=255Reply from 192.168.1.10: bytes=32 time=32ms TTL=255Reply from 192.168.1.10: bytes=32 time=32ms TTL=255Ping statistics for 192.168.1.10: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds: Minimum = 31ms, Maximum = 32ms, Average = 31ms先拔掉PC1到f0/1的连线,再把PC2接到F0/1验证配置,ping交换机的IP地址(不通因为设置了PC1到F0/1的绑定)PCping 192.168.1.10Pinging 192.168.1.10 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for 192.168.1.10: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),第6步:在一个口上绑定多个MACSwitch(config)#int f0/1Switch(config-if)#switchport port-security maximum 2Switch(config-if)#switchport port-security mac-address 00D0.58BC.29D2验证配置:Switch#sh port-security address Secure Mac Address Table-VlanMac AddressTypePortsRemaining Age(mins)-1000A.418B.D76CSecureConfiguredFastEthernet0/1-100D0.58BC.29D2SecureConfiguredFastEthernet0/1-Total Addresses in System (excluding one mac per port) : 1Max Addresses limit in System (excluding one mac per port) : 1024第7步:使用PING命令验证先拔掉PC1到f0/1的连线,再把PC2接到F0/1验证配置:此进PC2也能PING通交换机(因为F0/1接口上也同时绑定了PC2的MAC地址)PCping 192.168.1.10Pinging 192.168.1.10 with 32 bytes of data:Reply from 192.168.1.10: bytes=32 time=46ms TTL=255Reply from 192.168.1.10: bytes=32 time=31ms TTL=255Reply from 192.168.1.10: bytes=32 time=31ms TTL=255Reply from 192.168.1.10: bytes=32 time=31ms TTL=255Ping statistics for 192.168.1.10: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),Approximate round trip times in milli-seconds:Minimum = 31ms, Maximum = 46ms, Average = 34ms六、注意事项如果出现端口无法配置MAC地址绑定功能的情况,请检查交换机的端口是否运行了生成树协议、802.1X、端口汇聚或端口已经配置为TRUNK端口,MAC绑定与这些配置是互斥的,所以在执行端口绑定前一定要先关闭端口下的上述功能。七、参考配置Switch#sh runBuilding configuration.Current configuration : 1131 bytes!version 12.2no service password-encryption!hostname Switch!interface FastEthernet0/1 switchport mode access switchport port-security switchport port-security maximum 2 switchport port-security mac-address 000A.418B.D76C switchport port-security mac-address 00D0.58BC.29D2!interface FastEthernet0/2!interface FastEthernet0/3!interface FastEthernet0/4!interface FastEthernet0/5!interface FastEthernet0/6!interface FastEthernet0/7!interface FastEthernet0/8!interface FastEthernet0/9!interface FastEthernet0/10!interface FastEthernet0/11!interface FastEthernet0/12!interface FastEthernet0/13!interface FastEthernet0/14!interface FastEthernet0/15!interface FastEthernet0/16!interface FastEthernet0/17!interface FastEthernet0/18!interface FastEthernet0/19!interface FastEthernet0/20!interface FastEthernet0/21!interface FastEthernet0/22!interface Fas
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 中国酒精蒸馏装置行业市场前景预测及投资价值评估分析报告
- 中国野生植物保护行业市场需求预测与投资战略规划分析报告2025
- 中国针织尼龙半指无尘手套行业市场前景预测及投资价值评估分析报告
- 中国钢架平台行业市场前景预测及投资价值评估分析报告
- 中国钢铁铸铁件行业市场前景预测及投资价值评估分析报告
- 中国铁路隧道行业市场前景预测及投资价值评估分析报告
- 本章复习与测试教学设计-2025-2026学年高中物理人教版2019选择性必修 第一册-人教版2019
- 2025校招:新媒体试题及答案
- 中国防水建筑材料行业市场前景预测及投资价值评估分析报告
- 中国防腐蚀工业陶瓷行业市场前景预测及投资价值评估分析报告
- 2025江苏南京市产业招商中心有限责任公司招聘18人笔试考试参考试题及答案解析
- 2025年安庆宿松县卫生健康系统部分事业单位公开招聘工作人员14人笔试考试备考题库及答案解析
- 2025-2030老年康复辅具居家适老化改造需求调研报告
- 物业小区电梯故障应急预案
- 2025-2026学年上学期高一英语外研社版期中必刷常考题之语法填空
- 2025年广州公务员行测真题【完整+答案+解析】
- 2025年港澳台联考语文试题及答案解析
- 2026届大湾区普通高中毕业年级联合模拟考试高三语文古诗鉴赏详解:《晚春感事·其四陆游》详注+译文+赏析
- 关于蜥蜴的科普
- 2025年食品安全考试试题(答案+解析)
- 2025年单位开展违规吃喝问题专项整治的工作方案(详细版)
评论
0/150
提交评论