博達路由器常見功能教學0

常用全局指令介紹

show version指令可以查看路由器的當前軟硬件版本號、連續運行時間、所檢測到的模塊信息等,非常有用
 
Router#show ver
BDCOM(tm) 2621 Software, Version 1.3.3F (FASTSWITCH)
Copyright by Shanghai Baud Data Communication CO. LTD.
Compiled: 2008-04-03 18:59:02 by system, Image text-base: 0x6004
ROM: System Bootstrap, Version 0.4.3,Serial num:RA014677
System p_w_picpath file is "Router.bin"
(PowerPC) processor with 65536K bytes of memory, 8192K bytes of flash
Router uptime is 0:00:33:07, The current time: 2002-01-01 00:33:07
Slot 0: SCC Slot
  Port 0: 10/100Mbps full-duplex Ethernet
  Port 1: 10/100Mbps full-duplex Ethernet
  Port 2: 2M full-duplex Serial
  Port 3: 2M full-duplex Serial

show cpu指令可以看到路由器當前的CPU佔用率信息。使用時,建議大家多show幾次,看平均值;而且該過程也能顯示出CPU佔用率的波動情況

 

Router#show cpu
CPU Usage :     0.7% user, 99.3% idle
Router#show cpu
CPU Usage :     0.7% user, 99.3% idle
Router#show cpu
CPU Usage :     0.8% user, 99.2% idle
Router#show cpu
CPU Usage :     0.7% user, 99.3% idle

 
注意:如果是博達交換機或者寬帶路由器,顯示cpu佔用率的指令是show task。
show ip interface brief可以顯示出路由器當前所有接口的IP地址和狀態,是最常用的指令之一

 

Router#show ip inter br
Interface                  IP-Address      Method Protocol-Status
Async0/0                   unassigned      manual down
Serial0/2                  unassigned      manual down
Serial0/3                  unassigned      manual down
FastEthernet0/0            10.1.0.254      manual up 
FastEthernet0/1            unassigned      manual down
Virtual-template0          9.9.9.9         manual down
 
show ip route查看路由表,不用說,這個是設備作爲路由器最基本的功能,其中包含了路由的類型、目的網段、下一跳網關,優先權等信息

 
Router#show ip route   
Codes: C - connected, S - static, R - RIP, B - BGP, BC - BGP connected
       D - BEIGRP, DEX - external BEIGRP, O - OSPF, OIA - OSPF inter area
       ON1 - OSPF NSSA external type 1, ON2 - OSPF NSSA external type 2
       OE1 - OSPF external type 1, OE2 - OSPF external type 2
       DHCP - DHCP type

 
VRF ID: 0

 
C      10.1.0.0/24          is directly connected, FastEthernet0/0


Router#show run
show run顯示當前正在運行的配置文件,據不完全統計,這是路由器上被使用最多的指令之一。

其功能無需多說。需要關注的是:running-config和startup-config之間的關係:

1、路由器出廠時,Flash中沒有startup-config,路由器啓動就無法加載,但同樣會根據當前接口和模塊的配備自動生成一個running-config,這個文件只存放與內存中,一旦掉電就丟失了。
    這也是爲什麼路由器剛剛出廠時,show run輸出內容不爲空的原因。
    注:此時的show run內容非常簡單,不足以讓路由器能夠正常工作或者通信。

2、所有(config#模式中)對路由器指令的增加的指令,都直接作用於running-config。因爲running-config是存放於內存中,所以對路由器的指令修改將會即時生效。當執行Write保存指令時,路由器將會吧running-config的內容寫入到startup-config中。

3、當系統關機時,running-config丟失,但startup-config可悲保存下來。下次系統重啓時,可以正常加載、運行。
 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章