CCNA命令总动员(下)

王朝other·作者佚名  2008-05-31
窄屏简体版  字體: |||超大  

十一、基本网络测试

1、用Telnet命令测试应用层

Router telnet

Router connect

Router

Router

/*Resume a Session(enter session number orname)*/

Router110 show session

1* Router110

2 Router

Router110 2

Router

Router show session

1 Router110

2* Router

Router1

Router110

/*End a session*/

Router110 exit

Router110 logout

Ctrl + shift + 6 + x

2、用ping命令测试网络层

Router ping

Router ping

Router# ping

Router# ping

Router ping ipx

Router# ping ipx

Router# ping

(注:不加参数可用于ping的扩展)

3、用trace命令测试网络层

Router Trace

Router Trace ip

Router# Trace

Router# Trace ip

4、用show ip route命令测试网络层

Router show ip route

Router# show ip route

5、使用show interfaces serial命令测试物理层和数据链路层

Router show interface serial

Router# show interface serial

6、Show interfaces和clear counters

Router show interface

Router# show interface

Router# clear counters

7、用debug命令查实时的网络通信

Router# terminal monitor

(注:在Telnet端打开终端监控,使debug输出到Telnet会话窗)

Router# dubug broadcast

Router# dubug

Router# undebug all

Router# no debug all

8、与路由器启动相关的命令

Router# show startup-config

Router# show config

Router# show running-config

Router# write term

Router# erase startup-config

Router# write erase

Router# reload

Router# setup

十二、路由器配置

1、操作IOS11.x版本的配置文件

命令 描述

Configure terminal 从控制台终端手工配置路由器

Copy tFTP running-config 从网络中的TFTP服务器上加载配置文件

Configure network Cisco IOS 13.0以前版本,现在由Copy tftp running-config命令替换

Copy startup-config running-config 从NVRAM中加载配置文件(多用于口令恢复)

Configure memory Cisco IOS 13.0以前版本,现在由Copy startup-config running-config命令替换

Show running-config 显示RAM中的当前配置

Write terminal Cisco IOS 13.0以前版本,现在由show running-config 命令替换

Copy running-config tftp 将RAM中的当前配置保存到网络中的TFTP服务器上

Write network Cisco IOS 13.0以前版本,现在由Copy running-config tftp命令替换

Copy running-config startup-config 将RAM中的当前配置保存到NVRAM中

Write memory Cisco IOS 13.0以前版本,现在由Copy running-config startup-config命令替换

Show startup-config 显示NVRAM中保存的配置的内容

Show config Cisco IOS 13.0以前版本,现在由show startup-config 命令替换

Erase startup-config 清空NVRAM的内容

Write erase Cisco IOS 13.0以前版本,现在由erase startup-config 命令替换

2、路由器的配置模式

配置模式 提示符

用户EXEC模式 Router

特许EXEC模式 Router#

全局配置模式 Router(config)#

Interface Router(config-if)#

Subinterface Router(config-subif)#

Controller Router(config-controller)#

Map-list Router(config-map-list)#

Map-class Router(config-map-class)#

Line Router(config-line)#

Router Router(config-router)#

3、全局配置模式

/*特许EXEC模式下的configure命令*/

Router con0 is now available.

Press RETURN to get started.

User Access Verification

PassWord:

Router

Router enable

Password:

Router#

Router# configure terminal

Router(config)#

Router(config)#interface Ethernet 0/0

Router(config-if)#

Router(config-if)# exit

Router(config)#

Router(config)# exit

Router#

Router# disable

Router

Router exit

Press RETURN to get started.

或用快速的退出方法:

Router(config-if)# end

(注:end和Ctrl + Z的作用一样)

Router#

Router# exit

Press RETURN to get started.

4、配置路由协议

Router# configure terminal

Router(config)# router

Router(config-router)# (command)

Router(config-router)#

5、配置某个接口*/

Router# configure terminal

Router(config)# interface

Router(config)# interface

Router(config-if)# no shutdown

Router(config-if)#

6、配置特定的接口

Router(config)# interface serial 1/0

Router(config-if)# no shutdown

Router(config-if)# bandwidth 56

Router(config-if)# clock rate 56000

Router(config-if)#

Router(config-if)# int & 0.1 point-to point

Router(config-if)# int & 0.2 point-to point

/*Cisco 4000系列路由器*/

Router(config)# interface Ethernet 1/0

Router(config-if)# media-type 10baset

Router(config-if)#

7、配置口令的方法

Router(config)# line console 0

Router(config-line)# login

Router(config-line)# password

Router(config)# line vty 0 4

Router(config-line)# login

Router(config-line)# password

Router(config)# enable password

Router(config)# enable secret

/*启动加密服务,为所有的口令加密*/

Router(config)# service password-encryption

Router(config)# no service password-encryption

8、路由器标识配置

/*路由器名称*/

Router(config)# hostname

Tokyo#

/*登录标题*/

Router(config)# banner motd #

#

Router(config)#

/*接口描述*/

Router(config)# interface Ethernet 0

Router(config-if)# description

QQread.com

推出游戏功略 http://www.qqread.com/netgame/game/index.Html

魔兽世界

跑跑卡丁车

街头篮球

水浒Q传

龙与地下城OL

征服

轩辕剑5

FIFA07

热血江湖

大唐风云

梦幻西游

武林外传

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航