当前位置:文档之家› MAC地址的动态绑定

MAC地址的动态绑定

IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
Ethernet adapter本地连接:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel(R) PRO/100 VE Network Connecti
switch(Config-Ethernet0/0/1)#switchport port-security lock
switch(Config-Ethernet0/0/1)#switchport port-security convert
switch(Config-Ethernet0/0/1)#exit
成绩教师签名年月日
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
2.交换机全部恢复出厂设置,配置交换机的IP地址
switch(Config)#interface vlan 1
switch(Config-If-Vlan1)#ip address 192.168.1.11 255.255. . . . . . . . . : 00-A0-D1-D1-07-FF
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IP Address. . . : 169.254.27.232
4.使用ping命令验证
PC
端口
Ping
结果
原因
PC1
0/0/1
192.168.1.11

PC1
0/0/7
192.168.1.11
不通
PC2
0/0/1
192.168.1.11
不通
PC2
0/0/7
192.168.1.11

五.试验结果
1.通过本次实验,我们掌握了路由器MAC地址的动态绑定技术,绑定方式采用动态lock的方式会使该端口的地址学习功能关闭,因此在取消lock之前,其他MAC的主机也不能从这个端口进入。
信息技术与传媒学院实验报告
专业
计算机科学与技术
班级
姓名
学号
课程名称
网络工程技术
实验项目
MAC地址的动态绑定
课时
实验室
实验时间
第十四周
指导教师
樊斌
一.实验目的
1.了解什么是交换机的MAC绑定功能。
2.熟练掌握MAC与端口绑定的动态方式。
二.实验设备
1.DCS-3926S交换机1台
2.PC机2台
3.Console线1根
四.实验步骤
1.得到PC的MAC地址
C:\>ipconfig/all
Windows IP Configuration
Host Name . . . . . . . . . . . . : xuxp
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Broadcast
switch(Config-If-Vlan1)#no shut
switch(Config-If-Vlan1)#exit
switch(Config)#
3.使能端口的MAC地址绑定功能,动态学习MAC并转换
switch(Config)#interface ethernet 0/0/1
switch(Config-Ethernet0/0/1)#switchport port-security
4.直通网线2根
三.实验要求
1.交换机IP地址为192.168.1.11/24,PC1的地址为192.168.1.101/24;PC2的地址为192.168.1.102/24。
2.在交换机上作MAC与端口绑定;
3.PC1在不同的端口上ping交换机的IP,检验理论是否和实验一致。
4.PC2在不同的端口上ping交换机的IP,检验理论是否和实验一致。
相关主题