CISCO光模塊應(yīng)用說明及常用命令
Cisco設(shè)備光模塊解密方法,社區(qū)首發(fā)。Cisco設(shè)備只能用cisco品牌的光模塊, 其他品牌或雜牌的光模塊思科設(shè)備是絕對不支持的。如果你硬是插上別的光模塊,cisco端 口信息上就會顯示Unsupport或Unknown。日志顯示以下情況中一種或幾種: %PM_SCP-SP-3-TRANSCEIVER_UNSUPPORTED: Unsupported transceiver in LAN port */* %PHY-4-CHECK_SUM_FAILED: SFP EEPROM data check sum failed for SFP interface Gi1/0/25 %GBIC_SECURITY_CRYPT-4-VN_DATA_CRC_ERROR: GBIC in port Gi1/0/25 has bad crc %PM-4-ERR_DISABLE: gbic-invalid error detected on Gi1/0/25, putting Gi1/0/25 in er r-disable state 這是為什么呢? Cisco SFP安全密鑰機(jī)制SFP安全密鑰機(jī)制通過防止非Cisco SFP的使用來保 證質(zhì)量和兼容性。每個 SFP 都使用非凡的軟件密鑰進(jìn)行編碼,交換機(jī)在運(yùn)行時對密鑰進(jìn)行驗 證,若SFP不包含合法的密鑰,那么相應(yīng)的端口關(guān)閉,在沒有插入Cisco提供的合法的SFP 之前,該端口將不能發(fā)送或接收任何數(shù)據(jù)包。
那如何解決 Cisco 設(shè)備光模塊安全密鑰機(jī)制呢? 進(jìn)入端口配置模式:
打上已下隱藏命令(不能按<tab>鍵):
service unsupported-transceiver
no errdisable detect cause gbic-invalid
speed nonegotiate
保存配置然后插上光模塊完成如此一來,switch就不會去檢查GBIC的序號,而讓使 用者可以先把第三方的 GBIC 或 SFP 插在機(jī)器上,讓網(wǎng)路先恢復(fù)運(yùn)作。當(dāng)然,基于「不鼓勵」 的原則,前一個指令是「隱藏版」的指令。如果想不起來的時候,就算用「?」按到手抽筋, 也絕對不會看見unsupported-transceiver出現(xiàn)在command list里面;而且沒有把完整指令打 完,機(jī)器也絕對不會接受;至于想要打個unsup再按<tab>鍵,很抱歉,無效,不知道完整 指令的人,永遠(yuǎn)也別想偷偷用來路不明的GBIC或SFP,呵。
cisco 公司特別說明:
用(config)#service unsupported-transceiver指令之后,設(shè)備會跳出以下的警告訊息:
Warning: When Cisco determines that a fault or defect can be traced to the use of third-party transceivers installed by a customer or reseller, then, at Cisco's di scretion, Cisco may withhold support under warranty or a Cisco support progr am. In the course of providing support for a Cisco networking product Cisco may require that th e end user install Cisco transceivers if Cisco determines that removing third- party parts will assist Cisco in diagnosing the cause of a support issue.
簡單的說,就是Cisco對于這些來路不明的GBIC不提供任何保證,網(wǎng)路要是不通,請乖乖 買原廠GBIC啦
cisco設(shè)備常用命令
時間:2012-02-29 13:35來源:未知作者:yutao點擊:1103次 router enable從用戶模式進(jìn)入特權(quán)模式
router# disable or exit從特權(quán)模式退出到用戶模式
router# show sessions 查看本機(jī)上的 TELNET 會話
router# disconnect 關(guān)閉所有的 TELNET 會話
router# show users 查看本機(jī)上
router> enable 從用戶模式進(jìn)入特權(quán)模式
router# disable or exit
從特權(quán)模式退出到用戶模式
router# show sessions 查看本機(jī)上的 TELNET 會話
router# disconnect
關(guān)閉所有的 TELNET 會話
router# show users
查看本機(jī)上的用戶
router# erase startup-config
刪除 NVRAM 中的配置
router# reload
重啟路由器
router# config terminal 從用戶模式進(jìn)入特權(quán)模式
router(config)# hostname rl 配置用戶名為 rl
router(config)# #banner welcome# 配置開機(jī)話語
router# show controllers serial0
查看串口 0 的物理層信息(主要是查看 DTE/DCE)
router# show ip interface 查看端口的 IP 配置信息
router# show hosts
查看主機(jī)表
end or ctrl+z 從各種配置模式退到特權(quán)模式
rl(config)# no ip domain-lookup 關(guān)閉動態(tài)域名解析
rl(config)# ip domain-lookup 打開動態(tài)域名解析
rl(config)# ip name-server 202.106.0.20
打開動態(tài)域名解析之后便可以指定DNS服務(wù)
rl(config)# interface serial 0 進(jìn)入 serial 0 的接口配置模式
rl(config-if)# no shutdown 路由器出廠默認(rèn)所有端口關(guān)閉,使用此命令使它們打開
rl(config-if)# encapsulation ppp
封裝 ppp
rl(config-if)# clockrate 64000
如果是DCE使需要設(shè)置時鐘速率,如果是DTE使不必設(shè)置
rl(config-if)# bandwidth 64 設(shè)置端口帶寬為 64K
rl(config-if)# ctrl+c 或者 ctrl+z 快捷鍵退出到特權(quán)模式
rl# show interface serial 0
查看s0信息,如果看到serial和line protocol都顯示up,說明鏈路兩 端都設(shè)置成功
注意:如果出現(xiàn) serial down, line down
可能對方的端口沒有打no shutdown或者電纜沒有插好;如果出現(xiàn)serial up, line down可能是DCE端沒有設(shè)置clock rate,也可能是封裝格式不對
rl# show cdp neighbors
查看 CDP 鄰居信息
rl# show cdp entry *
rl(config-if)# ip add 10.0.0.1 255.0.0.0 進(jìn)入相應(yīng)的接口,配置相應(yīng)的 IP 地址
rl# ping 10.0.0.2
使用 ping 命令查看鄰居的連通性
rl# show ip route
查看路由表,可以看到以C打頭的路由信息,這是直連的路由信息;可以看 到R開頭的路由信息,是從rip學(xué)來的路由信息;可看到以I開頭的路由信息取 代了以R開頭的路由信息,這是因為igrp的管理距離是100,小于rip的120
rl(config-if)# router rip 啟動RIP路由協(xié)議
rl(config-router)# network 10.0.0.0
發(fā)布網(wǎng)段(注意 network 后面是接的網(wǎng)絡(luò)號而不是 IP 地址)
rl# show ip protocol
查看配置的路由協(xié)議
rl(config)# router igrp 300 一定要注意在IGRP后面加自治系統(tǒng)號,考試的時候題目會告訴你AS
NUMBER,照敲就是
rl(config-router)# network 10.0.0.0
宣告 10.0.0.0 網(wǎng)段的路由
rl(config)# line vty0 4 進(jìn)入虛擬線程配置模式,在此模式可對 telnet 功能進(jìn)行配置
rl(config-line)# login
rl(config-line)# password cisco
配置telnet密碼,默認(rèn)的網(wǎng)絡(luò)設(shè)備telnet的功能是關(guān)閉的,配了密碼之后 會自動打開
rl(config)# enable password cisco
配置進(jìn)入enable模式的密碼, 區(qū)分大小寫
rl(config)# enable secret ciscocisco
配置進(jìn)入enable模式的密碼,是加密的密碼,show run是看不見的
rl(config)# line console 0
rl(config-line)# login
rl(config-line)# password cisco 配置進(jìn)入用戶模式的密碼
rl(config-line)# logging synchronous
輸入同步
rl(config-line)# exec-timeout 0 0 禁止因為一段時間沒有輸入而跳出
rl# copy running-config startup-config 保存配置,考試的時候注意題目的要求,如果題目里要求你保存配置就一定 不能少了這一項