交换与路由技术实验指导书-锐捷内容摘要:

DYNAMIC Fa0/24 1 DYNAMIC Fa0/23 1 DYNAMIC Fa0/24 1 DYNAMIC Fa0/22 步骤 7. 过 3 分钟,再查看 MAC 地址表,验证地址 表是否过期。 SwitchAshow macaddresstable !查看交换机的 MAC地址表 Mac Address Table 交换与路由技术实验指导书 13 Vlan Mac Address Type Ports 步骤 8. 添加交换机的静态地址表 ,把 PC3 的 MAC 地址静态加到 F0/24 端口 SwitchAconf t SwitchA(config) macaddresstable static vlan 1 interface fastether 0/24 SwitchAshow macaddresstable !查看交换机的 MAC地址表 Mac Address Table Vlan Mac Address Type Ports 1 DYNAMIC Fa0/24 1 DYNAMIC Fa0/23 1 DYNAMIC Fa0/24 1 STATIC Fa0/24 结论:静态地址优于动态的地址 步骤 9. 将 PC3 直接移到 SwitchA 的 fastether 0/1 端口,观察 MAC 地址表 SwitchAshow macaddresstable SwitchAshow macaddresstable !查看交换机的 MAC地址表 Mac Address Table Vlan Mac Address Type Ports 1 DYNAMIC Fa0/24 1 DYNAMIC Fa0/23 1 DYNAMIC Fa0/24 1 STATIC Fa0/24 步骤 10. 用 PC4 ping 其他三台 计算机,不能和 PC3 通信。 【 问题 】 PC4 为何不能和 PC3 通信。 交换与路由技术实验指导书 14 交换与路由技术实验指导书 15 实验三 交换机端口的基本配置 【 实验名称 】 交换机端口的基本配置。 【 实验目的 】 掌握交换机端口的常用配置参数。 【 背景描述 】 你是某公司网管,现公司有部分主机网卡属于 10Mbit/s 网卡,传输模式为半双工,为了能够实现主机之间的正常访问和管理,现把和主机相连的交换机端口速率设为10Mbit/s,传输模式设为半双工,并设置该端口的描述信息为“ To PCA”。 【 技术原理 】 交换机 Fastether 接口默认情况下是 10Mbit/s 或 100Mbit/s 自适应端口,双工模式也为自适应。 默认情况下,所有交换机端口均开启。 交换机 Fastether 接口支持端口速率、双工模式的配置。 【 实现功能 】 配置交换机端口的速率,双工模式和描述,并进行有效查看。 【 实验设备 】 S2126( 1 台) 、主机( 1 台)、直连线( 1 条) 【 实验拓扑 】 图 3 注:在进行网络连接时,主机的网卡用直连线和交换机连接,注意查看主机连接在交换机的哪个端口,针对该端口进行参数的设置。 【 实验步骤 】 步骤 1. 交换机端口参数的配置。 switch enable switch configure terminal switch(config)interface fastether 0/3 !进行 F0/3 的端口模式 交换与路由技术实验指导书 16 switch(configif)speed 10 !配置端口速率为 10M switch(configif)duplex half !配置端口的双工模式为 半双工 switch(configif)description To PCA !配置端口的描述信息 switch(configif)no shutdown !开启该端口,使端口转发数据 配置端口速率参数有 100( 100Mbit/s)、 10( 10Mbit/s)、 auto(自适应 ),默认是 auto。 配置双式模式有 full( 全双工 ) 、 half( 半双工 ) 、 auto(自适应),默认是 auto。 步骤 2. 查看交换机端口的配置信息。 switchshow interface fastether 0/3 FastEther0/3 is up, line protocol is up (connected) Hardware is Lance, address is (bia ) Description: To PCA MTU 1500 bytes, BW 10000 Kbit, DLY 1000 usec, reliability 255/255, txload 1/255, rxload 1/255 Encapsulation ARPA, loopback not set Keepalive set (10 sec) Halfduplex, 10Mb/s input flowcontrol is off, output flowcontrol is off ARP type: ARPA, ARP Timeout 04:00:00 Last input 00:00:08, output 00:00:05, output hang never Last clearing of show interface counters never Input queue: 0/75/0/0 (size/max/drops/flushes)。 Total output drops: 0 Queueing strategy: fifo Output queue :0/40 (size/max) 5 minute input rate 0 bits/sec, 0 packets/sec 5 minute output rate 0 bits/sec, 0 packets/sec 956 packets input, 193351 bytes, 0 no buffer Received 956 broadcasts, 0 runts, 0 giants, 0 throttles 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort 0 watchdog, 0 multicast, 0 pause input 0 input packets with dribble condition detected 2357 packets output, 263570 bytes, 0 underruns 0 output errors, 0 collisions, 10 interface resets 0 babbles, 0 late collision, 0 deferred 0 lost carrier, 0 no carrier 0 output buffer failures, 0 output buffers swapped out 【 注意事项 】 交换机端口在默认情况下是开启的,如果该端口没有实际连接其他设备, line protocol是 down 状态。 交换与路由技术实验指导书 17 实验 四 交换机端口隔离 【 实验名称 】 交换机端口隔离。 【 实验目的 】 理解 Port Vlan 的配置。 【 背景描述 】 假设此交换机是宽带小区城域网中的一台楼道交换机,住户 PC1 连接在交换机的 0/5口:住户 PC2 连接在交换机击的 1/15 口。 现要实现各家各户的端口隔离。 【 实现功能 】 通过划分 PORT VLAN 实现本交换端口隔离。 【 实验拓扑 】 PC1 Switch PC2 F0/5 f0/15 Vlan10 Vlan20 【 实验设备 】 S2126G(1 台 )。 【 实验步骤 】 步骤 1. 在未划 VLAN 前两台 PC 互相 ping 可以通。 创建 VLAN。 Switch configure terminal !进入交换机全局配置模式。 Switch(config) vlan 10。 创建 vlan 10。 Switch(configvlan) name test10 !将 Vlan 10 命名为 test10。 Switch(config) vlan 20 ! 创建 vlan 20。 Switch(configvlan) name test20 !将 Vlan 20 命名为 test20。 验证测试 Switch show vlan VLAN Name Status Ports 1 default active Fa0/1,Fa0/2,Fa0/3 Fa0/4,Fa0/5,Fa0/6 Fa0/7,Fa0/8, Fa0/9 Fa0/10,Fa0/11,Fa0/12 Fa0/13,Fa0/14,Fa0/15, Fa0/16,Fa0/17,Fa0/18, Fa0/19,Fa0/20,Fa0/21 Fa0/22,Fa0/23,Fa0/24 10 test 10 active 交换与路由技术实验指导书 18 20 test 20 active 步骤 2. 将接口分配到 VLAN。 Switch(configif) interface fastether 0/5 ! 进入 fastether 0/5 的接口配置模式。 Switch(configif) switch access vlan 10 ! 将 fastether 0/5端口加入 vlan 10 中。 Swi。
阅读剩余 0%
本站所有文章资讯、展示的图片素材等内容均为注册用户上传(部分报媒/平媒内容转载自网络合作媒体),仅供学习参考。 用户通过本站上传、发布的任何内容的知识产权归属用户或原始著作权人所有。如有侵犯您的版权,请联系我们反馈本站将在三个工作日内改正。