| 加入收藏| 设为首页| 联系我们

首页 站长学习 站长之家 源码下载 建站素材 书籍教程 常用工具
 您现在的位置: 动力中国 >> 网络编程 >> 认证考试 >> 文章正文  
 CCNA命令总动员(下)
 

CCNA命令总动员(下)

http://www.domcn.org  文章来源:本站收藏  点击数:

  关键字:CCNA命令总动员(下)

    十一、基本网络测试

    1、用Telnet命令测试应用层

Router> telnet <远端CISCO设备名,例如:Router110>

Router> connect <远端CISCO设备名,例如:Router110>

Router> <直接输入远端CISCO设备名,例如:Router110>

Router> <直接输入远端CISCO设备IP地址>

/*Resume a Session(enter session number orname)*/
Router110> show session
1*    Router110
2     Router
Router110> 2
Router>
Router> show session
1     Router110
2*    Router
Router>1
Router110>

/*End a session*/
Router110> exit

Router110> logout

Ctrl + shift + 6 + x

    2、用ping命令测试网络

Router> ping <远端CISCO设备名>
Router> ping
Router# ping <远端CISCO设备名>
Router# ping

Router> ping ipx
Router# ping ipx

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

    3、用trace命令测试网络

Router> Trace <远端CISCO设备名>
Router> Trace ip
Router# Trace <远端CISCO设备名>
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>
Tokyo#

/*登录标题*/
Router(config)# banner motd #
<欢迎信息,如:Welcome!!!> #
Router(config)#

/*接口描述*/
Router(config)# interface Ethernet 0
Router(config-if)# description <接口描述信息>


CCNA命令总动员(下)
  • 上一篇文章:

  • 下一篇文章:
  •  热门文章
    普通文章 电子邮件改头换面 四公司畅谈未
    普通文章 PC病毒史上最声名狼藉的八大病
    普通文章 Rails系统中的AJAX开发技术简析
    普通文章 基于ASP.NET AJAX框架实现表单
    普通文章 开发ASP.NET AJAX客户端定制行
    普通文章 用JFreeChart对JSP报表进行增强
    普通文章 SQL Server 2005上的CLR和ADO.
    普通文章 SQL Server 2005的XML支持机制
    普通文章 Firefox中标签式浏览技巧大全
    普通文章 Tomcat中的Session和Cookie大揭
     
     推荐文章
    推荐文章 把Google地图嵌入网页 就是这么
    推荐文章 迅雷搜索候选资源出错的解决
    推荐文章 轻松去除迅雷里的各种广告和资
    推荐文章 突破限制 免费领养到QQ空间五级
    推荐文章 Rational统一过程RUP贴近中小软
    推荐文章 构建自己的轻量级XML DOM分析程
    推荐文章 WPS Office 2007技巧:妙用配置
    推荐文章 Excel 2007:求余数函数实用进阶
    推荐文章 浅谈ASP.NET的Postback
    推荐文章 软件开发中项目需求管理简述
     
     相关文章
    没有相关文章
    设为首页 | 加入收藏 | 广告合作 | 联系站长 | 版权申明 |
    动力中国为网友提供免费学习资料,可用资源,如果您认为我们的相关内容侵害到了您的权利请联系管理员
    Copyright © 2006-2008 domcn.org All Rights Reserved.