目前分類:[Computer Science] Cisco (3)

瀏覽方式: 標題列表 簡短摘要
cisco路由器命令
轉載自 http://www.ixpub.net/viewthread.php?tid=663402

cisco路由器命令分類:未知的秘密
access-enable  允許路由器在動態訪問列表中創建臨時訪問列表入口
   access-group  把訪問控制列表(acl)應用到介面上
   access-list  定義一個標準的ip acl
   access-template  在連接的路由器上手動替換臨時訪問列表入口
   appn  向appn子系統發送命令
   atmsig   執行atm信令命令
   b   手動引導作業系統
   bandwidth   設置介面的帶寬
   banner motd   指定日期資訊標語
   bfe   設置突發事件手冊模式
   boot system   指定路由器啟動時載入的系統映射
   calendar   設置硬體日曆
   cd   更改路徑
   cdp enable   允許介面運行cdp協定
   clear   復位功能
   clear counters   清除介面計數器
   clear interface   重新啟動介面上的件邏輯
   clockrate   設置串口硬體連接的時鐘速率,如網路介面模組和介面處理器能接受的速率
   cmt   開啟/關閉fddi連接管理功能
   config-register   修改配置寄存器設置
   configure   允許進入存在的配置模式,在中心站點上維護並保存配置資訊
   configure memory   從nvram載入配置資訊
   configure terminal   從終端進行手動配置
   connect   打開一個終端連接
   copy   複製配置或映射資料
   copy flash tftp   備份系統映射檔到tftp伺服器
   copy running-config startup-config   將ram中的當前配置存儲到nvram
   copy running-config tftp   將ram中的當前配置存儲到網路tftp伺服器上
   copy tftp flash   從tftp伺服器上下載新映射到flash
   copy tftp running-config   從tftp伺服器上下載配置檔
   debug   使用調試功能
   debug dialer   顯示介面在撥什麼號及諸如此類的資訊
   debug ip rip   顯示rip路由選擇更新資料
   debug ipx routing activity   顯示關於路由選擇協定(rip)更新資料包的資訊
   debug ipx sap   顯示關於sap(業務通告協定)更新資料包資訊
   debug isdn q921   顯示在路由器d通道isdn介面上發生的資料連結層(第2層)的訪問過程
   debug ppp   顯示在實施ppp中發生的業務和交換資訊
   delete   刪除檔
   deny   為一個已命名的ip acl設置條件
   dialer idle-timeout   規定線路斷開前的空閒時間的長度
   dialer map   設置一個串列介面來呼叫一個或多個地點
   dialer wait-for-carrier-time   規定花多長時間等待一個載體
   dialer-group   通過對屬於一個特定撥號組的介面進行配置來訪問控制
   dialer-list protocol   定義一個數位資料接受器(ddr)撥號表以通過協定或acl與協定的組合來控制控制撥號
   dir   顯示給定設備上的檔
   disable   關閉特許模式
   disconnect   斷開已建立的連接
   enable   打開特許模式
   enable password   確定一個密碼以防止對路由器非授權的訪問

enable password   設置本地口令控制不同特權級別的訪問
   enable secret   為enable password命令定義額外一層安全性 (強制安全,密碼非明文顯示)
   encapsulation frame-relay   啟動幀中繼封裝
   encapsulation novell-ether   規定在網路段上使用的novell獨一無二的格式
   encapsulation ppp   把ppp設置為由串口或isdn介面使用的封裝方法
   encapsulation sap   規定在網路段上使用的乙太網802.2格式cisco的密碼是sap
   end   退出配置模式
   erase   刪除快閃記憶體或配置緩存
   erase startup-config   刪除nvram中的內容
   exec-timeout   配置exec命令解釋器在檢測到用戶輸入前所等待的時間
   exit   退出所有配置模式或者關閉一個啟動的終端會話和終止一個exec
   exit   終止任何配置模式或關閉一個活動的對話和結束exec
   format   格式化設備
   frame-relay local-dlci   為使用幀中繼封裝的串列線路啟動本地管理介面(lmi)
   help   獲得互動式幫助系統
   history   查看歷史記錄
   hostname   使用一個主機名來配置路由器,該主機名以提示符或者缺省檔案名的方式使用
   interface   設置介面類型並且輸入介面配置模式
   interface   配置介面類型和進入介面配置模式
   interface serial   選擇介面並且輸入介面配置模式
   ip access-group   控制對一個介面的訪問
   ip address   設定介面的網路邏輯位址
   ip address   設置一個介面位址和子網路遮罩並開始ip處理
   ip default-network   建立一條缺省路由
   ip domain-lookup   允許路由器缺省使用dns
   ip host   定義靜態主機名到ip位址映射
   ip name-server   指定至多6個進行名字-位址解析的伺服器位址
   ip route   建立一條靜態路由
   ip unnumbered   在為給一個介面分配一個明確的ip位址情況下,在串口上啟動互聯網協議(ip)的處理過程
   ipx delay   設置點計數
   ipx ipxwan   在串口上啟動ipxwan協定
   ipx maximum-paths   當轉發資料包時設置cisco ios軟體使用的等價路徑數量
   ipx network   在一個特定介面上啟動互聯網資料包交換(ipx)的路由選擇並且選擇封裝的類型(用幀封裝)
   ipx router   規定使用的路由選擇協議
   ipx routing   啟動ipx路由選擇
   ipx sap-interval   在較慢的鏈路上設置較不頻繁的sap(業務廣告協議)更新
   ipx type-20-input-checks   限制對ipx20類資料包廣播的傳播的接受
   isdn spid1   在路由器上規定已經由isdn業務供應商為b1通道分配的業務簡介號(spid)
   isdn spid2   在路由器上規定已經由isdn業務供應商為b2通道分配的業務簡介號(spid)
   isdntch-type   規定了在isdn介面上的中央辦公區的交換機的類型
   keeplive   為使用幀中繼封裝的串列線路lmi(本地管理介面)機制
   lat   打開lat連接
   line   確定一個特定的線路和開始線路配置
   line concole   設置控制臺埠線路
   line vty   為遠端控制臺訪問規定了一個虛擬終端
   lock   鎖住終端控制臺
   login   在終端會話登錄過程中啟動了密碼檢查
   login   以某用戶身份登錄,登錄時允許口令驗證
logout   退出exec模式
   mbranch   向下跟蹤組播位址路由至終端
   media-type   定義介質類型
   metric holddown   把新的igrp路由選擇資訊與正在使用的igrp路由選擇資訊隔離一段時間
   mrbranch   向上解析組播地址路由至枝端
   mrinfo   從組播路由器上獲取鄰居和版本資訊
   mstat   對組播位址多次路由跟蹤後顯示統計數位
   mtrace   由源向目標跟蹤解析組播位址路徑
   name-connection   命名已存在的網路連接
   ncia   開啟/關閉ncia伺服器
   network   把一個基於nic的位址分配給一個與它直接相連的路由器把網路與一個igrp的路由選擇的過程聯繫起來在ipx路由器配置模式下,在網路上啟動加強的igrp
   network   指定一個和路由器直接相連的網路位址段
   network-number   對一個直接連接的網路進行規定
   no shutdown   打開一個關閉的介面
   pad   開啟一個x.29 pad連接
   permit   為一個已命名的ip acl設置條件
   ping   把icmp回應請求的資料包發送網路上的另一個節點檢查主機的可達性和網路的連通性對網路的基本連通性進行診斷
   ping   發送回聲請求,診斷基本的網路連通性
   ppp   開始ietf點到點協議
   ppp   authentication 啟動challenge握手鑒權協定(chap)或者密碼驗證協定(pap)或者將兩者都啟動,並且對在介面上選擇的chap和pap驗證的順序進行規定
   ppp chap hostname   當用chap進行身份驗證時,創建一批好像是同一台主機的撥號路由器
   ppp chap password   設置一個密碼,該密碼被發送到對路由器進行身份驗證的主機命令對進入路由器的用戶名/密碼的數量進行了限制
   ppp pap sent-username   對一個介面啟動遠端pap支援,並且在pap對同等層請求資料包驗證過程中使用sent-username和password
   protocol   對一個ip路由選擇協定進行定義,該協定可以是rip,內部閘道路由選擇協議(igrp),開放最短路徑優先(ospf),還可以是加強的igrp
   pwd   顯示當前設備名
reload   關閉並執行冷啟動;重啟作業系統
   rlogin   打開一個活動的網路連接
   router   由第一項定義的ip路由協定作為路由進程,例如:router rip 選擇rip作為路由協議
   router igrp   啟動一個igrp的路由選擇過程
   router rip   選擇rip作為路由選擇協議
   rsh   執行一個遠端命令
   sdlc   發送sdlc測試幀
   send   在tty線路上發送消息
   service password-encryption   對口令進行加密
   setup   運行setup命令
   show   顯示運行系統資訊
   show access-lists   顯示當前所有acl的內容
   show buffers   顯示暫存器統計資訊
   show cdp entry   顯示cdp表中所列相鄰設備的資訊
   show cdp interface   顯示打開的cdp介面資訊
   show cdp neighbors   顯示cdp查找進程的結果
   show dialer   顯示為ddr(數位資料接受器)設置的串列介面的一般診斷資訊
   show flash   顯示快閃記憶體的佈局和內容資訊
   show frame-relay lmi   顯示關於本地管理介面(lmi)的統計資訊
   show frame-relay map   顯示關於連接的當前映射入口和資訊
   show frame-relay pvc   顯示關於幀中繼介面的永久虛電路(pvc)的統計資訊
   show hosts   顯示主機名和位址的緩存列表
show interfaces   顯示設置在路由器和訪問伺服器上所有介面的統計資訊
   show interfaces   顯示路由器上配置的所有介面的狀態
   show interfaces serial   顯示關於一個串口的資訊
   show ip interface   列出一個介面的ip資訊和狀態的小結
   show ip interface   列出介面的狀態和全局參數
   show ip protocols   顯示活動路由協定進程的參數和當前狀態
   show ip route   顯示路由選擇表的當前狀態
   show ip router   顯示ip路由表資訊
   show ipx interface   顯示cisco ios軟體設置的ipx介面的狀態以及每個介面中的參數
   show ipx route   顯示ipx路由選擇表的內容
   show ipx servers   顯示ipx伺服器列表
   show ipx traffic   顯示資料包的數量和類型
   show isdn active   顯示當前呼叫的資訊,包括被叫號碼、建立連接前所花費的時間、在呼叫期間使用的自動化操作控制(aoc)收費單元以及是否在呼叫期間和呼叫結束時提供aoc資訊
   show isdn ststus   顯示所有isdn介面的狀態、或者一個特定的數位信號鏈路(dsl)的狀態或者一個特定isdn介面的狀態
   show memory   顯示路由器記憶體的大小,包括空閒記憶體的大小
   show processes   顯示路由器的進程
   show protocols   顯示設置的協定
   show protocols   顯示配置的協定。這條命令顯示任何配置了的第3層協定的狀態
   show running-config   顯示ram中的當前配置資訊
   show spantree   顯示關於虛擬局域網(vlan)的生成樹資訊
   show stacks   監控和中斷程式對堆疊的使用,並顯示系統上一次重啟的原因
   show startup-config   顯示nvram中的啟動配置檔
   show ststus   顯示isdn線路和兩個b通道的當前狀態
   show version   顯示系統硬體的配置,軟體的版本,配置檔的名稱和來源及引導映射
   shutdown   關閉一個介面
   telnet   開啟一個telect連接
   term ip   指定當前會話的網路遮罩的格式
   term ip netmask-format   規定了在show命令輸出中網路遮罩顯示的格式
   timers basic   控制著igrp以多少時間間隔發送更新資訊
   trace   跟蹤ip路由
   username password   規定了在chap和pap呼叫者身份驗證過程中使用的密碼
   verify   檢驗flash文件
   where   顯示活動連接
   which-route   osi路由表查找和顯示結果
   write   運行的配置資訊寫入記憶體,網路或終端
   write erase   現在由copy startup-config命令替換
   x3   在pad上設置x.3參數
   xremote   進入xremote模式


路由器命令
關鍵字: 路由器


router> 用戶模式

1:進入特權模式 enable

router > enable

router #

2:進入全局配置模式 configure terminal

router > enable

router #configure terminal

router (conf)#

3:交換機命名 hostname routera 以routera為例

router > enable

router #configure terminal

router(conf)#hostname routera

routera (conf)#

4:配置使能口令 enable password cisco 以cisco為例

router > enable

router #configure terminal

router(conf)#hostname routera

routera (conf)# enable password cisco

5:配置使能密碼 enable secret ciscolab 以cicsolab為例

router > enable

router #configure terminal

router(conf)#hostname routera

routera (conf)# enable secret ciscolab

6:進入路由器某一埠 interface fastehernet 0/17 以17埠為例

router > enable

router #configure terminal

router(conf)#hostname routera

routera (conf)# interface fastehernet 0/17

routera (conf-if)#

進入路由器的某一子埠 interface fastethernet 0/17.1 以17埠的1子埠為例

router > enable

router #configure terminal

router(conf)#hostname routera

routera (conf)# interface fastehernet 0/17.1

7:設置埠ip位址資訊

router > enable

router #configure terminal

router(conf)#hostname routera

routera(conf)# interface fastehernet 0/17 以17埠為例

routera (conf-if)#ip address 192.168.1.1 255.255.255.0 配置交換機埠ip和子網路遮罩

routera (conf-if)#no shut 是配置處於運行中

routera (conf-if)#exit

8:查看命令 show

router > enable

router # show version 察看系統中的所有版本資訊

show interface vlan 1 查看交換機有關ip 協定的配置資訊

show running-configure 查看交換機當前起作用的配置資訊

show interface fastethernet 0/1 察看交換機1介面具體配置和統計資訊

show mac-address-table 查看mac地址表

show mac-address-table aging-time 查看mac位址表自動老化時間

show controllers serial + 編號 查看串口類型

show ip router 查看路由器的路由表

9:cdp相關命令

router > enable

router # show cdp 查看設備的cdp全局配置資訊

show cdp interface fastethernet 0/17 查看17埠的cdp配置資訊

show cdp traffic 查看有關cdp包的統計資訊

show cdp nerghbors 列出與設備相連的cisco設備

10:csico2600的密碼恢復

重新啟動路由器,在啟動過程中按下win+break鍵,使路由器進入rom monitor

在提示符下輸入命令修改配置寄存器的值,然後重新啟動路由器

remmon1>confreg 0x2142

remmon2>reset

重新啟動路由器後進入setup模式,選擇“no”,退回到exec模式,此時路由器原有的配置仍然保存在startup-config中,為使路由器恢 複密碼後配置不變把startup-config中配置保存到running-config中,然後重新設置enable密碼,並把配置寄存器改回 0x2102:

router>enable

router#copy startup-config running-config

router#configure terminal

router(conf)#enable password cisco

router(conf)#config-register 0x2102

保存當前配置到startup-config , 重新啟動路由器。

router #copy running-config startup-config

router #reload

11:路由器telnet遠端登錄設置:

router>en

router #configure terminal

router (conf)#hostname routera

routera (conf)#enable password cisco 以cisco為特權模式密碼

routera (conf)#interface fastethernet 0/1 以17埠為telnet遠端登錄埠

routera (conf-if)#ip address 192.168.1.1 255.255.255.0

routera (conf-if)#no shut

routera (conf-if)#exit

routera (conf)line vty 0 4 設置0-4 個用戶可以telnet遠端登陸

routera (conf-line)#login

routera (conf-line)#password edge 以edge為遠端登錄的用戶密碼

主機設置:

ip 192.168.1.2 主機的ip必須和交換機埠的位址在同一網路段

netmask 255.255.255.0

gate-way 192.168.1.1 閘道位址是交換機埠位址

運行:

telnet 192.168.1.1

進入telnet遠端登錄介面

password : edge

routera>en

password: cisco

routera#

12:配置路由器的標識 banner $……………$

在全局配置的模式下利用“banner”命令可以配置路由器的提示資訊,所有連接到路由器的終端都會收到。

router>en

router #configure terminal

router (conf)#hostname routera

routera(conf)#banner motd $this is aptech company’ router ! please don’t change the configuration without permission!

$13:配置介面標識 description ………

介面標識用於區分路由器的各個介面。

router>en

router #configure terminal

router (conf)#hostname routera

routera(conf)#interface fastethernet 0/1 以0/1 介面為例

routera(conf-if)# description this is a fast ethernet port used to connecting the company’s intranet!

14:配置超時

超時適用於設置在多長時間沒有對console進行配置,自動返回exec會話時間。默認為10分鐘。

router>en

router #configure terminal

router (conf)#hostname routera

routera(conf)#line console 0

routera(conf-if)#exec-timeout 0 0 第一個“0”代表分鐘,第二個“0”代表秒

15:配置串口參數

兩台路由器通過串口連接需要一個做為dte,一個做為dce。dce設備要向dte設備提供時鐘頻率和帶寬。

dce配置:

router>en

router #configure terminal

router (conf)#hostname routera

routera(conf)#interface serial 0/0

routera(conf_if)#clock rate 64000 提供時鐘頻率為64000

routera(conf_if)#bandwidth 64 提供帶寬為64

dte配置:路由器串口配置ip位址

router>en

router #configure terminal

router (conf)#hostname routerb

routerb(conf)#interface serial 0/0

routerb(conf_if)#ip address 192.168.1.1 255.255.255.0

16:靜態路由的配置

配置路由器a的主機名和介面參數

router>enable

router#configure terminal

router(conf)#hostname routera

routera(conf)#interface fastethernet 0/1 路由器a的1埠為兩路由器的連接埠

routera(conf-if)#ip address 192.168.2.1 255.255.255.0

routera(conf-if)#no shutdown

routera(conf-if)#exit

routera(conf)# interface fastethernet 0/0 路由器a的0埠為與主機的連接埠

routera(conf-if)#ip address 192.168.1.2 255.255.255.0

routera(conf-if)#no shutdown

主機a的ip位址為 192.168.1.1

255.255.255.0

192.168.1.2

配置路由器b的主機名和介面參數

router>enable

router#configure terminal

router(conf)#hostname routerb

routerb(conf)#interface fastethernet 0/0 路由器b的0埠為兩路由器的連接埠

routerb(conf-if)#ip address 192.168.2.2 255.255.255.0

routerb(conf-if)#no shutdown

routerb (conf-if)#exit

routerb(conf)# interface fastethernet 0/1 路由器b的1埠為與主機的連接埠

routerb(conf-if)#ip address 192.168.3.1 255.255.255.0

主機b的ip位址為 192.168.3.2

255.255.255.0

192.168.3.1

配置路由器a的靜態路由表

routera(conf)#ip router 192.168.3.0 255.255.255.0 192.168.2.2

配置路由器b的靜態路由表

routera(conf)#ip router 192.168.1.0 255.255.255.0 192.168.2.1

在routera和routerb上配置默認路由

routera(conf)#ip route 0.0.0.0 0.0.0.0 192.168.2.2

routera(conf)#ip classless

routerb(conf)#ip route 0.0.0.0 0.0.0.0 192.168.2.1

routerb(conf)#ip classless

在routera和routerb上配置動態路由(rip)

routera(conf)#router rip

routera(conf)#network 192.168.1.0

routera(conf)#network 192.168.2.0

routerb(conf)# router rip

routerb(conf)#network 192.168.2.0

routerb(conf)#network 192.168.3.0

coke750101 發表在 痞客邦 留言(0) 人氣()

Table of Contents
  
  Command Descriptions
  
  address-violation
  autobaud
  back-pressure
  banner motd
  bridge (forwarding-time)
  bridge-group
  bridge-group (allow-overlap)
  bridge-group (enable)
  bridge (hello-time)
  bridge (max-age)
  bridge (priority)
  cdp (advertise-v2)
  cdp (enable)
  cdp (holdtime)
  cdp (timer)
  cgmp
  cgmp (hold-time)
  cgmp (leave-processing)
  cgmp (remove)
  cgmp (reserved)
  clear (cgmp)
  clear (DNS-cache)
  clear (counters)
  clear (mac-address-table)
  clear (uplink-fast statistics)
  clear (vtp statistics)
  cluster
  configure
  copy (nvram tFTP)
  copy (tftp)
  copy (xModem)
  databits
  delete (nvram)
  delete (vtp)
  description
  disable
  duplex
  ecc
  enable
  enable (passWord)
  enable (secret)
  enable (use-tacacs)
  end
  exit
  fddi (authorization)
  fddi (auth-string)
  fddi (notify-timer)
  fddi (novell-snap-translation)
  fddi (unmatched-snap-translation)
  hostname
  interface
  ip (address)
  ip (default-gateway)
  ip (domain-name)
  ip (http port)
  ip (http server)
  ip (mgmt-vlan)
  ip (name-server)
  line console
  login (tacacs)
  mac-address-table (aging-time)
  mac-address-table (permanent)
  mac-address-table (restricted static)
  menu
  modem (dialin)
  modem (init-string)
  monitor-port
  monitor-port (monitored)
  monitor-port (port)
  multicast-store-and-forward
  network-port
  pagp-port-priority
  parity
  password-thresh
  ping
  port (block)
  port-channel (mode)
  port-channel (preserve-order)
  port-channel (template-port)
  port secure
  port secure (clear)
  reload
  reload (in)
  rip
  service (config)
  session
  show (bridge-group)
  show cdp (interface)
  show cdp (neighbors)
  show (cgmp)
  show cluster
  show (history)
  show (interfaces)
  
  Command Descriptions
  This chapter is a command-by-command description of the firmware version 9.00 CLI commands for the Catalyst 1900 series and Catalyst 2820 series switches.
  address-violation
  Use the address-violation global configuration command to specify the action for a port address violation. Use the no address-violation command to set the switch to its default value (suspend).
  address-violation {suspend | disable | ignore}
  no address-violation
  Syntax Description
  suspend Suspend port on address violation. A suspended port is temporarily disabled until a certain number of frames with the proper address is received.
  disable Disable port on address violation.
  ignore Ignore address violation.
  
  Default
  The port is suspended on address violation.
  Command Mode
  Global configuration
  Usage Guidelines
  An address violation occurs when a secured port receives a source address that has been assigned to another secured port or when a port tries to learn an address that exceeds the address-table size limit.
  Example
  This command causes the switch to disable the port on address violation.
  hostname(config)# address-violation disable
  Related Commands
  port secure
  show (port system)
  autobaud
  Use the autobaud line-configuration command to enable remote baud-rate matching. Use the no autobaud command to disable remote baud-rate matching.
  autobaud
  no autobaud
  Syntax Description
  This command has no arguments or keywords.
  Default
  Remote baud-rate matching is enabled.
  Command Mode
  Line configuration
  Example
  This example shows how to enable remote baud-rate matching.
  hostname(config-line)# autobaud
  Related Commands
  databits
  line console
  modem (dialin)
  parity
  show (line)
  show (terminal)
  speed
  stopbits
  terminal
  back-pressure
  Use the back-pressure global configuration command to enable back pressure. Use the no back-pressure command to disable back pressure.
  back-pressure
  no back-pressure
  Syntax Description
  This command has no arguments or keywords.
  Default
  Back pressure is disabled.
  Command Mode
  Global configuration
  Usage Guidelines
  When the back-pressure command is enabled, the switch forces a collision when there is no buffer to receive frames. This collision causes the transmitter to retransmit dropped frames immediately, increasing performance. The command is valid only for a 10BaseT port operating in half-duplex mode.
  Example
  This example shows how to enable back pressure.
  hostname(config)# back-pressure
  Related Commands
  configure
  duplex
  show (interfaces)
  show (port system)
  banner motd
  Use the banner motd global configuration command to set the message-of-the-day (MOTD) banner. Use the no banner motd command to remove the banner.
  banner [motd] d message d
  no banner [motd]
  Syntax
  motd Optional command acronym for "message of the day."
  d Delimiting character---a pound sign (#), for example. Do not use the delimiting character in the banner message.
  message Message text up to 400 characters or 20 lines.
  
  Default
  No MOTD is set.
  Command Mode
  Global configuration
  Usage Guidelines
  When configuring a multiline banner, the multiline help prompt displays after you enter the first line of the banner:
  Enter TEXT message. End with the character c
  
  where c is the delimiting character you choose.
  When a MOTD banner is set, it displays at the login screen to the serial port console and all telnet connections (except the rcommand connections from a command switch). The maximum size of the banner is 400 characters or 20 lines, whichever is reached first.
  Examples
  This example sets the MOTD banner to Empowering the Internet Generation.
  hostname(config)# banner motd # Empowering the Internet Generation #
  
  This example shows how to set the MOTD banner message with line feeds.
  hostname(config)# banner #
  
  Enter TEXT message. End with the character #.
  Line 1 is now up.
  Line 2 is still down.
  #
  
  This example shows how to remove the MOTD banner.
  hostname(config)# no banner motd
  Related Commands
  None
  bridge (forwarding-time)
  Use the bridge forwarding-time global configuration command to set the Spanning-Tree Protocol (STP) forward-delay time for a particular bridge group. Use the no bridge forwarding-time command to reset the forward-delay time to its default value.
  bridge bridge-group forwarding-time time
  no bridge bridge-group forwarding-time
  Syntax Description
  bridge-group Number from 1 to 4.
  time Number from 4 to 30 seconds.
  
  Default
  The default is 15 seconds.
  Command Mode
  Global configuration
  Usage Guidelines
  This command is available only when bridge groups are enabled.
  Example
  The following example shows how to set the forward-delay time to 10 seconds for bridge-group 1.
  hostname(config)# bridge 1 forwarding-time 10
  Related Commands
  bridge (hello-time

coke750101 發表在 痞客邦 留言(0) 人氣()

新版CCNA 640-801考試IOS命令大全

轉載自 http://www.net130.com/ccna/info/ccna003.htm

?  給出一個幫助螢幕
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 顯示第層進程
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,Internet
Enginering 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 將該埠設為自動中繼模式(完)

coke750101 發表在 痞客邦 留言(0) 人氣()