《网络系统集成实践(共58页).doc》由会员分享,可在线阅读,更多相关《网络系统集成实践(共58页).doc(58页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、精选优质文档-倾情为你奉上实验一Switch1:S2328G_01en 14Password:S2328G_01#configure terminalEnter configuration commands, one per line. End with CNTL/Z.S2328G_01(config)#vlan 10S2328G_01(config-vlan)#name salesS2328G_01(config-vlan)#exitS2328G_01(config)#interface fastethernet 0/5S2328G_01(config-if-FastEthernet 0/5
2、)#switchport access vlan 10S2328G_01(config-if-FastEthernet 0/5)#show vlan id 10VLAN Name Status Ports- - - - 10 sales STATIC Fa0/5, Fa0/24S2328G_01(config-if-FastEthernet 0/5)#exitS2328G_01(config)#vlan 20S2328G_01(config-vlan)#name technicalS2328G_01(config-vlan)#exitS2328G_01(config)#interface fa
3、stethernet 0/15S2328G_01(config-if-FastEthernet 0/15)#switchport access vlan 20S2328G_01(config-if-FastEthernet 0/15)#show vlan id 20VLAN Name Status Ports- - - - 20 technical STATIC Fa0/15, Fa0/24S2328G_01(config-if-FastEthernet 0/15)#exitS2328G_01(config)#interface fastethernet 0/24S2328G_01(confi
4、g-if-FastEthernet 0/24)#switchport mode trunkS2328G_01(config-if-FastEthernet 0/24)#$ 0/24 switchportInterface Switchport Mode Access Native Protected VLAN lists- - - - - - -FastEthernet 0/24 enabled TRUNK 1 1 Disabled ALLS2328G_01(config-if-FastEthernet 0/24)#Switch2:S2328G_02en 14Password:S2328G_0
5、2#configure terminalEnter configuration commands, one per line. End with CNTL/Z.S2328G_02(config)#vlan 10S2328G_02(config-vlan)#name salesS2328G_02(config-vlan)#exitS2328G_02(config)#interface fastethernet 0/5S2328G_02(config-if-FastEthernet 0/5)#switchport access vlan 10S2328G_02(config-if-FastEthe
6、rnet 0/5)#show vlan id 10VLAN Name Status Ports- - - - 10 sales STATIC Fa0/5, Fa0/24S2328G_02(config-if-FastEthernet 0/5)#exitS2328G_02(config)#interface fastethernet 0/24S2328G_02(config-if-FastEthernet 0/24)#switchport mode trunkS2328G_02(config-if-FastEthernet 0/24)#$ 0/24 switchportInterface Swi
7、tchport Mode Access Native Protected VLAN lists- - - - - - -FastEthernet 0/24 enabled TRUNK 1 1 Disabled ALLS2328G_02(config-if-FastEthernet 0/24)#测试结果:PC1 ping PC3PC1:C:Documents and Settingsnbuping 192.168.10.30Pinging 192.168.10.30 with 32 bytes of data:Reply from 192.168.10.30: bytes=32 time=1ms
8、 TTL=128Reply from 192.168.10.30: bytes=32 time1ms TTL=128Reply from 192.168.10.30: bytes=32 time1ms TTL=128Reply from 192.168.10.30: bytes=32 timeping 192.168.10.30Pinging 192.168.10.30 with 32 bytes of data:Request timed out.Request timed out.Request timed out.Request timed out.Ping statistics for
9、 192.168.10.30: Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),C:Documents and Settingsnbu实验二:实验代码:S3760_02(config)#configure terminal% Unknown command.S3760_02(config)#vlan 10S3760_02(config-vlan)#exitS3760_02(config)#vlan 20S3760_02(config-vlan)#exitS3760_02(config)#interface fastethernet 0
10、/1S3760_02(config-if-FastEthernet 0/1)#switchport access vlan 10S3760_02(config-if-FastEthernet 0/1)#exitS3760_02(config)#interface fastethernet 0/2S3760_02(config-if-FastEthernet 0/2)#switchport access vlan 20S3760_02(config-if-FastEthernet 0/2)#exitS3760_02(config)#interface vlan 10S3760_02(config
11、-if-VLAN 10)#ip address 192.168.10.1 255.255.255.0S3760_02(config-if-VLAN 10)#no shutdownS3760_02(config-if-VLAN 10)#exitS3760_02(config)#interface vlan 20S3760_02(config-if-VLAN 20)#ip address 192.168.20.1 255.255.255.0S3760_02(config-if-VLAN 20)#no shutdownS3760_02(config-if-VLAN 20)#exitS3760_02(
12、config)#测试结果:C:Documents and Settingsnbuping 192.168.20.2Pinging 192.168.20.2 with 32 bytes of data:Reply from 192.168.20.2: bytes=32 time=8ms TTL=127Reply from 192.168.20.2: bytes=32 time1ms TTL=127Reply from 192.168.20.2: bytes=32 time1ms TTL=127Reply from 192.168.20.2: bytes=32 timeen 14Password:
13、S2328G_01#spanning-treeTranslating spanning-tree.% Unrecognized host or address, or protocol not running.S2328G_01#spanning-tree priority 4096% Unknown command.S2328G_01#spanning-treeTranslating spanning-tree.% Unrecognized host or address, or protocol not running.S2328G_01#spanning-tree mode stp% U
14、nknown command.S2328G_01#exitS2328G_01 CON0 is now availablePress RETURN to get startedS2328G_01en 14Password:S2328G_01#configure terminalEnter configuration commands, one per line. End with CNTL/Z.S2328G_01(config)#spanning-treeEnable spanning-tree.S2328G_01(config)#*Mar 2 17:50:27: %SPANTREE-5-TOP
15、OTRAP: Topology Change Traor instance 0.S2328G_01(config)#spanning-tree mode stpS2328G_01(config)#spanning-tree priority 4096S2328G_01(config)#show spanning-*Mar 2 17:51:25: %SPANTREE-5-TOPOTRAP: Topol Change Trap.StpVersion : STPSysStpStatus : ENABLEDMaxAge : 20HelloTime : 2ForwardDelay : 15BridgeM
16、axAge : 20BridgeHelloTime : 2BridgeForwardDelay : 15MaxHops: 20TxHoldCount : 3PathCostMethod : LongBPDUGuard : DisabledBPDUFilter : DisabledLoopGuardDef : DisabledBridgeAddr : 001a.a948.0247Priority: 4096TimeSinceTopologyChange : 0d:0h:1m:3sTopologyChanges : 1DesignatedRoot : 1000.001a.a948.0247Root
17、Cost : 0RootPort : 0S2328G_01(config)#Switch2S2328G_02en 14Password:S2328G_02#conS2328G_02#configure temS2328G_02#configure terS2328G_02#configure terminalEnter configuration commands, one per line. End with CNTL/Z.S2328G_02(config)#spanning-treeS2328G_02(config)#spanning-tree mode stp.a948.0247.ged
18、: New Root Port is FastEthernet 0/24. New Root Mac Address is 001S2328G_02(config)#show spanning-treeStpVersion : STPSysStpStatus : ENABLEDMaxAge : 20HelloTime : 2ForwardDelay : 15BridgeMaxAge : 20BridgeHelloTime : 2BridgeForwardDelay : 15MaxHops: 20TxHoldCount : 3PathCostMethod : LongBPDUGuard : Di
19、sabledBPDUFilter : DisabledLoopGuardDef : DisabledBridgeAddr : 001a.a948.02a7Priority: 32768TimeSinceTopologyChange : 0d:0h:3m:36sTopologyChanges : 1DesignatedRoot : 1000.001a.a948.0247RootCost : RootPort : 1S2328G_02(config)#*Mar 2 18:08:53: %SPANTREE-5-TOPOTRAP: Topology Change Trap.Switch3S3760_0
20、1en 14Password:S3760_01#conS3760_01#configure temS3760_01#configure terS3760_01#configure terminalEnter configuration commands, one per line. End with CNTL/Z.S3760_01 (config)#spanning-treeS3760_01 (config)#spanning-tree mode stp.a948.0247.ged: New Root Port is FastEthernet 0/24. New Root Mac Addres
21、s is 001S3760_01 (config)#show spanning-treeStpVersion : STPSysStpStatus : ENABLEDMaxAge : 20HelloTime : 2ForwardDelay : 15BridgeMaxAge : 20BridgeHelloTime : 2BridgeForwardDelay : 15MaxHops: 20TxHoldCount : 3PathCostMethod : LongBPDUGuard : DisabledBPDUFilter : DisabledLoopGuardDef : DisabledBridgeA
22、ddr : 001a.a948.02a7Priority: 32768TimeSinceTopologyChange : 0d:0h:3m:36sTopologyChanges : 1DesignatedRoot : 1000.001a.a948.0247RootCost : RootPort : 2S3760_01 (config)#*Mar 2 18:08:53: %SPANTREE-5-TOPOTRAP: Topology Change Trap.实验四:Switch 1% Incomplete command.S2328G_02(config)#vlan 10S2328G_02(con
23、fig-vlan)#name salesS2328G_02(config-vlan)#exitS2328G_02(config)#interface fastethernet 0/5S2328G_02(config-if-FastEthernet 0/5)#switchport access vlan 10S2328G_02(config-if-FastEthernet 0/5)#endS2328G_02#*Mar 2 18:42:05: %SYS-5-CONFIG_I: Configured from console by consoleS2328G_02#show vlan i*Mar 2
24、 18:42:20: %LINK-3-UPDOWN: Interface FastEthernet 0/1, changed state to up.*Mar 2 18:42:20: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet 0/1, changed state to up.d*Mar 2 18:42:21: %LINK-3-UPDOWN: Interface FastEthernet 0/2, changed state toup. *Mar 2 18:42:21: %LINEPROTO-5-UPDOWN: Li
25、ne protocol on Interface FastEthernet0/2, changed state to up.*Mar 2 18:42:24: %SPANTREE-5-TOPOTRAP: Topology Change Trap for instance 0.*Mar 2 18:42:25: %SPANTREE-5-TOPOTRAP: Topology Change Trap for instance 0.VLAN Name Status Ports- - - - 1 VLAN0001 STATIC Fa0/1, Fa0/2, Fa0/3, Fa0/4 Fa0/6, Fa0/7,
26、 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, Gi0/25 Gi0/26 10 sales STATIC Fa0/5S2328G_02#configure terminalEnter configuration commands, one per line. End with CNTL/Z.S2328G_02(config)#interface aggergateport 1 %
27、Invalid input detected at marker.S2328G_02(config)#switchport mode trunk % Invalid input detected at marker.S2328G_02(config)#exitS2328G_02#*Mar 2 18:43:55: %SYS-5-CONFIG_I: Configured from console by consoleS2328G_02#interface range fastethernet 0/1-2% Unknown command.S2328G_02#configure terminalEn
28、ter configuration commands, one per line. End with CNTL/Z.S2328G_02(config)#interface aggregateport 1S2328G_02(config-if-AggregatePort 1)#switchport mode trunkS2328G_02(config-if-AggregatePort 1)#exitS2328G_02(config)#interface range fastethernet 0/1-2S2328G_02(config-if-range)#port-group 1S2328G_02
29、(config-if-range)#en*Mar 2 18:47:13: %LINK-5-CHANGED: Interface FastEthernet 0/1, changed state to administratively down.*Mar 2 18:47:13: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet 0/1, changed state to down.*Mar 2 18:47:13: %LINK-3-UPDOWN: Interface AggregatePort 1, changed state
30、to up.d*Mar 2 18:47:13: %LINEPROTO-5-UPDOWN: Line protocol on Interface AggregatePort 1, changed state to up.*Mar 2 18:47:13: %LINK-5-CHANGED: Interface FastEthernet 0/2, changed state toadministratively down.*Mar 2 18:47:13: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet 0/2, changed
31、state to down.*Mar 2 18:47:16: %SPANTREE-5-TOPOTRAP: Topology Change Trap for instance 0.S2328G_02#*Mar 2 18:47:22: %SYS-5-CONFIG_I: Configured from console by consoleS2328G_02#endTranslating end.% Unrecognized host or address, or protocol not running.S2328G_02#show aggregateport 1 summaryAggregateP
32、ort MaxPorts SwitchPort Mode Ports- - - - -Ag1 8 Enabled TRUNK Fa0/1 ,Fa0/2S2328G_02#Switch2Password:S2328G_01#configure terminalEnter configuration commands, one per line. End with CNTL/Z.S2328G_01(config)#vlan 10S2328G_01(config-vlan)#name salesS2328G_01(config-vlan)#exitS2328G_01(config)#interfac
33、e fastehernet 0/5 % Invalid input detected at marker.S2328G_01(config)#interface fastethernet 0/5S2328G_01(config-if-FastEthernet 0/5)#switchport access vlan 10S2328G_01(config-if-FastEthernet 0/5)#endS2328G_01#*Mar 2 18:30:03: %SYS-5-CONFIG_I: Configured from console byS2328G_01#show vlan id 10VLAN
34、 Name Status Ports- - - - 10 sales STATIC Fa0/5S2328G_01#exitS2328G_01 CON0 is now availablePress RETURN to get startedS2328G_01en 14Password:S2328G_01#configure terminalEnter configuration commands, one per line. End with CNTL/Z.S2328G_01(config)#interface aggergateport 1 % Invalid input detected a
35、t marker.S2328G_01(config)#interface aggregateport 1S2328G_01(config-if-AggregatePort 1)#switchport mode trunkS2328G_01(config-if-AggregatePort 1)#exitS2328G_01(config)#interface range fastethernrt 0/1-2 % Invalid input detected at marker.S2328G_01(config)#interface range fastethernet 0/1-2S2328G_01
36、(config-if-range)#port-group 1S2328G_01(config-if-range)#*Mar 2 18:33:00: %LINK-5-CHANGED: Interfacernet 0/1, changed state to administratively down.e*Mar 2 18:33:00: %LINEPROTO-5-UPDOWN: Line protocol on Interface Fast0/1, changed state to down.*Mar 2 18:33:00: %LINK-3-UPDOWN: Interface AggregatePo
37、rt 1, changed st.*Mar 2 18:33:00: %LINEPROTO-5-UPDOWN: Line protocol on Interface Aggre1, changed state to up.n*Mar 2 18:33:00: %LINK-5-CHANGED: Interface FastEthernet 0/2, changed administratively down.*Mar 2 18:33:00: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastE/2, changed state to down.S
38、2328G_01#*Mar 2 18:33:11: %SYS-5-CONFIG_I: Configured from console byS2328G_01#endTranslating end.% Unrecognized host or address, or protocol not running.S2328G_01#show arrregateport 1 summary % Invalid input detected at marker.S2328G_01#*Mar 2 18:33:52: %LINK-3-UPDOWN: Interface FastEthernet 0/5,st
39、ate to down.*Mar 2 18:33:52: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastE/5, changed state to down.p.ar 2 18:33:55: %LINK-3-UPDOWN: Interface FastEthernet 0/5, changed s*Mar 2 18:33:55: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastE/5, changed state to up.S2328G_01#show aggregateport 1 summaryAggregatePort MaxPorts SwitchPort Mode Ports- - - - -Ag1 8 Enabled TRUNK Fa0/1 ,Fa0/2S2328G_01#测试结果:两条:C:Documents and Settingsnbuping 192.168.10.30Pinging 192.168.10.30 with 32 bytes of data:Reply from 1
限制150内