Killtest题库

专业IT认证题库学习资料,助您通过IT认证考试!

« CCNA的一个实验全过程详解CCNA考试第三个实验 »

CCNA考试第二个实验

 实验二配置路由器的接口IP地址及接口描述

实验目的:熟练路由器的常用接口配置命令,会用路由器的状态命令查看路由器的状态。

实验内容和步骤: 

1、利用控制台登陆到路由器上,用password设置密码为cisco,用service password-encryption给密码加密。

      Router(config)#enable password cisco

      Router(config)#service password-encryption

实验用REV.35 CABLE 连接路由器的串口,标有Serial V.35 DTE的一端为DTE接口,标有Serial V.35 DCE的一端为DCE接口,DCE的接口为串行链路提供时钟速率。串行接口之间必须有DCE设备提供时钟速率才能进行数据传输所以连接路由器时要注意哪个接口连接的是DCE接头,在这个接口设置好适当的时钟速率。

2、用 interface Ethernet 0,进入以太网0接口配置模式,用ip address 命令设置接口ip地址为192.168.1.5/24。设置serial 0接口的IP为:192.168.2.5/24,设置DCE接口时钟速率为56000 bps

以太网口的一般配置方法为:

Router(config)#interface Ethernet 0 or Fastethernet 0

Router(config-if)#media-type media_type //这里是指定介质的类型,它的值可以是aui,10baset,100baset,mii,根据具体的传输介质而定。这条命令在实验室的1721路由器上无效,1721不支持这个设置。

Router(config-if)#speed 10 |100 |auto    //设置传输速度10M100M或自动

Router(config-if)#[no] half-duplex       //设置传输方式,用no half-duplex命令设置端口为全双工

Router(config-if)#ip address ip_address subnet_mask

Serial口的一般配置方法:

Router(config)#interface serial 0

Router(config-if)#clock rate rate_in_bits_per_second

3、利用description命令设置接口描述为office room

Router(config-if)#description description

4、用”NO SHUTDOWN”打开端口。

Router(config-if)#no shutdown

5、用 “end” 命令退到特权模式,

”show interfaces”命令查看接口配置.show ip interface 命令查看接口IP配置。

命令格式为:router#show interfaces

router#show ip interface type port_#   //例如:show ip interface Ethernet 0

router#show ip interface brief    //每个接口输出一行显示IP概要信息。

6、查看路由器其他状态信息。用状态命令show processesshow protocolsshow memoryshow stacks show buffersshow flash查看路由器状态。

Router(config-if)#end

Rouer#show processes cpu

Router#show protocols

Router#show memory

Router#show stacks

Router#show buffers

Rouer#show flash

7、用CDP来访问其他路由器,首先配置CDP,在每个接口上用“cdp enable”命令启动CDP,练习用 show cdp neighbors查看相邻设备的信息,用show cdp interface查看用于传播和发现桢传输的信息,用 show cdp entry命令查看某个设备的CDP信息。用CDP neighbors detail查看本地路由器收到的CDP更新信息。停止cdp

Router(config)#interface Ethernet 0

Router(config-if)#cdp enable

Router(config-if)#interface serial 0

Router(config-if)#cdp enable

Rouer(config-if)#end

Router#show cdp neighbors

Router#show cdp neighbors detail

Router#show cdp entry hostname //例如:show cdp entry routerA

Router#config terminal

Router(config)#no cdp run

8、用 copy running-config startup-config 命令保存配置。

Rouer#copy running-config startup-config

9、确定TFTP服务器的位置,备份配置文件和IOSTFTP服务器。

Router#copy startup-config tftp

Address or name of remote host []?               //在这里输入TFTP服务器的IP地址或名字

Destination filename [router-config]?              //在这里指定目标文件名。

Router#copy flash tftp

发表评论:

◎欢迎参与讨论,请在这里发表您的看法、交流您的观点。

日历

最近发表

Powered By Z-Blog 1.8 Arwen Build 81206

Copyright xxxx-xxxx Your WebSite. Some Rights Reserved.