网络系统集成实践.docx
- 文档编号:6303949
- 上传时间:2023-01-05
- 格式:DOCX
- 页数:56
- 大小:141.99KB
网络系统集成实践.docx
《网络系统集成实践.docx》由会员分享,可在线阅读,更多相关《网络系统集成实践.docx(56页珍藏版)》请在冰豆网上搜索。
网络系统集成实践
实验
Switch1:
S2328G_01>en14
Password:
S2328G_01#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
S2328G_01(config)#vlan10
S2328G_01(config-vlan)#namesales
S2328G_01(config-vlan)#exit
S2328G_01(config)#interfacefastethernet0/5
S2328G_01(config-if-FastEthernet0/5)#switchportaccessvlan10
S2328G_01(config-if-FastEthernet0/5)#showvlanid10
VLANNameStatusPorts
10salesSTATICFa0/5,Fa0/24
S2328G_01(config-if-FastEthernet0/5)#exit
S2328G_01(config)#vlan20
S2328G_01(config-vlan)#nametechnical
S2328G_01(config-vlan)#exit
S2328G_01(config)#interfacefastethernet0/15
S2328G_01(config-if-FastEthernet0/15)#switchportaccessvlan20S2328G_01(config-if-FastEthernet0/15)#showvlanid20VLANNameStatusPorts
20technical
STATICFa0/15,Fa0/24
S2328G_01(config-if-FastEthernet0/15)#exit
S2328G_01(config)#interfacefastethernet0/24
S2328G_01(config-if-FastEthernet0/24)#switchportmodetrunk
S2328G_01(config-if-FastEthernet0/24)#$0/24switchport
Interface
SwitchportModeAccessNativeProtectedVLANlists
FastEthernet0/24
enabledTRUNK11DisabledALL
S2328G_01(config-if-FastEthernet0/24)#
Switch2:
S2328G_02>en14
Password:
S2328G_02#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
S2328G_02(config)#vlan10
S2328G_02(config-vlan)#namesales
S2328G_02(config-vlan)#exit
S2328G_02(config)#interfacefastethernet0/5
S2328G_02(config-if-FastEthernet0/5)#switchportaccessvlan10
S2328G_02(config-if-FastEthernet0/5)#showvlanid10
VLANNameStatusPorts
10sales
STATICFa0/5,Fa0/24
S2328G_02(config-if-FastEthernet0/5)#exit
S2328G_02(config)#interfacefastethernet0/24
S2328G_02(config-if-FastEthernet0/24)#switchportmodetrunk
S2328G_02(config-if-FastEthernet0/24)#$0/24switchport
Interface
SwitchportModeAccessNativeProtectedVLANlists
FastEthernet0/24
enabledTRUNK11DisabledALL
S2328G_02(config-if-FastEthernet0/24)#
测试结果:
PC1pingPC3
PC1:
C:
\DocumentsandSettings\nbu>ping192.168.10.30
Pinging192.168.10.30with32bytesofdata:
Replyfrom192.168.10.30:
bytes=32time=1msTTL=128
Replyfrom192.168.10.30:
bytes=32time<1msTTL=128
Replyfrom192.168.10.30:
bytes=32time<1msTTL=128
Replyfrom192.168.10.30:
bytes=32time<1msTTL=128
Pingstatisticsfor192.168.10.30:
Packets:
Sent=4,Received=4,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=0ms,Maximum=1ms,Average=0ms
PC2:
C:
\DocumentsandSettings\nbu>ping192.168.10.30
Pinging192.168.10.30with32bytesofdata:
Requesttimedout.
Requesttimedout.
Requesttimedout.
Requesttimedout.
Pingstatisticsfor192.168.10.30:
Packets:
Sent=4,Received=0,Lost=4(100%loss),
C:
\DocumentsandSettings\nbu>
实验
实验代码:
S3760_02(config)#configureterminal%Unknowncommand.
S3760_02(config)#vlan10
S3760_02(config-vlan)#exit
S3760_02(config)#vlan20
S3760_02(config-vlan)#exit
S3760_02(config)#interfacefastethernet0/1
S3760_02(config-if-FastEthernet0/1)#switchportaccessvlan10
S3760_02(config-if-FastEthernet0/1)#exit
S3760_02(config)#interfacefastethernet0/2
S3760_02(config-if-FastEthernet0/2)#switchportaccessvlan20
S3760_02(config-if-FastEthernet0/2)#exit
S3760_02(config)#interfacevlan10
S3760_02(config-if-VLAN
S3760_02(config-if-VLAN
S3760_02(config-if-VLAN
10)#ipaddress192.168.10.1255.255.255.0
10)#noshutdown
10)#exit
S3760_02(config)#interfacevlan20
S3760_02(config-if-VLAN
S3760_02(config-if-VLAN
S3760_02(config-if-VLAN
S3760_02(config)#
20)#ipaddress192.168.20.1255.255.255.0
20)#noshutdown
20)#exit
测试结果:
C:
\DocumentsandSettings\nbu>ping192.168.20.2
Pinging192.168.20.2with32bytesofdata:
Replyfrom192.168.20.2:
bytes=32time=8msTTL=127
Replyfrom192.168.20.2:
bytes=32time<1msTTL=127
Replyfrom192.168.20.2:
bytes=32time<1msTTL=127
Replyfrom192.168.20.2:
bytes=32time<1msTTL=127
Pingstatisticsfor192.168.20.2:
Packets:
Sent=4,Received=4,Lost=0(0%loss),
Approximateroundtriptimesinmilli-seconds:
Minimum=0ms,Maximum=8ms,Average=2ms
实验三
Switch1
S2328G_01>en14
Password:
S2328G_01#spanning-tree
Translating"spanning-tree"...
%Unrecognizedhostoraddress,orprotocolnotrunning.S2328G_01#spanning-treepriority4096
%Unknowncommand.
S2328G_01#spanning-tree
Translating"spanning-tree"...
%Unrecognizedhostoraddress,orprotocolnotrunning.
S2328G_01#spanning-treemodestp
%Unknowncommand.
S2328G_01#exit
S2328G_01CON0isnowavailable
PressRETURNtogetstarted
S2328G_01>en14
Password:
S2328G_01#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
S2328G_01(config)#spanning-tree
Enablespanning-tree.
S2328G_01(config)#*Mar217:
50:
27:
%SPANTREE-5-TOPOTRAP:
TopologyChangeTraorinstance0.
S2328G_01(config)#spanning-treemodestp
S2328G_01(config)#spanning-treepriority4096
S2328G_01(config)#showspanning-*Mar217:
51:
25:
%SPANTREE-5-TOPOTRAP:
TopolChangeTrap.
StpVersion:
STP
SysStpStatus:
ENABLED
MaxAge:
20
HelloTime:
2
ForwardDelay:
15
BridgeMaxAge:
20
BridgeHelloTime:
2
BridgeForwardDelay:
15
MaxHops:
20
TxHoldCount:
3
PathCostMethod:
Long
BPDUGuard:
Disabled
BPDUFilter:
Disabled
LoopGuardDef:
Disabled
BridgeAddr:
001a.a948.0247
Priority:
4096
TimeSinceTopologyChange:
0d:
0h:
1m:
3s
TopologyChanges:
1
DesignatedRoot:
1000.001a.a948.0247
RootCost:
0
RootPort:
0
S2328G_01(config)#
Switch2
S2328G_02>en14
Password:
S2328G_02#con
S2328G_02#configuretem
S2328G_02#configureter
S2328G_02#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.S2328G_02(config)#spanning-tree
S2328G_02(config)#spanning-treemodestp
.a948.0247.ged:
NewRootPortisFastEthernet0/24.NewRootMacAddressis001S2328G_02(config)#showspanning-tree
StpVersion:
STP
SysStpStatus:
ENABLED
MaxAge:
20
HelloTime:
2
ForwardDelay:
15
BridgeMaxAge:
20
BridgeHelloTime:
2
BridgeForwardDelay:
15
MaxHops:
20
TxHoldCount:
3
PathCostMethod:
Long
BPDUGuard:
Disabled
BPDUFilter:
Disabled
LoopGuardDef:
Disabled
BridgeAddr:
001a.a948.02a7
Priority:
32768
TimeSinceTopologyChange:
0d:
0h:
3m:
36s
TopologyChanges:
1
DesignatedRoot:
1000.001a.a948.0247
RootCost:
200000
RootPort:
1
S2328G_02(config)#*Mar218:
08:
53:
%SPANTREE-5-TOPOTRAP:
TopologyChangeTrap.
Switch3
S3760_01>en14
Password:
S3760_01#con
S3760_01#configuretem
S3760_01#configureter
S3760_01#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
S3760_01(config)#spanning-tree
S3760_01(config)#spanning-treemodestp
.a948.0247.ged:
NewRootPortisFastEthernet0/24.NewRootMacAddressis001
S3760_01(config)#showspanning-tree
StpVersion:
STP
SysStpStatus:
ENABLED
MaxAge:
20
HelloTime:
2
ForwardDelay:
15
BridgeMaxAge:
20
BridgeHelloTime:
2
BridgeForwardDelay:
15
MaxHops:
20
TxHoldCount:
3
PathCostMethod:
Long
BPDUGuard:
Disabled
BPDUFilter:
Disabled
LoopGuardDef:
Disabled
BridgeAddr:
001a.a948.02a7
Priority:
32768
TimeSinceTopologyChange:
0d:
0h:
3m:
36s
TopologyChanges:
1
DesignatedRoot:
1000.001a.a948.0247
RootCost:
200000
RootPort:
2
S3760_01(config)#*Mar218:
08:
53:
%SPANTREE-5-TOPOTRAP:
TopologyChangeTrap.
实验四:
Switch1
%Incompletecommand.
S2328G_02(config)#vlan10
S2328G_02(config-vlan)#namesales
S2328G_02(config-vlan)#exit
S2328G_02(config)#interfacefastethernet0/5
S2328G_02(config-if-FastEthernet0/5)#switchportaccessvlan10
S2328G_02(config-if-FastEthernet0/5)#end
S2328G_02#*Mar218:
42:
05:
%SYS-5-CONFIG_I:
Configuredfromconsolebyconsole
S2328G_02#showvlani*Mar218:
42:
20:
%LINK-3-UPDOWN:
InterfaceFastEthernet0/1,changedstatetoup.
*Mar218:
42:
20:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet0/1,changedstatetoup.
d*Mar218:
42:
21:
%LINK-3-UPDOWN:
InterfaceFastEthernet0/2,changedstatetoup.
*Mar218:
42:
21:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet0/2,changedstatetoup.
*Mar218:
42:
24:
%SPANTREE-5-TOPOTRAP:
TopologyChangeTrapforinstance0.*Mar218:
42:
25:
%SPANTREE-5-TOPOTRAP:
TopologyChangeTrapforinstance0.
VLANNameStatusPorts
1VLAN0001STATICFa0/1,Fa0/2,Fa0/3,Fa0/4
Fa0/6,Fa0/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/25Gi0/26
10salesSTATICFa0/5S2328G_02#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.S2328G_02(config)#interfaceaggergateport1
A
%Invalidinputdetectedat'A'marker.
S2328G_02(config)#switchportmodetrunk
A
%Invalidinputdetectedat'A'marker.
S2328G_02(config)#exit
S2328G_02#*Mar218:
43:
55:
%SYS-5-CONFIG_I:
Configuredfromconsolebyconsole
S2328G_02#interfacerangefastethernet0/1-2
%Unknowncommand.
S2328G_02#configureterminal
Enterconfigurationcommands,oneperline.EndwithCNTL/Z.
S2328G_02(config)#interfaceaggregateport1
S2328G_02(config-if-AggregatePort1)#switchportmodetrunkS2328G_02(config-if-AggregatePort1)#exit
S2328G_02(config)#interfacerangefastethernet0/1-2S2328G_02(config-if-range)#port-group1S2328G_02(config-if-range)#en*Mar218:
47:
13:
%LINK-5-CHANGED:
InterfaceFastEthernet0/1,changedstatetoadministrativelydown.
*Mar218:
47:
13:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet0/1,changedstatetodown.
*Mar218:
47:
13:
%LINK-3-UPDOWN:
InterfaceAggregatePort1,changedstatetoup
d*Mar218:
47:
13:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceAggregatePort1,changedstatetoup.
*Mar218:
47:
13:
%LINK-5-CHANGED:
InterfaceFastEthernet0/2,changedstatetoadministrativelydown.
*Mar218:
47:
13:
%LINEPROTO-5-UPDOWN:
LineprotocolonInterfaceFastEthernet0/2,changedstatetodown.
*Mar218:
47:
16:
%SPANTREE-5-TOPOT
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 网络 系统集成 实践