《查看交换机MAC地址表.docx》由会员分享,可在线阅读,更多相关《查看交换机MAC地址表.docx(4页珍藏版)》请在三一办公上搜索。
1、查看交换机MAC地址表 查看交换机的MAC地址表 1 实验目的: 进一步了解交换机的MAC地址和端口的对应。 2 网络拓扑 3 试验环境: 交换机和HUB相连,在一个网段192.168.0.0/24,计算机的Ip地址由DHCP分配。 4 试验要求 查看交换机的MAC地址表。 5 基本配置步骤 5.1 在Switch0上 Switch#show mac-address-table Mac Address Table - Vlan Mac Address Type Ports - - - - Switch#show mac-address-table Mac Address Table - Vla
2、n Mac Address Type Ports - - - - Switch#show mac-address-table Mac Address Table - Vlan Mac Address Type Ports - - - - Switch#show mac-address-table Mac Address Table - Vlan Mac Address Type Ports - - - - 发现MAC地址表是空的。最初交换机并不知道那那个接口对应着那个MAC地址。 5.2 在计算机PC2上 PCping 192.168.0.11 Pinging 192.168.0.11 wit
3、h 32 bytes of data: Reply from 192.168.0.11: bytes=32 time=8ms TTL=128 Reply from 192.168.0.11: bytes=32 time=9ms TTL=128 Reply from 192.168.0.11: bytes=32 time=9ms TTL=128 Reply from 192.168.0.11: bytes=32 time=8ms TTL=128 Ping statistics for 192.168.0.11: Packets: Sent = 4, Received = 4, Lost = 0
4、(0% loss), Approximate round trip times in milli-seconds: Minimum = 8ms, Maximum = 9ms, Average = 8ms PCping 192.168.0.12 Pinging 192.168.0.12 with 32 bytes of data: Reply from 192.168.0.12: bytes=32 time=7ms TTL=128 Reply from 192.168.0.12: bytes=32 time=8ms TTL=128 Reply from 192.168.0.12: bytes=3
5、2 time=9ms TTL=128 Reply from 192.168.0.12: bytes=32 time=10ms TTL=128 Ping statistics for 192.168.0.12: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 7ms, Maximum = 10ms, Average = 8ms PCping 192.168.0.13 Pinging 192.168.0.13 with 32 b
6、ytes of data: Reply from 192.168.0.13: bytes=32 time=21ms TTL=128 Reply from 192.168.0.13: bytes=32 time=10ms TTL=128 Reply from 192.168.0.13: bytes=32 time=11ms TTL=128 Reply from 192.168.0.13: bytes=32 time=9ms TTL=128 Ping statistics for 192.168.0.13: Packets: Sent = 4, Received = 4, Lost = 0 (0%
7、 loss), Approximate round trip times in milli-seconds: Minimum = 9ms, Maximum = 21ms, Average = 12ms PCping 192.168.0.14 Pinging 192.168.0.14 with 32 bytes of data: Reply from 192.168.0.14: bytes=32 time=20ms TTL=128 Reply from 192.168.0.14: bytes=32 time=11ms TTL=128 Reply from 192.168.0.14: bytes=
8、32 time=11ms TTL=128 Reply from 192.168.0.14: bytes=32 time=10ms TTL=128 Ping statistics for 192.168.0.14: Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), Approximate round trip times in milli-seconds: Minimum = 10ms, Maximum = 20ms, Average = 13ms PC 现在PC4和本网段的这些计算机通信一次,交换机就学到了MAC地址表。 5.3 再次查看
9、Switch0的MAC地址表 Switch#show mac-address-table Mac Address Table - Vlan Mac Address Type Ports - - - - 1 0000.0c7c.7e49 DYNAMIC Fa0/1 1 0001.63c6.e338 DYNAMIC Fa0/5 1 0030.a336.362b DYNAMIC Fa0/4 1 0030.a3e4.e4c6 DYNAMIC Fa0/4 1 0090.0cd7.65c8 DYNAMIC Fa0/2 1 00d0.ffce.0eb4 DYNAMIC Fa0/3 你会发现Fa02/4对应着两个MAC地址。因为该接口连接着一个HUB,该HUB上连接着2个PC。