路由配置命令

router> enable                    从用户模式进入特权模式
router# disable or exit           从特权模式退出到用户模式
router# show sessions             查看本机上的TELNET会话
router# disconnect                关闭所有的TELNET会话
router# show users                查看本机上的用户
router# erase startup-config      删除NVRAM中的配置
router# reload                    重启路由器

router# config terminal           从用户模式进入特权模式

router(config)# hostname rl       配置用户名为rl
router(config)# #banner welcome#   配置开机话语
router# show controllers serial0        查看串口0的物理层信息         主要是查看DTE/DCE
router# show ip interface         查看端口的IP配置信息
router# show hosts                查看主机表
end or ctrl+z                     从各种配置模式退到特权模式
rl(config)# no ip domain-lookup            关闭动态域名解析

rl(config)# ip domain-lookup      打开动态域名解析
rl(config)# ip name-server 202.106.0.20           打开动态域名解析之后便可以指定DNS服务rl(config)# interface serial 0    进入serial 0的接口配置模式

rl(config-if)# no shutdown        路由器出厂默认所有端口关 使用此命令使它们打开rl(config-if)# encapsulation ppp             封装ppp
rl(config-if)# clockrate 64000    如果是DCE使需要设置时钟速率 如果是DTE使不必设置rl(config-if)# bandwidth 64       设置端口带宽为64K

rl(config-if)# ctrl+c 或者ctrl+z           快捷键退出到特权模式

rl# show interface serial 0       查看s0信息,如果看到serial和 line protocol都显示up         说

明链路两端都设置成功
      注意:如果出现serial down, line down 可能对方的端口没有打no shutdown或者电缆没有插好;如果出现serial up, line down 可能是DCE端没有设置clock rate, 也可能是封装格式不对

rl# show cdp neighbors            查看CDP邻居信息
rl# show cdp entry *
rl(config-if)# ip add 10.0.0.1 255.0.0.0         进入相应的接口,配置相应的IP地址

rl# ping 10.0.0.2                 使用ping命令查看邻居的连通性
rl# show ip route          查看路由表,可以看到以C打头的路由 信息,这是直连的路由信息;可以看到 R开头的路由信息,是从rip学来的路由信息;可看到以I开头的路由信息取代 了以R开头的路由信息,这是因为igrp 的管理距离是100,小于rip的120
rl(config-if)# router rip         启动RIP路由协议
rl(config-router)# network 10.0.0.0         发布网段       注意network后面是接的网络号而不

是IP地址
rl# show ip protocol              查看配置的路由协议

rl(config)# router igrp 300       一定要注意在IGRP后面加自治系统号    考试的时候题目会告诉你AS NUMBER, 照敲就是
     

rl(config-router)# network 10.0.0.0

rl(config)# line vty0 4         进入虚拟线程配置模式,在这个模式里可对    telnet功能进行配置

rl(config-line)# login
rl(config-line)# password cisco      配置telnet密码,默认的网络设备 telnet的 功能是关闭的,       

配了密码之后会自动打开
rl(config)# enable password cisco      配置进入enable模式的密码, 区分大小写
rl(config)# enable secret ciscocisco       配置进入enable模式的密码,是加密的密码 

show  run是看不见的
      rl(config)# line console 0
      rl(config-line)# login
      rl(config-line)# password cisco 配置进入用户模式的密码
      rl(config-line)# logging synchronous  输入同步
      rl(config-line)# exec-timeout 0 0     禁止因为一段时间没有输入而跳出
       rl# copy running-config startup-config       保存配置,考试的时候注意题目的要求,如果            

题目里要求你保存配置就一定不能少了这一项
      r1# copy tftp startup-config
      r1# copy running-config tftp
      r1# copy tftp flash
      switch(config)# ip address 192.168.0.177 255.255.255.0  

 与路由器在接口上的配置IP不同,交换机是在全局配置模式配置
      switch(config)# ip default-gateway 192.158.0.1   

给交换机配置一个缺省网关,请注意,不用写掩码
      switch(config)# vlan2 name cisco     配置一个vlan2并且指定名字叫CISCO
      switch# show interfaces           查看端口状态
      switch(config)# interface e0/10 进入端口e0/10     
      switch(config-if)# vlan-membership static 2     将端口放进vlan2里面
      switch(config)# int f0/26         进入快速以太网端口f0/26
      switch(config-if)# trunk on       启用trunk,注意:只能在百兆以上端口      启用trunk
      switch(config-if)# notrunk-vlan 51 52   在主干上关闭VLAN51、52的传输
                                      ?  给出一个帮助屏幕
  0.0.0.0 255.255.255.255      通配符命令;作用与any命令相同
  access-class     将标准的IP访问列表应用到VTY线路
  access-list      创建-个过滤网络的测试列表
  any      指定任何主机或任何网络;作用与0.0.0.0 255.255.255.255命令相同
  Backspace      删除一个字符
  Bandwidth      设置--个串行接口止的带宽
  Banner      为登录到本路由器上的用户创建--个标志区
  cdp enable      打开-个特定接口的CDP
  cdp holdtime      修改CDP分组的保持时间
  cdp run      打开路由器上的CDP
  cdp timer      修改CDP更新定时器
  clear counters      清除某一接口上的统计信息、
  clear line      清除通过Telnet连接到路由器的连接
  clear mac-address-table 清除该交换机动态创建的过滤表
clock rate 提供在串行DCE接口上的时钟
config memory 复制startup-config到running-config
config network 复制保存在TFTP主机上的配置到running-config
config terminal 进人全局配置模式并修改running-config
config-register 告诉路由器如何启动以及如何修改配置寄存器的设置
copy flash tftp 将文件从闪存复制到TFTP主机
copy run start copy running-config startup-config的快捷方式,将配置复制到NVRAM中
copy run tftp 将running-config文件复制到TFTP主机
Copy tftp flash 将文件从TFTP主机复制到闪存
Copy tftp run 将配置从TFTP主机复制为running-config文件
Ctrl+A 移动光标到本行的开始位置
Ctrl+D 删除一个字符
Ctrl+E 移动光标到本行的末尾
Ctrl+F 光标向前移动一个字符
Ctrl+R 重新显示一行,
Ctrl+Shitf+6,then X 当telnet到多个路由器时返回到原路由器
Ctrl+U 删除一行
Ctrl+W 删除一个字
CTRL+Z 结束配置模式并返回EXEC(执行状态)
debug dialer 显示呼叫建立和结束的过程
debug frame-relay lmi 显示在路由器和帧中继交换机之间的lmi交换信息
debug ip igrp events 提供在网络中运行的IGRP路由选择信息的概要

debug ip igrp transactions 显示来自相邻路由器要求更新的请求消息和由路由器发到相邻路由器的广播消息

debug ip rip 发送控制台消息显示有关在路由器接口上收发RIP数据包的信息

debug ipx 显示通过路由器的RIP和SAP信息

debug isdn q921 显示ISDN第2层进程

debug isdn q931 显示第三层进程

delete nvram 删除1900交换机-NVRAM的内容

delete vip 删除交换机的VTP配置

description 在接口上设置---个描述

dialer idle-timeout number 告诉BRI线路如果没有发现触发DDR的流量什么时候断开

dialer list number protocol 为DDR链路指定触发DDR的流量

protocol permit/deny

dialer load-threshold number 设置描述什么时候在ISDN链路上启闭第二个BRI的参

inbound/outbound/either

Dialer map protocol address 代替拨号串用于作ISDN网络中提供更好的安全性

name hostname number

dialer string 设置用于拨叫BRl接口的电话号码

disable 从特权模式返回用户模式

disconnect 从原路由器断开同远楞路由豁的连接

dupler 设置一个接口的双工

enable 进入特权模式enable password 设置不加密的启朋口令
enable password level 1 设置用户模式口令
enable password level 15 设置启用模式口令
enable secret 设置加密的启用秘密口令。如果设置则取代启用口令
encapsulation 在接口上设置帧类型
encapsulation frame-relay 修改帧中继串行链路上的封装类型
encapsulation frame-relay 将封装类型设置为因特网工程任务组 (IETF,InternetEnginering   

Task Force)类型。连接Cisco路由器和非Cisco路由器

encapuslation hdlc 恢复串行路由器的默认封装HDLC
encapuslation isl 2 为VLAN 2设置ISL路由
encapuslation ppp 将串行链路上的封装修改为PPP
erase starup 删除startup-config
erase starup-config 删除路由器上的NVRAM的内容
Esc?B 向后移动一个宇
Esc?F 向前移动一个宇
exec-timeout 为控制台连接设置以秒或分钟汁的超时

exit 断开远程路由器的Teln讨连接

frame-relay interface-dlci 在串行链路或子接口上配置PVC地址

frame-relay lmi-type 在串行链路上配置LMI类型

frame-relay map protocl 创建用于帧中继网络的静态映射

address

Host 指定一个主机地址

Hostname 设置一台路由器或交换机的名字

int e0.10 创建一个子接口

int f0/0.1 创建一个子接口

interface 进人接口配置模式,也可以使用show命令

interface e0/5 配置Ethernet接口5

interface ethernet 0/1 配置接口e0/1

interface f0/26 配置Fast Ethernet接口26

interface fastehernet 进人Fast Ethernet端口的接口配置模式,也可以使用0/0 show命令

interface fastethernet 创建一个子接口

  0/0.1

  interface fastethernet0/26 配置接口f0/26

  interface s0.16 multipoint 在串行链路上创建用于帧中继网络的多点子接口

interface s0.16 point-to-point 在串行链路上创建用于帧中继网络的点对点子接口 interface    serial 5进人接口serial 5的配置模式,也可以使用show命令

  ip access-group 将IP访问列表应用到一个接口

  ip address 设置一个接口或交换机IP地址

  ip classless 一个全局配置命令,用于告诉路由器当目的网络没有出现在路由表中时通过默认路由转发数据包

  ip default-gateway 设置该交换机的默认网关

  ip domain-lookup 打开DNS查找功能 (默认时打开)

  ip domain-name 将域名添加到DNS查找名单中

  ip host 在路由器上创建主机表

  ip name-server 最多设置6个DNS服务器的IP地址

  Ip route 在路由器上创建静态和默认路由

  ipx access-group 将IPX访问列表应用到一个接口

  ipx input-sap-filter 将输入型IPX SAP过滤器应用到一个接口

  ipx network 为接口分配吧X网络号

  ipx output-sap-filter 将输出型IPX SAP过滤器应用到一个接口

  ipx ping 用于测试互联网络上IPX包的因特网探测器

  ipx routing 打开IPX路由

  isdn spidl 为ISDN交换机设置标识第一个DSO的号码

  isdn spid2 为ISDN交换机设置标识第二个DSO的号码

  isdn switch-type 设置路由器与之通信的ISDN交换类型。可以往接口模式和全局配置模式下设置

  K 用在1900交换机启动时并将该交换机置于CLI模式

  Line 进入配置模式以修改和设置用户模式口令

  line aux 进人辅助接口配置模式

  line console 0 进人控制台配置模式

  line vty 进人VTY(Telnet)接口配置模式

  logging synchronous 阻止控制台信息覆盖命令行上的输入

  logout 退出控制台会话

  mac-address-table permanent 在过滤数据库中生成一个永久MAC地址

  mac-addres-table resticted 在MAC过滤数据库中设置一个有限制的地址,只允许所

  static 配置的接口与有限制的地址通信

  media-type 在接口上设置硬件介质体类型
network 告诉路由选择协议要发通告的网络

  no cdp run 关闭单个接口上的CDP

  no inverse-arp 完全关闭路由器上的CDP

  no inverse 关闭帧中继中的动态IARP。必须已配置了静态映射

  no ip domain-lookup 关闭DNS查找功能

  no ip host 从主机表删除一个主机名

  No IP route 删除静态或默认路由

  no shutdown 打开一个接口

  o/r Ox2142 修改2501以便启动时不使用NVRAM的内容

  ping 测试一个远程设备的IP连通性

  port secure max-mac-count 只允许配置的设备量连接并在一个接D上工作

  ppp authentucation chap 告诉PPP使用CHAP认证方式

  ppp authentucation pap 告诉PPP使用PAP认证方式

  router igrp as 在路由器上打开IP IGRP路由选择

  router rip 使用户进人路由器rip配置模式
  
  secondary 在同一个物理接口上添加辅助IPX网络

  Service password-encryption 加密用户模式和启用口令

  show access-list 显示路由器上配置的所有访问列表

  show access-list 110 只显示访问列表110

  show cdp 显示CDP定时器和保持时间周期

  show cdp entry * 同show cdpneighbordetail命令一样,但不能用于1900交换机
  

  show cdp interface 显示启用了CDP的特定接口

  show cdp neighbor 显示直连的相邻设备及其详细信息

  show cdp neighbor detail 显示IP地址和IOS版本和类型,并且包括show cdp

  neighbor命令显示的所有信息

  show cdp traffic 显示设备发送和接收的CDP分组数以及任何出错信息

  Show controllers s 0 显示接口的DTE或DCE状态

  show dialer 显示拨号串到达的次数、B信道的空闲超时时间值、呼叫长度以及接口所连接的路由器的名称

  show flash 显示闪存中的文件

  show frame-relay Imi 在串行接口上设置LMI类型

  show frame-relay map 显示静态的和动态的网络层到PVC的映射

  show frame-relay pvc 显示路由器上己配置的PVC和DLCI号

  show history 默认时显示最近输人的10个命令

  show hosts 显示主机表中的内容

  show int fO/26 显示抑/26的统汁

  show inter e0/l 显示接口e0/l的统计

  show interface So 显示接口serial上的统计信息

  show ip 显示该交换机的IP配置

  show ip access-list 只显示IP访问列表

  show ip interface 显示哪些接口应用了IP访问列表

  show ip interface 显示在路由器上配置的路由选择协议及与每个路由选择协议相关的定时器

  show ip route 显示IP路由表

  show ipx access-list 显示路由器上配置的IPX访问列表
  
  trunk on 将一个端口设为永久中继模式 "

  usemame name password 为了Cisco路由器的身份验证创建用户名和口令

  password

  variance 控制最佳度量和最坏可接受度量之间的负载均衡

  vlan 2 name Sales 创建一个名为Sales的VLAN2

  lan-membership static 2 给端口分配一个静态VLAN

  vtp client 将该交换机设为一个VTP客户

  vtp domain 设置为该VTP配置的域名

  vtp password 在该VTP域上设置一个口令

  vtp pruning enable 使该交换机成为一台修剪交换机

  vtp server 将该交换机设为一个VTP服务器

  show ipx interface 显示一个特定接口上发送和接收的RIP和SAP信息。也

  show ipx servers 显示接口的IPX地址

  show ipx route 显示IPX路由表

  show ipx traffic 显示Cisco路由器的SAP表

  show ipx traffic 显示Cisco路由器上发送和接收的RIP和SAP信息

  show isdn active 显示呼叫的号码和呼叫是否在进行中

  show isdn status 显示SPID是否有效、是否己连接以及和提供商交换机

  的通信情况

  show mac-address-table 显示该交换机动态创建的过滤表

  show protocols 显示在每个接口上配置的被动路由协议和网络地址

  show run showrunning-config 命令的缩写;显示当前在该路由器上运行的配置

  show sessions 显示通过Telent到远程设备的连接

  show start 命令show startup-config的快捷方式。显示保存在

  NVRAM中的备份配置

  show terminal 显示配置的历史记录大、

  show trunk A 显示端口26的中继状态

  show trunk B 显示端口27的中继状态

  show version 给出该交换机的IOS信息以及正常运行时间和基本

  Ethernet地址

  show vlan 显示所有己配置的VLAN

  show vlan-membership 显示所有端口的VLAN分配

  show vtp 显示一台交换机的VTP配置

  shoutdown 设置接口为管理性关闭模式

  Tab 为操作者完成命令的完整输入

  telnet 连接、查看并在远程设备上运行程序

  terminal history size 改变历史记录的大小由默认的10改为256

  trace 测试远程设备的连通性并显示通过互联网络找到该远程设备的路径

  traffic-share balanced 告诉IGRP路由选择协议要反比于度量值分享链路

  traffic-share min 告诉IGRP路由选择协议要使用只有最小开销的路由

  trunk auto 将该端口设为自动中继模式

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

网络工程师交换试验手册附录1:路由命令十全大补

在基于IOS的交换机上设置主机名/系统名:
switch(config)# hostname hostname
在基于CLI的交换机上设置主机名/系统名:
switch(enable) set system name name-string
2.在基于IOS的交换机上设置登录口令:
switch(config)# enable password level 1 password
在基于CLI的交换机上设置登录口令:
switch(enable) set password
switch(enable) set enalbepass
3.在基于IOS的交换机上设置远程访问:
switch(config)# interface vlan 1
switch(config-if)# ip address ip-address netmask
switch(config-if)# ip default-gateway ip-address
在基于CLI的交换机上设置远程访问:
switch(enable) set interface sc0 ip-address netmask broadcast-address
switch(enable) set interface sc0 vlan
switch(enable) set ip route default gateway
4.在基于IOS的交换机上启用和浏览CDP信息:
switch(config-if)# cdp enable
switch(config-if)# no cdp enable
为了查看Cisco邻接设备的CDP通告信息:
switch# show cdp interface [type modle/port]
switch# show cdp neighbors [type module/port] [detail]
在基于CLI的交换机上启用和浏览CDP信息:
switch(enable) set cdp {enable|disable} module/port
为了查看Cisco邻接设备的CDP通告信息:
switch(enable) show cdp neighbors[module/port] [vlan|duplex|capabilities|detail]
5.基于IOS的交换机的端口描述:
switch(config-if)# description description-string
基于CLI的交换机的端口描述:
switch(enable)set port name module/number description-string
6.在基于IOS的交换机上设置端口速度:
switch(config-if)# speed{10|100|auto}
在基于CLI的交换机上设置端口速度:
switch(enable) set port speed moudle/number {10|100|auto}
switch(enable) set port speed moudle/number {4|16|auto}
7.在基于IOS的交换机上设置以太网的链路模式:
switch(config-if)# duplex {auto|full|half}
在基于CLI的交换机上设置以太网的链路模式:
switch(enable) set port duplex module/number {full|half}
8.在基于IOS的交换机上配置静态VLAN:
switch# vlan database
switch(vlan)# vlan vlan-num name vla
switch(vlan)# exit
switch# configure teriminal
switch(config)# interface interface module/number
switch(config-if)# switchport mode access
switch(config-if)# switchport access vlan vlan-num
switch(config-if)# end
在基于CLI的交换机上配置静态VLAN:
switch(enable) set vlan vlan-num [name name]
switch(enable) set vlan vlan-num mod-num/port-list
9. 在基于IOS的交换机上配置VLAN中继线:
switch(config)# interface interface mod/port
switch(config-if)# switchport mode trunk
switch(config-if)# switchport trunk encapsulation {isl|dotlq}
switch(config-if)# switchport trunk allowed vlan remove vlan-list
switch(config-if)# switchport trunk allowed vlan add vlan-list
在基于CLI的交换机上配置VLAN中继线:
switch(enable) set trunk module/port [on|off|desirable|auto|nonegotiate]
Vlan-range [isl|dotlq|dotl0|lane|negotiate]
10.在基于IOS的交换机上配置VTP管理域:
switch# vlan database
switch(vlan)# vtp domain domain-name
在基于CLI的交换机上配置VTP管理域:
switch(enable) set vtp [domain domain-name]
11.在基于IOS的交换机上配置VTP 模式:
switch# vlan database
switch(vlan)# vtp domain domain-name
switch(vlan)# vtp {sever|cilent|transparent}
switch(vlan)# vtp password password
在基于CLI的交换机上配置VTP 模式:
switch(enable) set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password]
12. 在基于IOS的交换机上配置VTP版本:
switch# vlan database
switch(vlan)# vtp v2-mode
在基于CLI的交换机上配置VTP版本:
switch(enable) set vtp v2 enable
13. 在基于IOS的交换机上启动VTP剪裁:
switch# vlan database
switch(vlan)# vtp pruning
在基于CL I 的交换机上启动VTP剪裁:
switch(enable) set vtp pruning enable
14.在基于IOS的交换机上配置以太信道:
switch(config-if)# port group group-number [distribution {source|destination}]
在基于CLI的交换机上配置以太信道:
switch(enable) set port channel moudle/port-range mode{on|off|desirable|auto}
15.在基于IOS的交换机上调整根路径成本:
switch(config-if)# spanning-tree [vlan vlan-list] cost cost
在基于CLI的交换机上调整根路径成本:
switch(enable) set spantree portcost moudle/port cost
switch(enable) set spantree portvlancost moudle/port [cost cost][vlan-list]
16.在基于IOS的交换机上调整端口ID:
switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority
在基于CLI的交换机上调整端口ID:
switch(enable) set spantree portpri {mldule/port}priority
switch(enable) set spantree portvlanpri {module/port}priority [vlans]
17. 在基于IOS慕换换 闲薷腟TP时钟:
switch(config)# spanning-tree [vlan vlan-list] hello-time seconds
switch(config)# spanning-tree [vlan vlan-list] forward-time seconds
switch(config)# spanning-tree [vlan vlan-list] max-age seconds
在基于CLI的交换机上修改STP时钟:
switch(enable) set spantree hello interval[vlan]
switch(enable) set spantree fwddelay delay [vlan]
switch(enable) set spantree maxage agingtiame[vlan]
18. 在基于IOS的交换机端口上启用或禁用Port Fast 特征:
switch(config-if)#spanning-tree portfast
在基于CLI的交换机端口上启用或禁用Port Fast 特征:
switch(enable) set spantree portfast {module/port}{enable|disable}
19. 在基于IOS的交换机端口上启用或禁用UplinkFast 特征:
switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second]
在基于CLI的交换机端口上启用或禁用UplinkFast 特征:
switch(enable) set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]
20. 为了将交换机配置成一个集群的命令交换机,首先要给管理接口分配一个IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name cv
21. 为了从一条中继链路上删除VLAN,可使用下列命令:
switch(enable) clear trunk module/port vlan-range
22. 用show vtp domain 显示管理域的VTP参数.
23. 用show vtp statistics显示管理域的VTP参数.
24. 在Catalyst交换机上定义TrBRF的命令如下:
switch(enable) set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}]
25. 在Catalyst交换机上定义TrCRF的命令如下:
switch (enable) set vlan vlan-num [name name] type trcrf
{ring hex-ring-num|decring decimal-ring-num} parent vlan-num
26. 在创建好TrBRF VLAN之后,就可以给它分配交换机端口.对于以太网交换,可以采用如下命令给VLAN分配端口:
switch(enable) set vlan vlan-num mod-num/port-num
27. 命令show spantree显示一个交换机端口的STP状态.
28. 配置一个ELAN的LES和BUS,可以使用下列命令:
ATM (config)# interface atm number.subint multioint
ATM(config-subif)# lane serber-bus ethernet elan-name
29. 配置LECS:
ATM(config)# lane database database-name
ATM(lane-config-databade)# name elan1-name server-atm-address les1-nsap-address
ATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-address
ATM(lane-config-databade)# name …
30. 创建完数据库后,必须在主接口上启动LECS.命令如下:
ATM(config)# interface atm number
ATM(config-if)# lane config database database-name
ATM(config-if)# lane config auto-config-atm-address
31. 将每个LEC配置到一个不同的ATM子接口上.命令如下:
ATM(config)# interface atm number.subint multipoint
ATM(config)# lane client ethernet vlan-num elan-num
32. 用show lane server 显示LES的状态.
33. 用show lane bus显示bus的状态.
34. 用show lane database显示LECS数据库可内容.
35. 用show lane client显示LEC的状态.
36. 用show module显示已安装的模块列表.
37. 用物理接口建立与VLAN的连接:
router# configure terminal
router(config)# interface media module/port
router(config-if)# description description-string
router(config-if)# ip address ip-addr subnet-mask
router(config-if)# no shutdown
38. 用中继链路来建立与VLAN的连接:
router(config)# interface module/port.subinterface
router(config-ig)# encapsulation[isl|dotlq] vlan-number
router(config-if)# ip address ip-address subnet-mask
39. 用LANE 来建立与VLAN的连接:
router(config)# interface atm module/port
router(config-if)# no ip address
router(config-if)# atm pvc 1 0 5 qsaal
router(config-if)# atm pvc 2 0 16 ilni
router(config-if)# interface atm module/port.subinterface multipoint
router(config-if)# ip address ip-address subnet-mask
router(config-if)# lane client ethernet elan-num
router(config-if)# interface atm module/port.subinterface multipoint
router(config-if)# ip address ip-address subnet-name
router(config-if)# lane client ethernet elan-name
router(config-if)# …
40. 为了在路由处理器上进行动态路由配置,可以用下列IOS命令来进行:
router(config)# ip routing
router(config)# router ip-routing-protocol
router(config-router)# network ip-network-number
router(config-router)# network ip-network-number
41. 配置默认路由:
switch(enable) set ip route default gateway
42. 为一个路由处理器分配VLANID,可在接口模式下使用下列命令:
router(config)# interface interface number
router(config-if)# mls rp vlan-id vlan-id-num
43. 在路由处理器启用MLSP:
router(config)# mls rp ip
44. 为了把一个外置的路由处理器接口和交换机安置在同一个VTP域中:
router(config)# interface interface number
router(config-if)# mls rp vtp-domain domain-name
45. 查看指定的VTP域的信息:
router# show mls rp vtp-domain vtp domain name
46. 要确定RSM或路由器上的管理接口,可以在接口模式下输入下列命令:
router(config-if)#mls rp management-interface
47. 要检验MLS-RP的配置情况:
router# show mls rp
48. 检验特定接口上的MLS配置:
router# show mls rp interface interface number
49. 为了在MLS-SE上设置流掩码而又不想在任一个路由处理器接口上设置访问列表:
set mls flow [destination|destination-source|full]
50. 为使MLS和输入访问列表可以兼容,可以在全局模式下使用下列命令:
router(config)# mls rp ip input-acl
51. 当某个交换机的第3层交换失效时,可在交换机的特权模式下输入下列命令:
switch(enable) set mls enable
52. 若想改变老化时间的值,可在特权模式下输入以下命令:
switch(enable) set mls agingtime agingtime
53. 设置快速老化:
switch(enable) set mls agingtime fast fastagingtime pkt_threshold
54. 确定那些MLS-RP和MLS-SE参与了MLS,可先显示交换机引用列表中的内容再确定:
switch(enable) show mls include
55. 显示MLS高速缓存记录:
switch(enable) show mls entry
56. 用命令show in arp显示ARP高速缓存区的内容。
57. 要把路由器配置为HSRP备份组的成员,可以在接口配置模式下使用下面的命令:
router(config-if)# standby group-number ip ip-address
58. 为了使一个路由器重新恢复转发路由器的角色,在接口配置模式下:
router(config-if)# standy group-number preempt
59. 访问时间和保持时间参数是可配置的:
router(config-if)# standy group-number timers hellotime holdtime
60. 配置HSRP跟踪:
router(config-if)# standy group-number track type-number interface-priority
61. 要显示HSRP路由器的状态:
router# show standby type-number group brief
62. 用命令show ip igmp确定当选的查询器。
63. 启动IP组播路由选择:
router(config)# ip muticast-routing
64. 启动接口上的PIM:
dalllasr1>(config-if)# ip pim {dense-mode|sparse-mode|sparse-dense-mode}
65. 启动稀疏-稠密模式下的PIM:
router# ip multicast-routing
router# interface type number
router# ip pim sparse-dense-mode
66. 核实PIM的配置:
dallasr1># show ip pim interface[type number] [count]
67. 显示PIM邻居:
dallasr1># show ip neighbor type number
68. 为了配置RP的地址,命令如下:
dallasr1># ip pim rp-address ip-address [group-access-list-number][override]
69. 选择一个默认的RP:
dallasr1># ip pim rp-address
通告RP和它所服务的组范围:
dallasr1># ip pim send-rp-announce type number scope ttl group-list access-list-number
为管理范围组通告RP的地址:
dallasr1># ip pim send-rp-announce ethernet0 scope 16 group-list1
dallasr1># access-list 1 permit 266.0.0.0 0.255.255.255
设定一个RP映像代理:
dallasr1># ip pim send-rp-discovery scope ttl
核实组到RP的映像:
dallasr1># show ip pim rp mapping
dallasr1># show ip pim rp [group-name|group-address] [mapping]
70. 在路由器接口上用命令ip multicast ttl-threshold ttl-value设定TTL阀值:
dallasr1>(config-if)# ip multicast ttl-threshold ttl-value
71. 用show ip pim neighbor显示PIM邻居表。
72. 显示组播通信路由表中的各条记录:
dallasr1>show ip mroute [group-name|group-address][scoure][summary][count][active kbps]
73. 要记录一个路由器接受和发送的全部IP组播包:
dallasr1> #debug ip mpacket [detail] [access-list][group]
74. 要在CISCO路由器上配置CGMP:
dallasr1>(config-if)# ip cgmp
75.配置一个组播路由器,使之加入某一个特定的组播组:
dallasr1>(config-if)# ip igmp join-group group-address
76. 关闭 CGMP:
dallasr1>(config-if)# no ip cgmp
77. 启动交换机上的CGMP:
dallasr1>(enable) set cgmp enable
78. 核实Catalyst交换机上CGMP的配置情况:
catalystla1>(enable) show config
set prompt catalystla1>
set interface sc0 192.168.1.1 255.255.255.0
set cgmp enable
79. CGMP离开的设置:
Dallas_SW(enable) set cgmp leave
80. 在Cisco设备上修改控制端口密码:
R1(config)# line console 0
R1(config-line)# login
R1(config-line)# password Lisbon
R1(config)# enable password Lilbao
R1(config)# login local
R1(config)# username student password cisco
81. 在Cisco设备上设置控制台及vty端口的会话超时:
R1(config)# line console 0
R1(config-line)# exec-timeout 5 10
R1(config)# line vty 0 4
R1(config-line)# exec-timeout 5 2
82. 在Cisco设备上设定特权级:
R1(config)# privilege configure level 3 username
R1(config)# privilege configure level 3 copy run start
R1(config)# privilege configure level 3 ping
R1(config)# privilege configure level 3 show run
R1(config)# enable secret level 3 cisco
83. 使用命令privilege 可定义在该特权级下使用的命令:
router(config)# privilege mode level level command
84. 设定用户特权级:
router(config)# enable secret level 3 dallas
router(config)# enable secret san-fran
router(config)# username student password cisco
85. 标志设置与显示:
R1(config)# banner motd ‘unauthorized access will be prosecuted!’
86. 设置vty访问:
R1(config)# access-list 1 permit 192.168.2.5
R1(config)# line vty 0 4
R1(config)# access-class 1 in
87. 配置HTTP访问:
Router3(config)# access-list 1 permit 192.168.10.7
Router3(config)# ip http sever
Router3(config)# ip http access-class 1
Router3(config)# ip http authentication local
Router3(config)# username student password cisco
88. 要启用HTTP访问,请键入以下命令:
switch(config)# ip http sever
89. 在基于set命令的交换机上用setCL1启动和核实端口安全:
switch(enable) set port security mod_num/port_num…enable mac address
switch(enable) show port mod_num/port_num
在基于CiscoIOS命令的交换机上启动和核实端口安全:
switch(config-if)# port secure [mac-mac-count maximum-MAC-count]
switch# show mac-address-table security [type module/port]
90. 用命令access-list在标准通信量过滤表中创建一条记录:
Router(config)# access-list access-list-number {permit|deny} source-address [source-address]
91. 用命令access-list在扩展通信量过滤表中创建一条记录:
Router(config)# access-list access-list-number {permit|deny{protocol|protocol-keyword}}{source source-wildcard|any}{destination destination-wildcard|any}[protocol-specific options][log]
92. 对于带内路由更新,配置路由更新的最基本的命令格式是:
R1(config-router)#distribute-list access-list-number|name in [type number]
93. 对于带外路由更新,配置路由更新的最基本的命令格式是:
R1(config-router)#distribute-list access-list-number|name out [interface-name] routing-process| autonomous-system-number
94. set snmp命令选项:
set snmp community {read-only|ready-write|read-write-all}[community_string]
95. set snmp trap 命令格式如下:
set snmp trap {enable|disable}
[all|moudle|classis|bridge|repeater| auth|vtp|ippermit|vmps|config|entity|stpx]
set snmp trap rvcr_addr rcvr_community
96. 启用SNMP chassis 陷阱:
Console>(enable) set snmp trap enable chassis
97. 启用所有SNMP chassis 陷阱:
Console>(enable) set snmp trap enable
98. 禁用SNMP chassis 陷阱:
Console>(enable) set snmp trap disable chassis
99. 给SNMP陷阱接收表加一条记录:
Console>(enable) set snmp trap 192.122.173.42 public
100. show snmp 输出结果。
101. 命令set snmp rmon enable 的输出结果。
102. 显示SPAN信息:
Consile> show span

 

系转载,原址:http://blog.csdn.net/yinyaoqi/article/details/5574632

posted @ 2015-06-09 22:21  little_by  阅读(3301)  评论(0编辑  收藏  举报