trunk.docx
- 文档编号:13119714
- 上传时间:2023-06-11
- 格式:DOCX
- 页数:17
- 大小:24.52KB
trunk.docx
《trunk.docx》由会员分享,可在线阅读,更多相关《trunk.docx(17页珍藏版)》请在冰点文库上搜索。
trunk
Pc1,pc4——vlan2;
Pc2,pc5——vlan3;
Swi1,sw2之间作trunk
Sw1配置:
sw1#shrun
Buildingconfiguration...
Currentconfiguration:
1033bytes
!
version12.4
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnamesw1
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
memory-sizeiomem5
!
!
ipcef
noipdomainlookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interfaceFastEthernet1/0
!
interfaceFastEthernet1/1
switchportmodetrunk
!
interfaceFastEthernet1/2
!
interfaceFastEthernet1/3
!
interfaceFastEthernet1/4
!
interfaceFastEthernet1/5
!
interfaceFastEthernet1/6
!
interfaceFastEthernet1/7
!
interfaceFastEthernet1/8
!
interfaceFastEthernet1/9
!
interfaceFastEthernet1/10
!
interfaceFastEthernet1/11
switchportaccessvlan2
duplexfull
speed100
!
interfaceFastEthernet1/12
switchportaccessvlan3
duplexfull
speed100
!
interfaceFastEthernet1/13
!
interfaceFastEthernet1/14
!
interfaceFastEthernet1/15
!
interfaceVlan1
noipaddress
!
iphttpserver
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
!
!
End
SW2配置:
sw2#shrun
Buildingconfiguration...
Currentconfiguration:
1033bytes
!
version12.4
servicetimestampsdebugdatetimemsec
servicetimestampslogdatetimemsec
noservicepassword-encryption
!
hostnamesw2
!
boot-start-marker
boot-end-marker
!
!
noaaanew-model
memory-sizeiomem5
!
!
ipcef
noipdomainlookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interfaceFastEthernet1/0
!
interfaceFastEthernet1/1
!
interfaceFastEthernet1/2
switchportmodetrunk
!
interfaceFastEthernet1/3
!
interfaceFastEthernet1/4
!
interfaceFastEthernet1/5
!
interfaceFastEthernet1/6
!
interfaceFastEthernet1/7
!
interfaceFastEthernet1/8
!
interfaceFastEthernet1/9
!
interfaceFastEthernet1/10
!
interfaceFastEthernet1/11
switchportaccessvlan2
duplexfull
speed100
!
interfaceFastEthernet1/12
switchportaccessvlan3
duplexfull
speed100
!
interfaceFastEthernet1/13
!
interfaceFastEthernet1/14
!
interfaceFastEthernet1/15
!
interfaceVlan1
noipaddress
!
iphttpserver
!
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
linecon0
exec-timeout00
loggingsynchronous
lineaux0
linevty04
!
!
End
PC1配置:
PC1#shrun
Buildingconfiguration...
Currentconfiguration:
354bytes
!
version12.2
servicetimestampsdebuguptime
servicetimestampsloguptime
noservicepassword-encryption
!
hostnameRouter
!
!
ipsubnet-zero
noiprouting
!
!
!
!
!
!
interfaceFastEthernet0/0
ipaddress192.168.1.1255.255.255.0
noiproute-cache
speed100
full-duplex
!
ipclassless
iphttpserver
!
!
linecon0
lineaux0
linevty04
!
End
PC2配置:
PC2#shrun
Buildingconfiguration...
Currentconfiguration:
354bytes
!
version12.2
servicetimestampsdebuguptime
servicetimestampsloguptime
noservicepassword-encryption
!
hostnameRouter
!
!
ipsubnet-zero
noiprouting
!
!
!
!
!
!
interfaceFastEthernet0/0
ipaddress192.168.2.1255.255.255.0
noiproute-cache
speed100
full-duplex
!
ipclassless
iphttpserver
!
!
linecon0
lineaux0
linevty04
!
End
PC4配置:
PC4#shrun
Buildingconfiguration...
Currentconfiguration:
354bytes
!
version12.2
servicetimestampsdebuguptime
servicetimestampsloguptime
noservicepassword-encryption
!
hostnameRouter
!
!
ipsubnet-zero
noiprouting
!
!
!
!
!
!
interfaceFastEthernet0/0
ipaddress192.168.1.2255.255.255.0
noiproute-cache
speed100
full-duplex
!
ipclassless
iphttpserver
!
!
linecon0
lineaux0
linevty04
!
End
PC5配置:
PC5#shrun
Buildingconfiguration...
Currentconfiguration:
354bytes
!
version12.2
servicetimestampsdebuguptime
servicetimestampsloguptime
noservicepassword-encryption
!
hostnameRouter
!
!
ipsubnet-zero
noiprouting
!
!
!
!
!
!
interfaceFastEthernet0/0
ipaddress192.168.2.2255.255.255.0
noiproute-cache
speed100
full-duplex
!
ipclassless
iphttpserver
!
!
linecon0
lineaux0
linevty04
!
End
SW1上
sw1#shvlan-switch
VLANNameStatusPorts
----------------------------------------------------------------------------
1defaultactiveFa1/0,Fa1/2,Fa1/3,Fa1/4
Fa1/5,Fa1/6,Fa1/7,Fa1/8
Fa1/9,Fa1/10,Fa1/13,Fa1/14
Fa1/15
2zsn1activeFa1/11
3zsn2activeFa1/12
1002fddi-defaultactive
1003token-ring-defaultactive
1004fddinet-defaultactive
1005trnet-defaultactive
VLANTypeSAIDMTUParentRingNoBridgeNoStpBrdgModeTrans1Trans2
--------------------------------------------------------------------
1enet1000011500-----10021003
2enet1000021500-----00
3enet1000031500-----00
1002fddi1010021500-----11003
1003tr101003150010050--srb11002
1004fdnet1010041500--1ibm-00
1005trnet1010051500--1ibm-00
SW2上
sw2#shvlan-switch
VLANNameStatusPorts
----------------------------------------------------------------------------
1defaultactiveFa1/0,Fa1/1,Fa1/3,Fa1/4
Fa1/5,Fa1/6,Fa1/7,Fa1/8
Fa1/9,Fa1/10,Fa1/13,Fa1/14
Fa1/15
2zsn1activeFa1/11
3zsn2activeFa1/12
1002fddi-defaultactive
1003token-ring-defaultactive
1004fddinet-defaultactive
1005trnet-defaultactive
VLANTypeSAIDMTUParentRingNoBridgeNoStpBrdgModeTrans1Trans2
--------------------------------------------------------------------
1enet1000011500-----10021003
2enet1000021500-----00
3enet1000031500-----00
1002fddi1010021500-0---11003
1003tr101003150010050--srb11002
1004fdnet1010041500--1ibm-00
1005trnet1010051500--1ibm-00
PC1pingPC4
PC1#ping192.168.1.2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.1.2,timeoutis2seconds:
.!
!
!
!
Successrateis80percent(4/5),round-tripmin/avg/max=96/118/144ms
PC1#ping192.168.1.2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.1.2,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=52/111/144ms
PC2pingPC5
PC2#ping192.168.2.2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.2.2,timeoutis2seconds:
.!
!
!
!
Successrateis80percent(4/5),round-tripmin/avg/max=84/93/96ms
PC2#ping192.168.2.2
Typeescapesequencetoabort.
Sending5,100-byteICMPEchosto192.168.2.2,timeoutis2seconds:
!
!
!
!
!
Successrateis100percent(5/5),round-tripmin/avg/max=76/101/120ms
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- trunk