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)#switchp
2、ort 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 fastetherne
3、t 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(config-if-Fast
4、Ethernet 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_02#configu
5、re 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-FastEthernet 0/5)
6、#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 Switchport M
7、ode 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 TTL=128R
8、eply 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 192.168.
9、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/1S3760_0
10、2(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-if-VLAN
11、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(config)#测
12、试结果: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:S2328G_01
13、#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% Unknown co
14、mmand.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-TOPOTRAP: To
15、pology 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 : 15BridgeMaxAge : 2
16、0BridgeHelloTime : 2BridgeForwardDelay : 15MaxHops: 20TxHoldCount : 3PathCostMethod : LongBPDUGuard : DisabledBPDUFilter : DisabledLoopGuardDef : DisabledBridgeAddr : 001a.a948.0247Priority: 4096TimeSinceTopologyChange : 0d:0h:1m:3sTopologyChanges : 1DesignatedRoot : 1000.001a.a948.0247RootCost : 0R
17、ootPort : 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: New Roo
18、t 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 : DisabledBPD
19、UFilter : DisabledLoopGuardDef : DisabledBridgeAddr : 001a.a948.02a7Priority: 32768TimeSinceTopologyChange : 0d:0h:3m:36sTopologyChanges : 1DesignatedRoot : 1000.001a.a948.0247RootCost : 200000RootPort : 1S2328G_02(config)#*Mar 2 18:08:53: %SPANTREE-5-TOPOTRAP: Topology Change Trap.Switch3S3760_01en
20、 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 Address i
21、s 001S3760_01 (config)#show spanning-treeStpVersion : STPSysStpStatus : ENABLEDMaxAge : 20HelloTime : 2ForwardDelay : 15BridgeMaxAge : 20BridgeHelloTime : 2BridgeForwardDelay : 15MaxHops: 20TxHoldCount : 3PathCostMethod : LongBPDUGuard : DisabledBPDUFilter : DisabledLoopGuardDef : DisabledBridgeAddr
22、 : 001a.a948.02a7Priority: 32768TimeSinceTopologyChange : 0d:0h:3m:36sTopologyChanges : 1DesignatedRoot : 1000.001a.a948.0247RootCost : 200000RootPort : 2S3760_01 (config)#*Mar 2 18:08:53: %SPANTREE-5-TOPOTRAP: Topology Change Trap.实验四:Switch 1% Incomplete command.S2328G_02(config)#vlan 10S2328G_02(
23、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-FastEthernet 0/5)#endS2328G_02#*Mar 2 18:42:05: %SYS-5-CONFIG_I: Configured from console by consoleS2328G_02#show vlan i*Ma
24、r 2 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:
25、 Line 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
26、/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, 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 termina
28、lEnter 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
29、_02(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 sta
30、te 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, chang
31、ed 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 summaryAggrega
32、tePort 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)#inter
33、face 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 10V
34、LAN 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 detecte
35、d at 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
36、_01(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 Aggregat
37、ePort 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 dow
38、n.S2328G_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
39、,state 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 19
©2010-2024 宁波自信网络信息技术有限公司 版权所有
客服电话:4008-655-100 投诉/维权电话:4009-655-100