还剩16页未读,继续阅读
本资源只提供10页预览,全部文档请下载后查看!喜欢就下载吧,查找使用更方便
文本内容:
计算机网络技术实践实验报告实验名称基本交换机使用及配置VLAN姓名实验日期2013年5月10日学号实验报告日期2013年5月10日报告退发(订正、重做)「环境(详细说明运行的操作系统,网络平台,网络拓扑图)操作系统Windows7网络平台软件Dynamips环境下的虚拟网络网络拓扑二.实验目的掌握以太网交换机的使用方法,能够在模拟环境中使用以太网交换机组建局域网令掌握以太网交换机的VLAN划分和配置方法,能够在模拟环境中使用以太网交换机组建虚拟局域网PC6configflinterface f0/0PC6config-if#ip add
2.
1.
1.
4255.
0.
0.0PC6config-ifttno shutdownPC6config-if#00:04:17zLINK-3-UPDOWNInterface FastEthernet0/0,changed state to up00:04:18XLINEPROT0-5-UPDOWNLine protocolon Interface FastEthernet0/0,chang ed state to up3将SW2的端口fl/11配成vlan2SW2ttulan databaseSW2ulan#ulan2ULAN2modifiedSW2ulan#exit APPLVcompleted.Exiting....SW2tt*t1ar100:
4631.363zCDP-4-DUPLEX_MISMATCHduplex mismatchdiscovered on Fast Ethernetl/11not half duplex with PC3FastEthernet0/0half duplex.〉」SW2ttconfig tEnter configuration commands.one perline.End withCNTL/Z.SW2config#interfaceulan2SW2con£ig-if#exit SW2config#intei*face fl/11SW2config-if#switchport access ulan2SU2config-if#exi*Mai*100:47:
09.631XLINEPROT0-5-UPD0WNLine protocolon InterfaceUIan2,cha ngedstate to upt SW2config#*Mai*100:47:
32.42zCDP-4-DUPLEX_MISMATCHduplex mismatchdiscovered onFast Ethernetl/11not half duplex with PC3FastEthernet0/0half duplex.〉,4将SW4的端口fl/11配成vlan2SW4config#interface fl/11SW4config-if#switchport accessulan2SW4config-if#e*Mar100:
3345.243ZLINEPR0T0-5-UPD0WNLine protocolon InterfaceUlan2»cha ngedstate to upxit5测试PC3和PC6能否ping通Type escapesequence toabort.Sending5-100-byte ICMPEchos to
2.
1.
1.4,timeout is2secondsSuccess rateis0percent0/5Type escapesequence toabort.Sending5,100-byte ICMPEchos to
2.
1.
1.2^timeout is2secondsSuccess rateis0percent0/5〉与不能通PC3PC6ping6将SW2的端口fl/1配成trunk模式SW2config#interface£1/1SW2config-ifttswitchport nodetrunkSW2config-if#«Mar100:
5326.375XDTP-5-TRUNKPORTONPort Fal/1has becomedotlq trunkSW2config-ifttswit*Mar100:
5335.039zCDP-4-DUPLEX_MISMATCHduplex mismatchdiscovered onFast Ethernetl/11not half duplex with PC3FastEthernet0/0halfduplex.」SW2config-if#switchpoi*t trunkallowed ulanallSW2config-if#7将SW4的端口fl/2配成trunk模式SW4config#interface fl/2SW4config-if#switchport nodetrunkSU4config-if#»Mar
1010513.075XDTP-5-TRUNKPORTONPort Fal/2has becomedotlq trunk«Mar
1010513.575XLINEPROT0-5-UPDOWNLine protocolon InterfaceUlan
3.cha ngedstateto upSW4conf ig-if#switchpoi*t trunk*Mar
1010523.403zCDP-4-DUPLEX_MISMATCHduplex mismatchdiscovered onFast Ethernetl/11not halfduplex,with PC6FastEthernet0/0halfduplex.allow%Incomplete command.〈SW4config-if#*Mar
1010528.219zCDP-4-DUPLEX_MISMATCHduplex mismatchdiscoveredonFastEthernetl/12not halfduplex,with PCFastEthernet0/0halfduplex.SW4config-if#switchport trunkallowed ulanall8测试PC3和PC6能否ping通Type escapesequence toabort.Sending5_100-byte ICMPEchos to
2.
1.
1.4^.timeout is2secondsSuccess rateis100percent5/5/round-trip nin/aug/max=20/35/64msType escapesequence toabort.PC6#ping
2.1,
1.2Sending5,100-byte ICMPEchos to
2.
1.
1.2,timeout is2secondsSuccess rateis100percent《5/5〉,round-trip nin/aug/nax=1/25/60ms和可以通了PC3PC6ping
3.5不同VLAN互联,用4个交换机、2台路由器、7台PC,设置4个VLAN1先启动PCI,PC2,SW1,SW2,PC3,R1=start RI100-C7200W started=start SW1100-C3600started=start SW2100-C3600JSW2J started=start PCI100-C2600PC1,started=start PC2100-C2600JPC2J started=start PC3100-C2600JPC3J started=listName TypeState SeruerConsoleRI7200running localhost72003001R27200stopped localhost72003002SW13640running localhost72003003SW23640running localhost72003004SW33640stopped localhost72003005SW43640stopped localhost72003006PCI c2600running localhost72003007PC2c2600running localhost72003008PC3c2600running localhost72003009PC4c2600stopped localhost72003010PC5c2600stopped localhost720030112配置PCI,PC2,PC3的IP地址的接口配成PCI fO/O
3.LL2[PCKconf ig#interface£0/0PCKconf ig-if ttnoshutdownPCKconf00:01:39zLINK-3-UPDOWNInterface FastEthernet0/0,changed state to up00:01:40XLINEPROT0-5-UPDOWNLine protocolon Interface FastEthernet0/0,chang edstate to up的接口配成PC2fO/OPC2config#intei*face£0/0|PC2config-ifttno shutdownPC2config-if#的接口配成PC3fO/O
2.LL2PC3config#interface£0/0PC3config-ifttno shutdownPC3config-if#00:06:11zLINK-3-UPDOWNInterface FastEthernet0/0,changed state to up,00612zLINEPROT0-5-UPDOWNLine protocolon Interface FastEthernet0/0,edstate to upchang3配置SW1,SW2SWlttulan databaseSWlulan#ulan2ULAN2modified SWlulanttulan3ULAN3modifiedSWlulan#exit APPLYcompleted.Exiting....SWltt«Mar
100103.099zCDP-4-DUP Ethernetl/11not halfduplex〉」•SWlttMlar100:17:
08.607zCDP-4-DUP Ethernetl/12not halfduplex〉,Enter configuration commands,omSWlconfig#interface ulan2SUKconf ig-if ttexit SW1config#interface ulan3SWlconfig-if#»Mar100:17:
29.731zLINEPROTO ngedstate to up的接口配为接口SW1fl/11accessSWKconfig#interface£1/11SWKconfig-if#switchport accessulan3a*—一一一的接口配为接口SW1fl/12accessSWKconfig#interface fl/12SWKconfig-if#switchpoi*t accessulan1的接口配为接口SW1fl/1trunkSWKconf ig#in terfacefl/1SWKconf ig-if#«Mar100:20:
06.407zCDP-4-DUPLEX_MISMATCHdup Ethernetl/11not halfduplex」with PCIFastEthei100:20:
12.727xCDP-4-DUPLEX.MISMATCH dupEthernetl/12not halfduplex」with PC2FastEthei SUIconfig-i£#switchport nodetrunk SWKconfig-i£#*Mar100:20:
26.507zDTP-5-TRUNKPORTON PortFai Hlar100:20:
27.015zLINEPROT0-5-UPDOWN Linepi ngedstate to upsw SWKconfig-ifttswitchport trunkallowed ulanall的接口配为接口SW1fl/2trunkSUICconfig#interface£1/2SUlCconfig-i£ttswitchport nodetrun Mlar100:21:
07.435ZCDP-4-DUPLEX.MISMATCH dupEthernetl/11not halfduplex」with PCIFastEthe SWlconfig-if#s«Mar100:21:
11.223zDTP-5-TRUNKPORTON PortFa SWKconf ig-if#Mlar100:21:
14.283zCDP-4-DUPLEX_MISMATCH dupEthernetl/12not halfduplex」with PC2FastEthe SUIconfig-i£ttswitchport nodetrunk SWKconfig-if#switchport trunkallowed vlanall SU2ttulan databaseSU2ulanttulan2ULAN2modified SW2ulan#exit APPLYcompleted.Exiting....的接口配为接口SW2fl/11accessSW2config#interface fl/11SW2config-i£#switchport accessulan2SW2config-if#exit的接口配为接口SW2fl/3trunkSW2con£ig#interface£1/3SW2config-ifttswitchport t«Mar100:31:
11.151zCDP-4-DUPLEX_MISMATCH dupEthernetl/11not halfduplex〉」with PC3FastEthe
7.Incomplete command.SW2config-ifttswitchport nodetrunkSW2config-if#Mlar100:31:
29.991XDTP-5-TRUNKPORTON PortFaSW2config-ifttswitchport trunkallowed ulanallSW2con£ig-if#exit的接口配为接口SW2fl/4accessSW2config#interface£1/4SW2config-if#switchpoi*t accessulan2*Mar100:32:
12.083zCDP-4-DUPLEX_MISMEthernetl/11not halfduplex,with PC3SW2config-if#exit4配置RIRouterconfig-if#interface f1/
0.1Routerconf ig-subif ttip add
3.
1.
1.
1255.
0.
0.0%Configuring IProuting ona LANsubinterface isonlyallowed ifthat subinterfaceis alreadyconfigured aspart ofan IEEE
802.10,IEEE
802.IQ,orISL uLAN.Routerconfig-subif ttencapsulation dotlq3Routerconfig-subifttno shutdownRouterCconf ig-subif#exitRouterCconfigWinterface f1/
0.2Routerconf ig-subif#encapsulation dotlq1Routei*config-subifttno shutdownRouterconfig-subif#exit RouterCconfigtthostnaneRI RKconf ig#interface f1/1Rlconfig-if#ipadd
2.
1.
1.
1255.
0.
0.0RKconfig-ifttno shutdownRKconf00:1339zLINK-3-UPDOWNInterfaceFastEthernet1/1,changed state to up00:13:40XLINEPROT0-5-UPDOWNLine protocolon Interface5PCI与PC2,PC3是否ping通Type escapesequence toabort.Sending5,100-byte ICMPEchos to♦♦♦♦・・■•・
1.
1.
1.4,timeout is2seconds round-trip,Success rateis80percent〈4/5nin/aug/max=4/15/40msType escapesequence toabort.Sending5,100-byte ICMPEchos to♦♦♦♦,■■■■Success rateis80percent4/5,
2.
1.
1.2,timeout is2seconds round-tripmin/aug/nax=1/12/24msFastEthernet1/1,chang edstate to up6配置PC6,PC7的端口为PC6f0/0IP的端口为:PC7f0/0IP和的配置方法与第三部分和第四部分的配置类似,这里不再截图说明PC6PC77配置SW2,SW4将的和端口配成接口,与的和端口相连,的两SW2fl/1fl/2trunk SW4fl/2fl/1SW4个端口也配成接口,这里的配置与实验第四部分类似,也不截图说明了trunk8PC3与PC6,PC7是否ping通Success rateis80percent〈4/5〉」
2.
1.
1.4j.timeout is2secondsType escapesequence toabort.Sending5,100-byte ICMPEchos to■■■■■round-trip nin/aug/nax=4/9/16ns,Success rateis80percent44/
52.
1.
1.6j.timeout is2secondsType escapesequence toabort.Sending5-100-byte ICMPEchos to♦♦♦♦round-trip min/aug/max=4/8/16ms9配置PC4,PC5[PC4config#interface£0/0PC4config-ifttno shutdownPC4config-if#00:01:42zLINK-3-UPDOWNInterface FastEthernet0/0^changed state to up00:01:43zLINEPROTO-5-UPDOWNLine protocolon Interface FastEthernet0/0,chang edstate toupPC5config#interface f0/0PC5config-ifttno shutdownPC5config-if00:04:03ZLINK-3-UPDOWNInterface FastEthernet0/0,changed state to up00:04:04zLINEPROT0-5-UPDOWNLine protocolon Interface FastEthernet0/0,chang edstate toup10配置SW2,SW3SW2ttulan databaseSW2ulanttulan2ULAN2modified SW2ulan#exit APPLYcompleted.Exiting....SW2ttconfig tEnter configurationcommands」i SU2config#interface ulan2SW2con£ig-i£#exit的端口配成接口SW2fl/5trunk的端口配成接口SW2fl/6accessSW2con£ig#interface£1/5SW2config-if#switchport modetrunkSW2config-if#sMlar100:18:
53.415XDTP-5-TRUNKPORTON PortFaSW2config-if#switchport trunkallowed ulanallSW2config-if#exitSW2config#interface£1/6SW2config-if#switchport accessulan2SW3ttulan databaseSW3ulan#ulan2ULAN2modified SW3ulan#ulan3ULAN3modifiedSW3ulan#exit APPLYcompleted.Exiting....SW3ttconfig tEnterconfigurationcommands」oSW3config#interface ulan2SW3config-if#exitSW3config#interface ulan3SW3conf100:26:
34.311ZCDP-4-DU Ethernetl/11not halfduplex〉」SW3config-if#exit的端口配成接口SW3fl/11accessSW3config#interface Fl/11SW3config-if#switchpoi*t accessulan1的端口配成接口SW3fl/12accessSW3config#interface£1/12SW3config-if#swit Mlar100:27:59,583zCDP-4-DUPLEX_MISMiEthernetl/12not halfduplex〉,with PCSSU3con£ig-if#switchport accessulan3的端口配成接口SW3fl/1trunkSW3con£ig#interface£1/1SW3config-ifttswitch100:28:
37.263zCDP-4-DUPLEX.MISMATCH dup]Ethernetl/11not halfduplex」with PC4FastEthei SW3config-if#switchport nodetrunk SW3config-if#swit«Mar100:28:
54.411zDTP-5-TRUNKPORTON PortFai«Mar100:28:
54.911XLINEPROT0-5-UPDOWN Linepi ngedstate to upch SW3config-if#switchport«Mar100:29:
01.007zCDP-4-DUPLEX-MISMATCH dup]Ethernetl/12not halfduplex」withPC5FastEthei V.Incomplete command.SW3config-if#switchport trunkallowed ulanall的端口配成接口SW3fl/2trunkSW3config#interface£1/2SW3config-ifttswitchport nodeMlar100:29:
38.959zCDP-4-DUPLEX_MISMATCH dupEthernetl/11not halfduplex,withPC4FastEthe]SW3config-if#sw«Mar100:29:
42.887zDTP-5-TRUNKPORTON PortFa SW3config-if#switchport modetrunkSW3config-ifttswitchport trunk100:30:
02.587zCDP-4-DUPLEX_MISMATCH dupEthernetl/12not halfduplex」withPC5FastEthe]V.Incomplete connand.SW3config-i£ttswitchport trunkallowed ulanall11配置R2R2config#interface f1/
1.1B2config-subifttencapsulation dotlq1R2config-subi£#ip add
1.
1.
1.
3255.
0.
0.0R2config-subif#exitR2config#interface£1/
1.1R2config-subifttencapsulation dotlq1B2config-subifttno shutdownR2config-subif#exitR2config#interface£1/
1.2R2config-subifttencapsulation dotlq3R2config-subif#ip add
3.
1.
1.
3255.
0.
0.0R2config-subifttnoshutdown R2config-subif#exit R2config#interface f1/0R2config-if#ip add
2.
1.
1.
3255.
0.
0.0R2config-ifttno shutdown12PC3与PC4,PC5是否ping通Type escapesequence toabort.Sending5,100-byte ICMPEchos to
1.
1.
1.2j.timeout is2secondsSuccess rateis80percent4/5〉,round-trip nin/aug/nax=4/29/84nsType escapesequence toabort.Sending5-100-byte ICMPEchos to
3.
1.
1.4,timeout is2secondsSuccess rateis80percent〈4/5〉」round-trip nin/aug/nax=4/10/20ms四.实验结果(包括最终实验结果,需要截图)实验各部分实验结果截图见第三部分实验步骤五.实验中的问题及心得(需要认真写,不要写空话、套话)
1、在本次实验中,前四个部分都没有遇到什么大的问题,在第三部分的时候第一次是ping不通的,以为哪里出错了,仔细看了一下发现SW1的两个端口并没有配在同一个vlan中,把它们都配在同一个vlan中后就可以ping通了
2、在第五部分的实验中,由于设备比较多,很容易输错而导致ping不通,做了三次才做成功
3、在实验中注意到,不同的vlan之间互相连通,必须经过路由器虽然是同一个交换机连接下的不同设备,因为是在不同的vlan中,也就是说为了防止不必要的广播信息传播到其他的端口中,将统一广播域划分成了多个广播域不同vlan之间ping必须经过路由器
4、为了保证实验顺利进行,我把同一个VLAN中的主机配置在同一个网段,但是思考这样是不是必须的,查看了一些资料发现同一个VLAN中的主机配置在同一个网段中就可以在本局域网内实现通信,如果配置在不同的网段,则需要路由器来完成不同网段之间的互通,所以在有路由器的情况下,同一VLAN中的主机不一定要配置在同一网段但不同VLAN中的主机是不能配置在同一网段的,它们经过路由器互联能够互通
5、对于两个交换机之间采用Trunk方式和Access方式进行互联,他们的区别在于Access接口只能配置属于一个VLAN,也就是只能允许一个VLAN的数据帧通过,因此,当两台交换机之间需要实现多个VLAN的互通时,,就需要占用多对端口,连接多个物理链路,非常浪费资源,也不方便而Trunk接口可以同时允许多个VLAN的数据帧通过,所以只需要一条链路就可以实现所有VLAN间的互通所以通常在两个交换机之间通常不采用Access进行VLAN的互通、实验思考(需要认真写,不要写空话、套话)
31、在什么情况下,同一个局域网中,两台设备的IP地址配置在不同网段中可以互相ping通?答若两台交换机上面配置VLAN,同时两台交换机的两个不同vlan的口直接相连,就能够ping通,因为交换机只解封装第二层的数据,却不看第三层的数据,此时将彼此的MAC地址设为目的MAC地址,交换机看到此数据包后会转发到相应的目的MAC地址的端口,这样两个设备就能够ping通了
2、在第五部分中说明在你的网络拓扑中每条链路上的数据包是否有VLAN标签,若有,内容是什么?答以PC1到PC3的链路为例,PC1属于VLAN3,它想SW1发送数据包,数据包到达SW1的fl/11端口后被打上VLAN3标签,数据包的目的主机是PC3,属于VLAN2,所以交换机三.实验内容及步骤(包括主要配置流程,重要部分需要截图)
1、设计网络物理拓扑和逻辑网段,如上图
2、修改拓扑文件autostart=False[localhost]port=7200udp=10000workingdir=,.\tmp\[[router SW1]]image=..\ios\unzip-c3640-js-mz.124-
10.bin model=3640console=3003ram=128confreg=0x2142exec_area=64mmap=False slotl=NM-16ESW fl/1=SW2fl/3fl/2=RI fl/0fl/11=PCI f0/0fl/12=PC2f0/0[[router SW2]]image.\ios\unzip-c3640-js-mz.124-
10.bin二,model=3640console=3004ram=128confreg=0x2142exec_area=64mmap=False slotl=NM-16ESWfl/1=SW4fl/2fl/2=SW4fl/1fl/4=RI fl/1fl/5=SW3fl/1fl/6=R2fl/0fl/ll=PC3f0/0[[router SW3]]将数据包发给路由器,此时的数据包是不带VLAN标签的标准以太网帧,路由器转发数据包,通过f1/1端口送出数据包,发送给SW2,当数据包到达SW2的f1/4端口后被打上VLAN2标签,并且将数据包投递给与PC3相连的fl/11端口,取消VLAN2标签,将标准以太网帧发送给PC3VLAN是针对交换机端口而言的,PC和路由器并不知道VLAN是怎么回事,所以带VLAN标签的帧只在交换机之间传递,交换机发给路由器和PC的都是不带VLAN标签的标准以太网帧image=..\ios\unzip-c3640-js-mz.124-
10.bin model=3640console=3005ram=128confreg=0x2142execarea=64mmap=False slotl=NM-16ESW fl/2=R2fl/1fl/11=PC4f0/0fl/12=PC5f0/0[[router SW4]]image.\ios\unzip-c3640-js-mz.124-
10.bin model=3640console=3006ram=128二,confreg=0x2142exec_area=64mmap=False slotl=NM-16ESW fl/11=PC6f0/0fl/12=PC7f0/0[[router RI]]image=..\ios\unzip-c7200-is-mz.122-
37.bin model=7200console=3001npe=npe-400ram=64confreg=0x2142exec_area=64mmap false slotO=PA-C7200-I0-FE slotl=PA-2FE-TX二[[router R2]]image.\ios\unzip-c7200-is-mz.122-
37.bin model=7200console=3002npe=npe-400ram二,64二confreg=0x2142exec_area=64mmap=falseslotO=PA-C7200-I0-FE slotl=PA-2FE-TX[[router PCI]]model=2621ram=20image=..\ios\unzip-c2600-i-mz.121-
3.T.bin mmap=False confreg=0x2142console=3007[[router PC2]]model=2621ram=20image=..\ios\unzip-c2600-i-mz.121-
3.T.bin mmap=False confreg=0x2142console=3008[[router PC3]]model=2621ram=20image=,.\ios\unzip-c2600-i-mz.121-
3.T.bin mmap=False confreg=0x2142console=3009[[router PC4]]model=2621ram=20image.\ios\unzip-c2600-i-mz.121-
3.T.bin mmap=False二,confreg=0x2142console=3010[[router PC5]]model=2621ram=20image=..\ios\unzip-c2600-i-mz.121-
3.T.bin mmapFalse二confreg=0x2142console=3011[[router PC6]]model=2621ram=20image=..\ios\unzip-c2600-i-mz.121-
3.T.bin mmap=False confreg=0x2142console=3012[[router PC7]]model=2621ram20二image.\ios\unzip-c2600-i-mz.121-
3.T.bin mmap=False confreg=0x2142console=3013二.
3.1用一台交换机连接两台主机组成局域网,并通过在两台主机上的配置完成局域网内部的主机之间的互通1在控制台启动SW4,PC6,PC7=start SW4100-C3600JSW4f started=start PC6100-C2600PC6」:started=start PC7100-C2600“PCT:started=listName TypeState Seruei*ConsoleRI7200stopped localhost72003001R27200stopped localhost72003002SW13640stopped localhost72003003SU23640stopped localhost72003004SW33640stopped localhost72003005SU43640running localhost72003006PCI c2600stopped localhost72003007PC2c2600stopped localhost72003008PC3c2600stopped localhost72003009PC4c2600stopped localhost72003010PC5c2600stopped localhost72003011PC6c2600running localhost72003012PC7c2600running localhost72003013=2telnet到SW4,PC6,PC7上进行配置PC6的f0/0接口配成
2.
1.
1.4PC6configflinterface f0/0PC6config-if ttnoshutdownPC6con£ig-if#00:04:17zLINK-3-UPDOWNInterface FastEthernet0/0,changed state toup00:04:18XLINEPROT0-5-UPDOWNLine protocolon Interface FastEthernet0/0,chang edstate toup的接口配成PC7f0/0PC7config#interface£0/0PC7config-ifttno shutdownPC7config-if#,00519ZLINK-3-UPD0WNInterface FastEthernet0/0,changed statetoup00:05:20XLINEPROT0-5-UPDOWNLine protocolon InterfaceFastEthernet0/0,chang edstate toup3测试PC6与PC7能否ping通Type escapesequence toabort.Sending5,100-byte ICMPEchos to
2.
1.
1.6,timeout is2seconds♦♦♦♦Success rateis80percent4/5〉/round-trip nin/aug/nax=1/21/32nsType escapesequence toabort.Sending5,100-byte ICMPEchos to
2.
1.
1.4,.timeout is2secondsSuccess rateis100percent5/5〉」round-trip nin/aug/nax=28/36/60ns
3.2用两台交换机将三台主机组成一个局域网1在控制台启动SW2,SW4,PC3,PC6,PC7=start SU2100-C3600JSW2f started=start PC3100-C2600JPC3J started=listName TypeState SeruerConsoleRI7200stopped localhost72003001R27200stopped localhost72003002SW13640stopped localhost72003003SW23640running localhost72003004SW33640stopped localhost72003005SW43640running localhost72003006PCI c2600stopped localhost72003007PC2c2600stopped localhost72003008PC3c2600running localhost72003009PC4c2600stopped localhost72003010PC5c2600stopped localhost72003011PC6c2600running localhost72003012PC7c2600running localhost720030132telnet到SW2,SW4,PC3,PC6,PC7上进行配置PC3config#interface£0/0PC3config-ifttno shutdownPC3config-if#00:0612zLINK-3-UPDOWNInterfaceFastEthernet0/0,changed statetoup00:06:13XLINEPROT0-5-UPDOWNLine protocolon InterfaceFastEthernet0/0,chang edstatetoup的接口配成PC6f0/0PC6config#interface f0/0PC6config-ifttno shutdownPC6config-iftt00:04:17zLINK-3-UPD0WNInterfaceFastEthernet0/0,changed statetoup00:04:18XLINEPROT0-5-UPDOWNLine protocolon InterfaceFastEthernet0/0,chang edstatetoup的接口配成PC7f0/
02.LL6PC7config#interface£0/0PC7config-ifttno shutdownPC7config-if#U00519zLI NK-3-UPD0WNInterfaceFastEthernet0/0,.changed statetoup00:05:20XLINEPROT0-5-UPDOWNLine protocolon InterfaceFastEthernet0/0,chang edstatetoup3测试PC3与PC6,PC7能否ping通Ping PC6Type escapesequence toabort.Sending5,100-byte ICMPEchos to
2.
1.
1.4^timeout is2seconds♦♦♦♦••••・Success rateis80percent4/5,round-trip nin/aug/nax=16/31/48msType escapesequence toabort.Sending5/100-byte ICMPEchos toft fttineout is2secondsround-tripSuccess rateis80percent4/5〈〉,nin/aug/nax=28/32/36nsPing PC
73.3用一台交换机SW4连接两台主机PC6和PC7组成局域网,在SW4上建立VLAN2和VLAN3两个虚拟局域网,并将两台主机PC6和PC7配置到同一个网段上,观察这两台主机是否能够实现互相通信1启动SW4,PC6和PC7在上面的实验中已启动2telnet到SW4,PC6,PC7上进行配置的接口配成PC6f0/
02.
1.
1.4PC6config#interface£0/0PC6config-ifttno shutdownPC6config-if#00:04:17zLINK-3-UPD0WNInterfaceFastEthernet0/0,changed statetoup00:04:18XLINEPROT0-5-UPDOWNLine protocolon InterfaceFastEthernet0/0,chang edstatetoup的接口配成PC7fO/OPC7config#interface£0/0PC7config-if#ipadd
2.
1.
1.
6255.
0.
0.0PC7config-ifttno shutdownPC7config-if#U00519zLI NK-3-UPDOWNInterfaceFastEthernet0/0,.changed statetoup00:05:20XLINEPROT0-5-UPDOWNLine protocolon InterfaceFastEthernet0/0,chang edstatetoup3将SW4的端口fl/11配成vlan2创建vlan2和vlan3SU4ttulan databaseSW4ulan#ulan2ULAN2addedName ULAN0002SU4ulanttulan3ULAN3added NameULAN0003SW4ulan#exit APPLYcompleted.Exiting....激活和vlan2vlan3SW4ttconfig tEnterconfigurationcommands,oi SW4configftinterface ulan2SW4config-if#exitSW4config#interface ulan3SW4con£ig-if#exit配置端口fl/11SW4config#interface fl/11SW4config-if#switchport accessulan2SW4config-if#e-Hlar100:
3345.243XLINEPROT0-5-UPDOWNLine protocolon InterfaceUlan2cha ngedstateto」upxit4将SW4的端口fl/12配成vlan3SW4config#interface£1/12SW4config-if#switchport accessulan3SW4config-if#*Mar100:34:
06.351ZLINEPROT0-5-UPDOWNLine protocolon InterfaceUlan3,cha ngedstate toup5PC6和PC7能否ping通Type escapesequence toabort.Sending100-byte ICMPEchos totimeout is2secondsSuccess rateis0percent0/5Type escapesequence toabort.Sending5-100-byte ICMPEchos totimeout is2secondsSuccess rateis0percent0/5和互相是不通的PC6PC7ping6将SW4的端口fl/12配成vlan2SW4conf igttinterface£1/12SW4config-if ttswitchportaccessulan2SW4config-if#Wlar100:39:
56.743zLINEPROTO-5-UPDOWN ngedstatetodown⑺PC6和PC7能否ping通■一Type escapesequence toabort.Sending5,100-byte ICMPEchos to
2.
1.
1.6^timeout is2seconds♦♦♦♦♦Success rateis100percent5/5round-trip nin/avg/nax=16/31/48nsType escapesequence toabort.Sending5/100-byte ICMPEchos to
2.
1.
1.4,timeout is2seconds♦♦♦♦♦Success rateis100percent5/5,round-trip min/aug/inax=20/33/48ms和是可以通了PC6PC7ping
3.4用两台交换机SW2和SW4连接两台主机PC3和PC6组成局域网,在SW2和SW4上建立虚拟局域网VLAN2,并将两台主机PC4和PC5所连接的接口都配置到VLAN2中将两台主机PC3和PC6都配置到同一个网段上,观察这两台主机是否能够实现互相通信1启动SW2,SW4,PC3,PC6在之前的实验中都启动过了2telnet到SW2,SW4,PC3,PC6上进行配置的接口配成PC3f0/0PC3config#interface£0/0PC3config-ifttno shutdownPC3config-if#00:0612zLINK-3-UPDOWNInterfaceFastEthernet0/0,changed statetoup00:06:13XLINEPROT0-5-UPDOWNLine protocolon InterfaceFastEthernet0/0,chang edstatetoup。
个人认证
优秀文档
获得点赞 0