您好,欢迎访问三七文档
当前位置:首页 > 商业/管理/HR > 咨询培训 > 1-3 以太网端口技术实验-1学时
端口配置实验端口配置实验端口配置实验实验1端口配置实验.....................................................................................................................11.1实验内容................................................................................................................................11.2基本端口配置命令.................................................................................................................11.2.1实验目的.....................................................................................................................11.2.2实验环境.....................................................................................................................11.2.3实验组网图.................................................................................................................11.2.4实验步骤.....................................................................................................................11.3端口汇聚..............................................................................................................................121.3.1实验目的...................................................................................................................121.3.2实验环境...................................................................................................................121.3.3实验组网图...............................................................................................................121.3.4实验步骤...................................................................................................................121.4端口镜像..............................................................................................................................171.4.1实验目的...................................................................................................................171.4.2实验环境...................................................................................................................171.4.3实验组网图...............................................................................................................171.4.4实验步骤...................................................................................................................17端口配置实验1实验1端口配置实验1.1实验内容基本端口配置命令端口汇聚端口镜像1.2基本端口配置命令1.2.1实验目的帮助读者理解并测试端口速率、工作方式自协商功能1.2.2实验环境Quidway系列S3026交换机2台,VRP版本为:VRP(R)Software,Version3.10(NA),RELEASE0009;PC一台,标准网线、配置电缆各一根;1.2.3实验组网图图1-1端口配置实验组网图1.2.4实验步骤1、首先请按照如上的组网图连接所有设备。我们将在这个实验中测试交换机关于速率和工作方式的自协商功能。为了避免不必要的麻烦,请首先用命令:Quidwayresetsaved-configuration清除交换机Sw1和Sw2的原有配置,重新启动交换机reboot,并将两台交换机分别用命令:[Quidway]sysnameSw1和[Quidway]sysnameSw2命名两台交换机。端口配置实验2为了测试两台交换机之间的可通性,我们首先给每一台交换机配置一个3层接口,并分别配以IP地址10.0.0.1/24和10.0.0.2/24。(当然,您也可以通过Sw1和Sw2分别接一台PC,然后将这两台PC配置于同一个网段,然后通过Ping检查两台PC之间的互通性的方法来检查Sw1和Sw2的互通性,严格来说这两种方法是等价的)具体的命令序列为:Sw1上配置:[Sw1]intvlan1//创建一个3层接口[Sw1-Vlan-interface1]ipaddr10.0.0.1255.255.255.0//给这个三层接口配置IP地址Sw2上配置:[Sw2]intvlan1[Sw2-Vlan-interface1]ipaddr10.0.0.2255.255.255.0配置完成以后,请在交换机Sw1上用Ping命令检查Sw1和Sw2的互通性。如下为在Sw1上执行Ping命令的一个输出:Sw1ping10.0.0.2PING10.0.0.2:56databytes,pressCTRL_CtobreakReplyfrom10.0.0.2:bytes=56Sequence=1ttl=255time=66msReplyfrom10.0.0.2:bytes=56Sequence=2ttl=255time=33msReplyfrom10.0.0.2:bytes=56Sequence=3ttl=255time=33msReplyfrom10.0.0.2:bytes=56Sequence=4ttl=255time=33msReplyfrom10.0.0.2:bytes=56Sequence=5ttl=255time=33ms---10.0.0.2pingstatistics---5packet(s)transmitted5packet(s)received0.00%packetlossround-tripmin/avg/max=33/39/66ms如果一切如上面输出所示那样良好,那么就可以进入下一个实验步骤,否则请检查有关IP地址配置以及物理连接是否良好。端口配置实验32、我们首先测试交换机端口关于速率的自适应特性。用DisplayInterface命令可以查看到当前端口的速率状况。如下为利用DisplayInterface命令查看Sw1端口E0/1的速率的一个输出:Sw1displayinte0/1Ethernet0/1isupHardwareisFastEthernet,Hardwareaddressis00e0-fc07-708aAuto-duplex(Full),Auto-speed(100M),100_BASE_TXFlowcontrol:disabledBroadcastMAX-ratio:100%PVID:1Mditype:autoPortlink-type:accessTaggedVLANID:noneUntaggedVLANID:1229packetsoutput29066bytes,48multicasts,176broadcasts,0pauses74packetsinput6624bytes,23multicasts,45broadcasts,0pauses0CRCerrors0longframes上面输出中画线部分指出了当前此端口工作于速率自动协商方式下,协商所得速率为100Mbps。这个结果是很自然的,因为Sw1和Sw2的E0/1都是100M/10M自适应端口,默认情况下他们都工作于速率自协商方式下,所以协商的最终结果是他们支持的最高速率:100Mbps。可以用Speed命令改变端口速率工作方式,例如我们可以用如下命令改变Sw2端口工作方式为强制10Mbps速率方式(而不是默认的速率自协商方式):[Sw2-Ethernet0/1]speed10执行完这条命令以后,我们可以用Ping命令检查Sw1和Sw2的互通性:Sw2ping10.0.0.1PING10.0.0.1:56databytes,pressCTRL_Ctobreak端口配置实验4Replyfrom10.0.0.1:bytes=56Sequence=1ttl=255time=67msReplyfrom10.0.0.1:bytes=56Sequence=2ttl=255time=34msReplyfrom10.0.0.1:bytes=56Sequence=3ttl=255time=34msReplyfrom10.0.0.1:bytes=56Sequence=4ttl=255time=34msReplyfrom10.0.0.1:bytes=56Sequence=5ttl=255time=34ms---10.0.0.1pingstatistics---5packet(s)transmitted5packet(s)received0.00%packetlossround-tripmin/avg/max=34/40/67ms在Sw2上,DisplayInterfaceE0/1的输出为:Sw2disinte0/1Ethernet0/1isupHardwareisFastEthernet,Hardwareaddressis00e0-fc07-708fAuto-duplex(Full),10M,100_BASE_TXFlowcontrol:disabledBroadcastMAX-ratio:100%PVID:1Mditype:autoPortlink-type:accessTaggedVLANID:noneUntaggedVLANID:1109packetsoutput9852bytes,34multicasts,64broadcasts,0paus
本文标题:1-3 以太网端口技术实验-1学时
链接地址:https://www.777doc.com/doc-1906861 .html