ccna实验手册Word格式文档下载.docx

上传人:b****2 文档编号:5765844 上传时间:2023-05-05 格式:DOCX 页数:60 大小:69.33KB
下载 相关 举报
ccna实验手册Word格式文档下载.docx_第1页
第1页 / 共60页
ccna实验手册Word格式文档下载.docx_第2页
第2页 / 共60页
ccna实验手册Word格式文档下载.docx_第3页
第3页 / 共60页
ccna实验手册Word格式文档下载.docx_第4页
第4页 / 共60页
ccna实验手册Word格式文档下载.docx_第5页
第5页 / 共60页
ccna实验手册Word格式文档下载.docx_第6页
第6页 / 共60页
ccna实验手册Word格式文档下载.docx_第7页
第7页 / 共60页
ccna实验手册Word格式文档下载.docx_第8页
第8页 / 共60页
ccna实验手册Word格式文档下载.docx_第9页
第9页 / 共60页
ccna实验手册Word格式文档下载.docx_第10页
第10页 / 共60页
ccna实验手册Word格式文档下载.docx_第11页
第11页 / 共60页
ccna实验手册Word格式文档下载.docx_第12页
第12页 / 共60页
ccna实验手册Word格式文档下载.docx_第13页
第13页 / 共60页
ccna实验手册Word格式文档下载.docx_第14页
第14页 / 共60页
ccna实验手册Word格式文档下载.docx_第15页
第15页 / 共60页
ccna实验手册Word格式文档下载.docx_第16页
第16页 / 共60页
ccna实验手册Word格式文档下载.docx_第17页
第17页 / 共60页
ccna实验手册Word格式文档下载.docx_第18页
第18页 / 共60页
ccna实验手册Word格式文档下载.docx_第19页
第19页 / 共60页
ccna实验手册Word格式文档下载.docx_第20页
第20页 / 共60页
亲,该文档总共60页,到这儿已超出免费预览范围,如果喜欢就下载吧!
下载资源
资源描述

ccna实验手册Word格式文档下载.docx

《ccna实验手册Word格式文档下载.docx》由会员分享,可在线阅读,更多相关《ccna实验手册Word格式文档下载.docx(60页珍藏版)》请在冰点文库上搜索。

ccna实验手册Word格式文档下载.docx

Sw#erasestartup-config清空配置文件

Sw#reload重新启动交换机

sw>

enable

sw#configterminal

sw(config)#hostnamesw1

sw1(config)#noipdomain-lookup关闭域名查找

sw1(config)#lineconsole0

sw1(config-line)#loggingsynchronous命令输入达到同步

sw1(config-line)#exec-timeout00设置永不超时

sw1(config-line)#exit

步骤一、配置VTP

sw3的配置:

sw3(config)#vtpmodeserver在sw3上启用vtpserver

DevicemodealreadyVTPSERVER.

sw3(config)#vtpdomaincisco设置域名

ChangingVTPdomainnamefromNULLtocisco

sw3(config)#vtppasswordcisco设置密码

SettingdeviceVLANdatabasepasswordtocisco

sw1的配置:

sw1#vlandatabase进入vlan数据库

sw1(vlan)#vtpclient启用VTPclient模式

SettingdevicetoVTPCLIENTmode.

sw1(vlan)#vtpdomaincisco作用到cisco域中

sw1(vlan)#vtppasswordcisco设置密码与server端相同

SettingdeviceVLANdatabasepasswordtocisco.

sw1(vlan)#exit使配置生效

InCLIENTstate,noapplyattempted.

Exiting....

sw2的配置:

sw2#vlandatabase

sw2(vlan)#vtpclient

sw2(vlan)#vtpdomaincisco

sw2(vlan)#vtppasswordcisco

sw2(vlan)#exit

sw2#

步骤二、启用干道端口

sw3(config)#interfacefa0/23

sw3(config-if)#switchportmodetrunk启用trunk端口

sw3(config-if)#interfacefa0/24

sw3(config-if)#switchportmodetrunk

sw1的配置:

sw1(config)#interfacefa0/23

sw1(config-if)#switchporttrunkencapsulationdot1q封装干道协议

sw1(config-if)#switchportmodetrunk启用trunk模式

sw1(config-if)#

sw1(config)#interfacefa0/24

sw1(config-if)#switchporttrunkencapsulationdot1q

sw1(config-if)#switchportmodetrunk

sw2的配置:

sw2(config)#interfacefa0/23

sw2(config-if)#switchporttrunkencapsulationdot1q

sw2(config-if)#switchportmodetrunk

sw2(config)#interfacefa0/24

步骤三、测试vtp状态及创建vlan

sw3的状态:

sw3#showvtpstatus显示vtp状态

VTPVersion:

2

ConfigurationRevision:

0配置修订号

MaximumVLANssupportedlocally:

254

NumberofexistingVLANs:

5

VTPOperatingMode:

servervtp模式

VTPDomainName:

ciscovtp域名

VTPPruningMode:

Disabled

VTPV2Mode:

VTPTrapsGeneration:

MD5digest:

0x3F0x170xC80xB80x5A0xE30x010x66

Configurationlastmodifiedby0.0.0.0at0-0-0000:

00:

00

创建vlan:

sw3(config)#vlan10创建VLAN10

sw3(config-vlan)#nameaa命名为aa

sw3(config-vlan)#exit应用配置

sw3(config)#vlan20创建VLAN20

sw3(config-vlan)#namebb命名为bb

sw3(config-vlan)#exit

sw3(config)#

sw3#showvtpstatus在sw3显示vtp的状态

2server的修订号

7vlan也已经增加

server

cisco

MD5digest:

0x980x310xCF0xA00xA70x170x730x66

Configurationlastmodifiedby0.0.0.0at3-1-9300:

52:

05

sw2的状态:

sw2#showvtpstatus

2已经同步了server

7

Client

VTPDomainName:

sw1的vlan信息:

sw1#showvlan显示vlan信息

VLANNameStatusPorts

----------------------------------------------------------------------------

1defaultactiveFa0/1,Fa0/2,Fa0/3,Fa0/4,

Fa0/5,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

10aaactive已经同步了vlan的信息

20bbactive

步骤四、配置PVST

sw3(config)#spanning-treevlan1rootprimary设置为vlan1的根桥

Sw1(config)#spanning-treevlan10priority4096设置为vlan10的根桥

Sw2(config)#spanning-treevlan20priority4096设置为vlan20的根桥

步骤五、显示STP的信息

sw1的生成树信息:

sw1#showspanning-treebrief显示每VLAN生成树信息

VLAN1

SpanningtreeenabledprotocolIEEE

ROOTIDPriority24577

Address0007.eb06.1740非vlan1的根桥

HelloTime2secMaxAge20secForwardDelay15sec

BridgeIDPriority32768

Address0030.803d.f640

VLAN10

ROOTIDPriority4096

Address0030.803d.f641为vlan10的根桥

Thisbridgeistheroot

BridgeIDPriority4096

Address0030.803d.f641

VLAN20

Address00b0.645f.34c2非vlan20的根桥

Address0030.803d.f642

sw2的生成树信息:

sw2#showspanning-treebrief

SpanningtreeenabledprotocolIEEE非vlan1的根桥

Address0007.eb06.1740

BridgeIDPriority32768

Address00b0.645f.34c0

SpanningtreeenabledprotocolIEEE

ROOTIDPriority4096非vlan10的根桥

Address0030.803d.f641

Address00b0.645f.34c1

SpanningtreeenabledprotocolIEEE

ROOTIDPriority4096为vlan20的根桥

Address00b0.645f.34c2

sw3的生成树信息:

sw3#showspanning-tree

VLAN0001

Spanningtreeenabledprotocolieee

RootIDPriority24577为vlan1的根桥

BridgeIDPriority24577(priority24576sys-id-ext1)

AgingTime300

VLAN0010

RootIDPriority4096非vlan10的根桥

Cost19

Port24(FastEthernet0/24)

BridgeIDPriority32779(priority32768sys-id-ext11)

Address0007.eb06.1740

VLAN0020

Spanningtreeenabledprotocolieee

RootIDPriority4096非vlan20的根桥

Port23(FastEthernet0/23)

BridgeIDPriority32780(priority32768sys-id-ext12)

InterfaceRoleStsCostPrio.NbrType

------------------------------------------------------------------------

Fa0/23RootFWD19128.23P2p

Fa0/24AltnBLK19128.24P2p

步骤六、显示当前配置结果

Sw1的配置结果:

sw1#showrunning-config

!

hostnamesw1

spanning-treevlan10priority4096

noipdomain-lookup

interfaceFastEthernet0/23

switchporttrunkencapsulationdot1q

switchportmodetrunk

interfaceFastEthernet0/24

switchporttrunkencapsulationdot1q

end

sw2的配置结果:

sw2#showrunning-config

hostnamesw2

spanning-treevlan20priority4096

sw3的配置结果:

sw3#showrunning-config

hostnamesw3

spanning-treevlan1priority24576

End

实验二、静态路由

两台2500系列路由器通过串口相连。

要求:

在R1和R2上启用静态路由,使两端网络能够互通。

步骤一、基本配置

Router>

Router#configterminal

Router(config)#hostnameR1

R1(config)#noipdomain-lookup

R1(config)#lineconsole0

R1(config-line)#loggingsynchronous

R1(config-line)#exec-timeout00

R1(config-line)#exit

步骤二:

接口配置

R1的配置:

R1(config)#interfaces0

R1(config-if)#ipaddress30.1.1.1255.255.255.0

R1(config-if)#clockrate64000时钟速率端

R1(config-if)#noshutdown

R1(config-if)#interfaceloopback0

R1(config-if)#ipaddress10.1.1.1255.255.255.0

R1(config-if)#

R2的配置:

Router(config)#hostnameR2

R2(config)#interfaces1

R2(config-if)#ipaddress30.1.1.2255.255.255.0

R2(config-if)#noshutdown

R2(config-if)#interfaceloopback0

R2(config-if)#ipaddress20.1.1.1255.255.255.0

R2(config-if)#exit

R2(config)#

步骤三、指定静态路由

R1(config)#

R1(config)#iproute20.1.1.0255.255.255.0serial0指定静态路由

R2(config)#iproute10.1.1.0255.255.255.030.1.1.1指定静态路由

步骤四、作ping测试

R1#ping

Protocol[ip]:

TargetIPaddress:

20.1.1.1目的地址

Extendedcommands[n]:

y是否用扩展命令

Sourceaddressorinterface:

10.1.1.1源地址

显示已通

步骤五、显示静态路由条目

R1#showiproute

Codes:

C-connected,S-static,I-IGRP,R-RIP,M-mobile,B-BGP

D-EIGRP,EX-EIGRPexternal,O-OSPF,IA-OSPFinterarea

N1-OSPFNSSAexternaltype1,N2-OSPFNSSAexternaltype2

E1-OSPFexternaltype1,E2-OSPFexternaltype2,E-EGP

i-IS-IS,L1-IS-ISlevel-1,L2-IS-ISlevel-2,ia-IS-ISinterarea

*-candidatedefault,U-per-userstaticroute,o-ODR

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 工程科技 > 能源化工

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2