第一篇:思科網(wǎng)絡(luò)典型配置案例集錦
本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn 本資料由-大學(xué)生創(chuàng)業(yè)|創(chuàng)業(yè)|創(chuàng)業(yè)網(wǎng)http://004km.cn
第二篇:思科統(tǒng)一通訊方案典型配置參考
思科統(tǒng)一通訊方案典型配置參考
用戶需求分析
客戶規(guī)模:
? ? 客戶有一個(gè)總部,約有100名員工;
一個(gè)分支機(jī)構(gòu),約有20名員工;
客戶需求:
? ? ? ? 組建安全可靠的總部和分支LAN和WAN;
總部和分支部署IP電話,以及IP語音信箱服務(wù);
方便和圖形化的網(wǎng)絡(luò)管理;
整體方案要便于以后升級,以利于投資保護(hù)。
思科建議方案:
? ? ? 部署思科智能交換機(jī)和多業(yè)務(wù)集成路由器,構(gòu)建安全的數(shù)據(jù)通信網(wǎng)絡(luò);
部署思科統(tǒng)一通信方案,構(gòu)建語音通信網(wǎng)絡(luò);
部署思科CNA,實(shí)現(xiàn)圖形化的網(wǎng)絡(luò)管理。
1.思科建議方案設(shè)計(jì)圖
點(diǎn)擊放大
2.思科建議方案總體配置概述
? 安全和智能的總部與分支網(wǎng)絡(luò)
o LAN:總部思科Cat3560和CE500交換機(jī),提供約100個(gè)用戶的接入; 分支思科NME交換機(jī)模塊,提供約16個(gè)用戶接入;
o WAN:總部ISR3825路由器,分支ISR2811,實(shí)現(xiàn)總部和分支之間安全可靠地互聯(lián),可以采用專線,也可以經(jīng)由因特網(wǎng),采用VPN實(shí)現(xiàn);
? ? 總部和分支用戶的IP通信服務(wù):
o 總部ISR3825和分支ISR2811分別運(yùn)行思科Call Manager Express IP電話服務(wù),提供總部約100臺IP電話機(jī),分支16臺IP電話的服務(wù);
o 總部和分支的用戶也可以使用PC上的思科軟件IP電話進(jìn)行通信;
o 總部ISR3825和分支ISR2811部署思科Unity Express,提供總部和分支的語音信箱服務(wù);
? ? 安全服務(wù)
o 利用總部和分支路由器的IOS FW和IOS IPS,及 IPSec VPN和WEB VPN功能,實(shí)現(xiàn)安全的網(wǎng)絡(luò)訪問和應(yīng)用傳輸,以及高級的應(yīng)用控制; 另外,可利用思科Auto-Secure功能快速部署基本的安全功能
? 網(wǎng)絡(luò)管理
o 圖形化思科網(wǎng)絡(luò)助理CNA,可以監(jiān)控,配置和管理總部或者分支網(wǎng)絡(luò)中的所有設(shè)備,包括交換機(jī),路由器和IP電話機(jī);
o 可從CNA中調(diào)用思科SDM管理軟件,對路由器上的所有功能,包括防火墻,VPN和IPS等進(jìn)行圖形化的配置管理;
o 利用圖形化交互式IP通信配置工具:QCT(Quick Config Tool),幫助客戶實(shí)現(xiàn)所需要的功能;
o 利用圖形化的CCME和CUE配置界面,可以方便地配置管理Call Manager Express和Unity Express;
3.總部方案產(chǎn)品配置詳述
? ? LAN
o Cat3560-48PS為主干,CE500-24PC為桌面交換機(jī),可提供100個(gè)左右的用戶以100M接入,同時(shí)提供IP電話機(jī)的電源供應(yīng);
? ? WAN
o 采用ISR3825,配置VWIC2-1MFT-G703,通過E1線路連接分支網(wǎng)絡(luò),如果希望經(jīng)由因特網(wǎng),利用VPN實(shí)現(xiàn)互聯(lián),可以不配此部件;
? ? 統(tǒng)一通信
o ISR3825上配置VWIC2-4FXO,連接PSTN,配置VWIC2-2FXS,連接內(nèi)部的傳真機(jī)和模擬電話機(jī);
o 如果需要更多的模擬電話接入和PSTN線路連接,可配置EVM擴(kuò)展語音模塊,最大支持24個(gè)FXS或者 8個(gè)FXS+12個(gè)FXO端口; 或者采用NM-HDV2和或VWIC2-MFT-E1以支持更多的接入數(shù)量;
o 配置思科CallManager Express 的IP電話服務(wù),提供96個(gè)IP電話支持,最大可以擴(kuò)展到168個(gè)IP電話;
o 配置思科NM-CUE-EC模塊,提供100個(gè)語音信箱的服務(wù),最多可支持250個(gè)語音信箱。
o 配置96臺IP 電話機(jī):Cisco 7941G,和 IP communicator軟電話
?
? 安全
o 配置思科路由器上的IOS FW和IOS IPS實(shí)現(xiàn)高級應(yīng)用控制,配置WEB VPN和IPSec VPN,實(shí)現(xiàn)總部和分支互聯(lián),以及遠(yuǎn)程接入的功能;
4.分支方案產(chǎn)品配置詳述
? ? LAN & WAN
o LAN方面,采用ISR2811,配置NME-16ES-1G-P,提供16個(gè)用戶100M的接入,同時(shí)提供IP電話機(jī)所需的電源供應(yīng)。
o WAN方面,在ISR2811上配置VWIC2-1MFT-G703,通過E1線路連接總部網(wǎng)絡(luò),如果希望經(jīng)由因特網(wǎng),利用VPN實(shí)現(xiàn)互聯(lián),可以不配此部件;
? ? 統(tǒng)一通信
o ISR2811上配置VWIC2-2FXO,連接PSTN,配置VWIC2-2FXS,連接內(nèi)部的傳真機(jī)和模擬電話機(jī);
o 如果需要更多的模擬電話接入和PSTN線路連接,可以配置更多的VWIC-FSX/FXO,或者 NM-HDV2和或VWIC2-MFT-E1以支持更多的接入數(shù)量;
o 配置思科CallManager Express 的IP電話服務(wù),提供36個(gè)IP電話支持,最大可以擴(kuò)展到8個(gè)IP電話;
o 配置內(nèi)置于機(jī)箱的思科AIM-CUE模塊,提供25個(gè)語音信箱的服務(wù),最多可支持50個(gè)語音信箱。
o 配置96臺IP 電話機(jī):Cisco 7941G,和 IP communicator軟電話
? ? 安全
o 配置思科路由器上的IOS FW和IOS IPS實(shí)現(xiàn)高級應(yīng)用控制,配置IPSec VPN,實(shí)現(xiàn)總部和分支互聯(lián)的功能;
5.總部和分支方案產(chǎn)品清單
總部產(chǎn)品配置清單
ISR3825 語音安全銷售捆綁包,包括ISR3825硬件,高級IP服務(wù)特C3825-VSEC-CCME/K9 性集的IOS軟件,語音編解碼PVDM2-64,168個(gè)IP電話機(jī)支持的FL-CCME-168,128MB Flash,512MB DRAM VIC2-4FXO VIC2-4FXS VWIC2-1MFT-G703 NM-CUE-EC SCUE-2.3 SCUE-LIC-100CME WS-C3560-48PS-S WS-CE500-24PC
4端口 Voice Interface Card – FXO,連接外線PSTN 4端口 Voice Interface Card – FXS,連接FAX和模擬電話機(jī) 1端口 RJ-48 Multiflex Trunk2.3 100個(gè)語音信箱許可,Unity Express License 25 Voice Mailbox-Auto Attendant-CCME
Catalyst 3560 48 10/100 PoE + 4 SFP Standard Image 24 10/100(24PoE)and 2 10/100/1000BT or SFP uplinks
CP-7941G
SW-CCME-UL-7941
分支產(chǎn)品配置清單
Cisco IP Phone 7941
Cisco CallManager Express License For Single 7941 IP Phone
ISR2811 語音安全銷售捆綁包,包括ISR2811硬件,高級IP服務(wù)特C2811-VSEC-CCME/K9 性集的IOS軟件,語音編解碼PVDM2-16,36個(gè)IP電話機(jī)支持的 NME-16ES-1G-P VIC2-2FXO VIC2-2FXS VWIC2-1MFT-G703 AIM-CUE SCUE-2.3 SCUE-LIC-25CME PWR-2811-AC-IP CP-7941G
SW-CCME-UL-7941
FL-CCME-36,64MB Flash和256MB DRAM
以太網(wǎng)交換模塊,16 10/100T POE + 1 GE,IP Base 2端口 Voice Interface Card – FXO,連接外線PSTN 2端口 Voice Interface Card – FXS,連接FAX和模擬電話機(jī) 1端口 RJ-48 Multiflex Trunk2.3 25個(gè)語音信箱許可,Unity Express License 25 Voice Mailbox-Auto Attendant-CCME
利用NME-16ES提供在線電源支持的電源,Cisco 2811 AC/IP power supply
Cisco IP Phone 7941
Cisco CallManager Express License For Single 7941 IP Phone
第三篇:產(chǎn)品典型案例及配置_政府
政府網(wǎng)絡(luò)優(yōu)化方案
政府網(wǎng)絡(luò)現(xiàn)狀: 隨著信息技術(shù)的飛速發(fā)展,信息化建設(shè)已經(jīng)深入到政府部門,在政府快速的信息化進(jìn)程中我們注意到政府網(wǎng)絡(luò)具有如下特點(diǎn): ? P2P下載占用帶寬
大部分政府單位都會遇到因P2P下載等形為,導(dǎo)致本來很充裕的帶寬資源捉襟見肘。各種關(guān)鍵業(yè)務(wù)受到嚴(yán)重影響。? 內(nèi)網(wǎng)中不同部門,不同用戶分配不同的帶寬
內(nèi)網(wǎng)中多個(gè)部門共用同一出口,帶寬的合理分配尤為重要。關(guān)鍵的業(yè)務(wù)及數(shù)據(jù)量較大的應(yīng)用需得到保障,同時(shí)需要針對不同的部門,應(yīng)用進(jìn)行精細(xì)化管理。? 網(wǎng)絡(luò)可視化程度低
政府網(wǎng)使用情況缺乏透明度,全面掌握網(wǎng)絡(luò)中斷應(yīng)用類別和流量分布,哪些用戶在占用帶寬資源,無法對網(wǎng)絡(luò)問題進(jìn)行快速定位。? 非業(yè)務(wù)應(yīng)用影響辦公效率
QQ MSN,游戲等應(yīng)用大量占用辦公時(shí)間,嚴(yán)重影響辦事效率。
政府網(wǎng)絡(luò)解決方案目標(biāo): 針對政府網(wǎng)絡(luò)的特點(diǎn)及其主要問題,在制定流控解決方案時(shí),應(yīng)達(dá)到如下目標(biāo): 1 保證關(guān)鍵業(yè)務(wù) 2 精細(xì)化管控 3限制非業(yè)務(wù)應(yīng)用 4全面掌控
網(wǎng)神解決方案
精準(zhǔn)的識別引擎,全面的洞察網(wǎng)絡(luò)流量。
靈活的帶寬管理策略,對P2P等大量占用帶寬的應(yīng)用進(jìn)行限制,全面提升網(wǎng)絡(luò)帶寬利用率。高效的流量策略,保證關(guān)鍵業(yè)務(wù)運(yùn)行,禁止非業(yè)務(wù)流量影響辦公效率。針對每IP,IP段進(jìn)行精細(xì)化帶寬管理。完備的網(wǎng)絡(luò)日志,方便網(wǎng)絡(luò)違法事件后備查。降低IT運(yùn)維成本,收益最大化。限制內(nèi)網(wǎng)用戶私接路由和代理服務(wù)。
網(wǎng)神解決方案價(jià)值 ? 卓越的轉(zhuǎn)發(fā)性能
采用深度優(yōu)化的處理引擎,完全能夠政府網(wǎng)大流量復(fù)雜應(yīng)用的需求; ? 精準(zhǔn)的應(yīng)用識別引擎
系統(tǒng)內(nèi)置強(qiáng)大的7層應(yīng)用識別引擎,能夠識別加密BT下載,加密電驢下載,迅雷等協(xié)議,識別準(zhǔn)確率居業(yè)界領(lǐng)先水平。應(yīng)用識別樹采用多級分類,比傳統(tǒng)的2級分類更科學(xué),更精確,可以精確識別多達(dá)300多種應(yīng)用。? 精細(xì)化的帶寬管理策略
網(wǎng)神帶寬管理產(chǎn)品可以基于用戶/用戶組,IP/IP組,應(yīng)用類型/URl等進(jìn)行流量控制,靈活的時(shí)間對象定義可以幫助政府單位對內(nèi)網(wǎng)用戶分時(shí)段管控。對帶寬資源進(jìn)行合理劃分,保證關(guān)鍵性業(yè)務(wù),完全阻斷工作時(shí)間非業(yè)務(wù)應(yīng)用,協(xié)助政府單位對內(nèi)網(wǎng)進(jìn)行精細(xì)化管理。? 網(wǎng)站URL及web下載文件后綴管理
能夠?qū)eb進(jìn)行精細(xì)化管理??梢葬槍Σ煌木W(wǎng)站進(jìn)行阻斷,重定向和提示信息等管控并且可以控制從網(wǎng)站下載不通后綴的文件,有效的減少了下載病毒木馬軟件到內(nèi)網(wǎng)的幾率。
第四篇:思科交換機(jī)配置命令總結(jié)
思科交換機(jī)配置命令總結(jié)
1.switch(config)# hostname hostname 在基于CLI的交換機(jī)上設(shè)置主機(jī)名/系統(tǒng)名: switch(enable)set system name name-string 2.在基于IOS的交換機(jī)上設(shè)置登錄口令: switch(config)# enable password level 1 password 在基于CLI的交換機(jī)上設(shè)置登錄口令: switch(enable)set password switch(enable)set enalbepass 3.在基于IOS的交換機(jī)上設(shè)置遠(yuǎn)程訪問: switch(config)# interface vlan 1 switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address 在基于CLI的交換機(jī)上設(shè)置遠(yuǎn)程訪問: 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的交換機(jī)上啟用和瀏覽CDP信息: switch(config-if)# cdp enable switch(config-if)# no cdp enable 為了查看Cisco鄰接設(shè)備的CDP通告信息: switch# show cdp interface [type modle/port] switch# show cdp neighbors [type module/port] [detail] 在基于CLI的交換機(jī)上啟用和瀏覽CDP信息: switch(enable)set cdp {enable|disable} module/port 為了查看Cisco鄰接設(shè)備的CDP通告信息: switch(enable)show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 5.基于IOS的交換機(jī)的端口描述: switch(config-if)# description description-string 基于CLI的交換機(jī)的端口描述: switch(enable)set port name module/number description-string 6.在基于IOS的交換機(jī)上設(shè)置端口速度: switch(config-if)# speed{10|100|auto} 在基于CLI的交換機(jī)上設(shè)置端口速度: switch(enable)set port speed moudle/number {10|100|auto} switch(enable)set port speed moudle/number {4|16|auto} 7.在基于IOS的交換機(jī)上設(shè)置以太網(wǎng)的鏈路模式: switch(config-if)# duplex {auto|full|half} 在基于CLI的交換機(jī)上設(shè)置以太網(wǎng)的鏈路模式: switch(enable)set port duplex module/number {full|half} 8.在基于IOS的交換機(jī)上配置靜態(tài)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的交換機(jī)上配置靜態(tài)VLAN: switch(enable)set vlan vlan-num [name name] switch(enable)set vlan vlan-num mod-num/port-list 9.在基于IOS的交換機(jī)上配置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的交換機(jī)上配置VLAN中繼線: switch(enable)set trunk module/port [on|off|desirable|auto|nonegotiate] Vlan-range [isl|dotlq|dotl0|lane|negotiate] 10.在基于IOS的交換機(jī)上配置VTP管理域: switch# vlan database switch(vlan)# vtp domain domain-name 在基于CLI的交換機(jī)上配置VTP管理域: switch(enable)set vtp [domain domain-name] 11.在基于IOS的交換機(jī)上配置VTP 模式: switch# vlan database switch(vlan)# vtp domain domain-name switch(vlan)# vtp {sever|cilent|transparent} switch(vlan)# vtp password password 在基于CLI的交換機(jī)上配置VTP 模式: switch(enable)set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password] 12.在基于IOS的交換機(jī)上配置VTP版本: switch# vlan database switch(vlan)# vtp v2-mode 在基于CLI的交換機(jī)上配置VTP版本: switch(enable)set vtp v2 enable 13.在基于IOS的交換機(jī)上啟動VTP剪裁: switch# vlan database switch(vlan)# vtp pruning 在基于CL I 的交換機(jī)上啟動VTP剪裁: switch(enable)set vtp pruning enable 14.在基于IOS的交換機(jī)上配置以太信道: switch(config-if)# port group group-number [distribution {source|destination}] 在基于CLI的交換機(jī)上配置以太信道: switch(enable)set port channel moudle/port-range mode{on|off|desirable|auto} 15.在基于IOS的交換機(jī)上調(diào)整根路徑成本: switch(config-if)# spanning-tree [vlan vlan-list] cost cost 在基于CLI的交換機(jī)上調(diào)整根路徑成本: switch(enable)set spantree portcost moudle/port cost switch(enable)set spantree portvlancost moudle/port [cost cost][vlan-list] 16.在基于IOS的交換機(jī)上調(diào)整端口ID: switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority 在基于CLI的交換機(jī)上調(diào)整端口ID: switch(enable)set spantree portpri {mldule/port}priority switch(enable)set spantree portvlanpri {module/port}priority [vlans] 17.在基于IOS的交換機(jī)上修改STP時(shí)鐘: 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的交換機(jī)上修改STP時(shí)鐘: switch(enable)set spantree hello interval[vlan] switch(enable)set spantree fwddelay delay [vlan] switch(enable)set spantree maxage agingtiame[vlan] 18.在基于IOS的交換機(jī)端口上啟用或禁用Port Fast 特征: switch(config-if)#spanning-tree portfast 在基于CLI的交換機(jī)端口上啟用或禁用Port Fast 特征: switch(enable)set spantree portfast {module/port}{enable|disable} 19.在基于IOS的交換機(jī)端口上啟用或禁用UplinkFast 特征: switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second] 在基于CLI的交換機(jī)端口上啟用或禁用UplinkFast 特征: switch(enable)set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on] 20.為了將交換機(jī)配置成一個(gè)集群的命令交換機(jī),首先要給管理接口分配一個(gè)IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name 21.為了從一條中繼鏈路上刪除VLAN,可使用下列命令: switch(enable)clear trunk module/port vlan-range 22.用show vtp domain 顯示管理域的VTP參數(shù).23.用show vtp statistics顯示管理域的VTP參數(shù).24.在Catalyst交換機(jī)上定義TrBRF的命令如下: switch(enable)set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}] 25.在Catalyst交換機(jī)上定義TrCRF的命令如下: switch(enable)set vlan vlan-num [name name] type trcrf {ring hex-ring-num|decring decimal-ring-num} parent vlan-num 26.在創(chuàng)建好TrBRF VLAN之后,就可以給它分配交換機(jī)端口.對于以太網(wǎng)交換,可以采用如下命令給VLAN分配端口: switch(enable)set vlan vlan-num mod-num/port-num 27.命令show spantree顯示一個(gè)交換機(jī)端口的STP狀態(tài).28.配置一個(gè)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.創(chuàng)建完數(shù)據(jù)庫后,必須在主接口上啟動LECS.命令如下: ATM(config)# interface atm number ATM(config-if)# lane config database database-name ATM(config-if)# lane config auto-config-atm-address 31.將每個(gè)LEC配置到一個(gè)不同的ATM子接口上.命令如下: ATM(config)# interface atm number.subint multipoint ATM(config)# lane client ethernet vlan-num elan-num 32.用show lane server 顯示LES的狀態(tài).33.用show lane bus顯示bus的狀態(tài).34.用show lane database顯示LECS數(shù)據(jù)庫可內(nèi)容.35.用show lane client顯示LEC的狀態(tài).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.為了在路由處理器上進(jìn)行動態(tài)路由配置,可以用下列IOS命令來進(jìn)行: 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.配置默認(rèn)路由: switch(enable)set ip route default gateway 42.為一個(gè)路由處理器分配VLANID,可在接口模式下使用下列命令: router(config)# interface interface number router(config-if)# mls rp vlan-id vlan-id-num 43.在路由處理器啟用MLSP: router(config)# mls rp ip 44.為了把一個(gè)外置的路由處理器接口和交換機(jī)安置在同一個(gè)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.要檢驗(yàn)MLS-RP的配置情況: router# show mls rp 48.檢驗(yàn)特定接口上的MLS配置:
router# show mls rp interface interface number 49.為了在MLS-SE上設(shè)置流掩碼而又不想在任一個(gè)路由處理器接口上設(shè)置訪問列表: set mls flow [destination|destination-source|full] 50.為使MLS和輸入訪問列表可以兼容,可以在全局模式下使用下列命令: router(config)# mls rp ip input-acl [page] 51.當(dāng)某個(gè)交換機(jī)的第3層交換失效時(shí),可在交換機(jī)的特權(quán)模式下輸入下列命令: switch(enable)set mls enable 52.若想改變老化時(shí)間的值,可在特權(quán)模式下輸入以下命令: switch(enable)set mls agingtime agingtime 53.設(shè)置快速老化:
switch(enable)set mls agingtime fast fastagingtime pkt_threshold 54.確定那些MLS-RP和MLS-SE參與了MLS,可先顯示交換機(jī)引用列表中的內(nèi)容再確定: switch(enable)show mls include 55.顯示MLS高速緩存記錄: switch(enable)show mls entry 56.用命令show in arp顯示ARP高速緩存區(qū)的內(nèi)容。
57.要把路由器配置為HSRP備份組的成員,可以在接口配置模式下使用下面的命令: router(config-if)# standby group-number ip ip-address 58.為了使一個(gè)路由器重新恢復(fù)轉(zhuǎn)發(fā)路由器的角色,在接口配置模式下: router(config-if)# standy group-number preempt 59.訪問時(shí)間和保持時(shí)間參數(shù)是可配置的:
router(config-if)# standy group-number timers hellotime holdtime 60.配置HSRP跟蹤:
router(config-if)# standy group-number track type-number interface-priority 61.要顯示HSRP路由器的狀態(tài):
router# show standby type-number group brief 62.用命令show ip igmp確定當(dāng)選的查詢器。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.核實(shí)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.選擇一個(gè)默認(rèn)的RP: dallasr1># ip pim rp-address 通告RP和它所服務(wù)的組范圍:
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 設(shè)定一個(gè)RP映像代理:
dallasr1># ip pim send-rp-discovery scope ttl 核實(shí)組到RP的映像:
dallasr1># show ip pim rp mapping dallasr1># show ip pim rp [group-name|group-address] [mapping] 70.在路由器接口上用命令ip multicast ttl-threshold ttl-value設(shè)定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.要記錄一個(gè)路由器接受和發(fā)送的全部IP組播包:
dallasr1> #debug ip mpacket [detail] [access-list][group] 74.要在CISCO路由器上配置CGMP: dallasr1>(config-if)# ip cgmp 75.配置一個(gè)組播路由器,使之加入某一個(gè)特定的組播組: dallasr1>(config-if)# ip igmp join-group group-address 76.關(guān)閉 CGMP:
dallasr1>(config-if)# no ip cgmp 77.啟動交換機(jī)上的CGMP:
dallasr1>(enable)set cgmp enable 78.核實(shí)Catalyst交換機(jī)上CGMP的配置情況: catalystla1>(enable)show config set prompt catalystla1> set interface sc0 192.168.1.1 255.255.255.0 set cgmp enable 79.CGMP離開的設(shè)置:
Dallas_SW(enable)set cgmp leave 80.在Cisco設(shè)備上修改控制端口密碼: 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設(shè)備上設(shè)置控制臺及vty端口的會話超時(shí): 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設(shè)備上設(shè)定特權(quán)級:
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 可定義在該特權(quán)級下使用的命令: router(config)# privilege mode level level command 84.設(shè)定用戶特權(quán)級:
router(config)# enable secret level 3 dallas router(config)# enable secret san-fran router(config)# username student password cisco 85.標(biāo)志設(shè)置與顯示:
R1(config)# banner motd ‘unauthorized access will be prosecuted!’ 86.設(shè)置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命令的交換機(jī)上用setCL1啟動和核實(shí)端口安全:
switch(enable)set port security mod_num/port_num…enable mac address switch(enable)show port mod_num/port_num 在基于CiscoIOS命令的交換機(jī)上啟動和核實(shí)端口安全:
switch(config-if)# port secure [mac-mac-count maximum-MAC-count] switch# show mac-address-table security [type module/port] 90.用命令access-list在標(biāo)準(zhǔn)通信量過濾表中創(chuàng)建一條記錄:
Router(config)# access-list access-list-number {permit|deny} source-address [source-address] 91.用命令access-list在擴(kuò)展通信量過濾表中創(chuàng)建一條記錄: 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.對于帶內(nèi)路由更新,配置路由更新的最基本的命令格式是:
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命令選項(xiàng):
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 輸出結(jié)果。
101.命令set snmp rmon enable 的輸出結(jié)果。102.顯示SPAN信息: Consile> show span
第五篇:思科三層交換機(jī)配置總結(jié)
思科交換機(jī)的基本配置命令學(xué)習(xí)
CISCO交換機(jī)基本配置:Console端口連接 用戶模式hostname# ;
特權(quán)模式hostname(config)# ;
全局配置模式hostname(config-if)# ; 交換機(jī)口令設(shè)置:
switch>enable ;進(jìn)入特權(quán)模式
switch#config terminal ;進(jìn)入全局配置模式
switch(config)#hostname csico ;設(shè)置交換機(jī)的主機(jī)名 switch(config)#enable secret csico1 ;設(shè)置特權(quán)加密口令 switch(config)#enable password csico8 ;設(shè)置特權(quán)非密口令 switch(config)#line console 0 ;進(jìn)入控制臺口 switch(config-line)#line vty 0 4 ;進(jìn)入虛擬終端 switch(config-line)#login ;虛擬終端允許登錄
switch(config-line)#password csico6 ;設(shè)置虛擬終端登錄口令csico6 switch#exit ;返回命令
交換機(jī)VLAN創(chuàng)建,刪除,端口屬性的設(shè)置,配置trunk端口,將某端口加入vlan中,配置VTP: switch#vlan database ;進(jìn)入VLAN設(shè)置 switch(vlan)#vlan 2 ;建VLAN 2
switch(vlan)#vlan 3 name vlan3 ;建VLAN 3并命名為vlan3 switch(vlan)#no vlan 2 ;刪vlan 2 switch(config)#int f0/1 ;進(jìn)入端口1
switch(config)#speed ? 查看speed命令的子命令
switch(config)#speed 100 設(shè)置該端口速率為100mb/s(10/auto)switch(config)#duplex ? 查看duplex的子命令
switch(config)#duplex full 設(shè)置該端口為全雙工(auto/half)
switch(config)#description TO_PC1 這是該端口描述為TO_PC1 switch(config-if)#switchport access vlan 2 ;當(dāng)前端口加入vlan 2
switch(config-if)#switchport mode trunk ;設(shè)置為trunk模式(access模式)switch(config-if)#switchport trunk allowed vlan 1,2 ;設(shè)置允許的vlan switch(config-if)#switchport trunk encap dot1q ;設(shè)置vlan 中繼 switch(config)#vtp domain vtpserver ;設(shè)置vtp域名相同 switch(config)#vtp password ;設(shè)置發(fā)vtp密碼 switch(config)#vtp server ;設(shè)置vtp服務(wù)器模式 switch(config)#vtp client ;設(shè)置vtp客戶機(jī)模式
交換機(jī)設(shè)置IP地址,默認(rèn)網(wǎng)關(guān),域名,域名服務(wù)器,配置和查看MAC地址表: switch(config)#interface vlan 1 ;進(jìn)入vlan 1
switch(config-if)#ip address 192.168.1.1 255.255.255.0 ;設(shè)置IP地址 switch(config)#ip default-gateway 192.168.1.6 ;設(shè)置默認(rèn)網(wǎng)關(guān) switch(config)#ip domain-name cisco.com 設(shè)置域名
switch(config)#ip name-server 192.168.1.18 設(shè)置域名服務(wù)器
switch(config)#mac-address-table? 查看mac-address-table的子命令
switch(config)#mac-address-table aging-time 100 設(shè)置超時(shí)時(shí)間為100ms
switch(config)#mac-address-table permanent 0000.0c01.bbcc f0/3 加入永久地址在f0/3端口
switch(config)#mac-address-table restricted static 0000.0c02.bbcc f0/6 f0/7 加入靜態(tài)地址目標(biāo)端口f0/6源端口f0/7
switch(config)#end switch#show mac-address-table 查看整個(gè)MAC地址表
switch#clear mac-address-table restricted static 清除限制性靜態(tài)地址 交換機(jī)顯示命令:
switch#write ;保存配置信息
switch#show vtp ;查看vtp配置信息 switch#show run ;查看當(dāng)前配置信息 switch#show vlan ;查看vlan配置信息 switch#show interface ;查看端口信息 switch#show int f0/0 ;查看指定端口信息
switch#show int f0/0 status;查看指定端口狀態(tài) switch#dir flash: ;查看閃存
Cisco路由器配置命令大全網(wǎng)絡(luò) 2010-06-26 06:43:44 閱讀657 評論0 字號:大中小 訂閱.(1)模式轉(zhuǎn)換命令
用戶模式----特權(quán)模式,使用命令“enable”
特權(quán)模式----全局配置模式,使用命令“config t”
全局配置模式----接口模式,使用命令“interface+接口類型+接口號” 全局配置模式----線控模式,使用命令“l(fā)ine+接口類型+接口號” 注:
用戶模式:查看初始化的信息.特權(quán)模式:查看所有信息、調(diào)試、保存配置信息
全局模式:配置所有信息、針對整個(gè)路由器或交換機(jī)的所有接口 接口模式:針對某一個(gè)接口的配置
線控模式:對路由器進(jìn)行控制的接口配置(2)配置命令
show running config 顯示所有的配置 show versin 顯示版本號和寄存器值 shut down 關(guān)閉接口 no shutdown 打開接口
ip add +ip地址 配置IP地址
secondary+IP地址 為接口配置第二個(gè)IP地址 show interface+接口類型+接口號 查看接口管理性 show controllers interface 查看接口是否有DCE電纜 show history 查看歷史記錄
show terminal 查看終端記錄大小
hostname+主機(jī)名 配置路由器或交換機(jī)的標(biāo)識 config memory 修改保存在NVRAM中的啟動配置 exec timeout 0 0 設(shè)置控制臺會話超時(shí)為0 service password-encryptin 手工加密所有密碼 enable password +密碼 配置明文密碼 ena sec +密碼 配置密文密碼 line vty 0 4/15 進(jìn)入telnet接口 password +密碼 配置telnet密碼 line aux 0 進(jìn)入AUX接口 password +密碼 配置密碼 line con 0 進(jìn)入CON接口 password +密碼 配置密碼 bandwidth+數(shù)字 配置帶寬 no ip address 刪除已配置的IP地址
show startup config 查看NVRAM中的配置信息 copy run-config atartup config 保存信息到NVRAM write 保存信息到NVRAM
erase startup-config 清除NVRAM中的配置信息 show ip interface brief 查看接口的謫要信息
banner motd # +信息 + # 配置路由器或交換機(jī)的描素信息 description+信息 配置接口聽描素信息 vlan database 進(jìn)入VLAN數(shù)據(jù)庫模式 vlan +vlan號+ 名稱 創(chuàng)建VLAN
switchport access vlan +vlan號 為VLAN為配接口 interface vlan +vlan號 進(jìn)入VLAN接口模式 ip add +ip地址 為VLAN配置管理IP地址
vtp+service/tracsparent/client 配置SW的VTP工作模式 vtp +domain+域名 配置SW的VTP域名 vtp +password +密碼 配置SW的密碼 switchport mode trunk 啟用中繼 no vlan +vlan號 刪除VLAN
show spamming-tree vlan +vlan號 查看VLA怕生成樹議 2.路由器配置命令
ip route+非直連網(wǎng)段+子網(wǎng)掩碼+下一跳地址 配置靜態(tài)/默認(rèn)路由 show ip route 查看路由表
show protocols 顯示出所有的被動路由協(xié)議和接口上哪些協(xié)議被設(shè)置
show ip protocols 顯示了被配置在路由器上的路由選擇協(xié)議,同時(shí)給出了在路由選擇協(xié)議中使用 的定時(shí)器 等信息
router rip 激活RIP協(xié)議
network +直連網(wǎng)段 發(fā)布直連網(wǎng)段 interface lookback 0 激活邏輯接口
passive-interface +接口類型+接口號 配置接口為被動模式 debug ip +協(xié)議 動態(tài)查看路由更新信息 undebug all 關(guān)閉所有DEBUG信息
router eigrp +as號 激活EIGRP路由協(xié)議 network +網(wǎng)段+子網(wǎng)掩碼 發(fā)布直連網(wǎng)段 show ip eigrp neighbors 查看鄰居表 show ip eigrp topology 查看拓?fù)浔?show ip eigrp traffic 查看發(fā)送包數(shù)量 router ospf +process-ID 激活OSPF協(xié)議
network+直連網(wǎng)段+area+區(qū)域號 發(fā)布直連網(wǎng)段 show ip ospf 顯示OSPF的進(jìn)程號和ROUTER-ID encapsulation+封裝格式 更改封裝格式
no ip admain-lookup 關(guān)閉路由器的域名查找 ip routing 在三層交換機(jī)上啟用路由功能 show user 查看SW的在線用戶 clear line +線路號 清除線路 3.三層交換機(jī)配置命令 配置一組二層端口 configure terminal 進(jìn)入配置狀態(tài)
nterface range {port-range} 進(jìn)入組配置狀態(tài) 配置三層端口
configure terminal 進(jìn)入配置狀態(tài)
interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} | {port-channel port-channel-number} 進(jìn)入端口配置狀態(tài) no switchport 把物理端口變成三層口
ip address ip_address subnet_mask 配置IP地址和掩碼 no shutdown 激活端口 例:
Switch(config)# interface gigabitethernet0/2 Switch(config-if)# no switchport
Switch(config-if)# ip address 192.20.135.21 255.255.255.0 Switch(config-if)# no shutdown 配置VLAN
configure terminal 進(jìn)入配置狀態(tài)
vlan vlan-id 輸入一個(gè)VLAN號, 然后進(jìn)入vlan配態(tài),可以輸入一個(gè)新的VLAN號或舊的來進(jìn)行修改。
name vlan-name 可選)輸入一個(gè)VLAN名,如果沒有配置VLAN名,缺省的名字是VLAN號前面用0填滿 的4位數(shù),如VLAN0004是VLAN4的缺省名字 mtu mtu-size(可選)改變MTU大小 例
Switch# configure terminal Switch(config)# vlan 20
Switch(config-vlan)# name test20 Switch(config-vlan)# end 或
Switch# vlan database
Switch(vlan)# vlan 20 name test20 Switch(vlan)# exit
將端口分配給一個(gè)VLAN
configure terminal 進(jìn)入配置狀態(tài)
interface interface-id 進(jìn)入要分配的端口 switchport mode access 定義二層口
switchport access vlan vlan-id 把端口分配給某一VLAN 例
Switch# configure terminal
Enter configuration commands, one per line.End with CNTL/Z.Switch(config)# interface fastethernet0/1 Switch(config-if)# switchport mode access Switch(config-if)# switchport access vlan 2 Switch(config-if)# end Switch#
配置VLAN trunk
configure terminal 進(jìn)入配置狀態(tài)
interface interface-Id 進(jìn)入端口配置狀態(tài)
switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk封裝ISL 或 802.1Q 或 自動協(xié)商 switchport mode {dynamic {auto | desirable} | trunk} 配置二層trunk模式。dynamic auto—自動協(xié)商是否成為trunk
dynamic desirable—把端口設(shè)置為trunk如果對方端口是trunk, desirable, 配置Native VLAN(802.1q)
或自動模式,trunk—設(shè)置端口為強(qiáng)制的trunk方式,而不理會對方端口是否為trunk switchport access vlan vlan-id 可選)指定一個(gè)缺省VLAN, 如果此端口不再是trunk switchport trunk native vlan vlan-id 指定802.1Q native VLAN號 例:
Switch# configure terminal
Enter configuration commands, one per line.End with CNTL/Z.Switch(config)# interface fastethernet0/4 Switch(config-if)# switchport mode trunk
Switch(config-if)# switchport trunk encapsulation dot1q Switch(config-if)# end
定義TRUNK允許的VLAN
configure terminal子 進(jìn)入配置狀態(tài) interface interface-id 進(jìn)入端口配置
switchport mode trunk 配置二層口為trunk
switchport trunk allowed vlan {add | all | except | remove} vlan-list可選)配置trunk允 許的VLAN.使用add, all, except, remove關(guān)健字
no switchport trunk allowed vlan 允許所有VLAN通過 例
Switch(config)# interface fastethernet0/1
Switch(config-if)# switchport trunk allowed vlan remove 2 Switch(config-if)# end
配置Native VLAN(802.1q)configure terminal 進(jìn)入配置狀態(tài)
interface interface-id 進(jìn)入配置成802.1qtrunk的端口 switchport trunk native vlan vlan-Id 配置native VLAN號
no switchport trunk native vlan 端口配置命令回到缺省的狀態(tài) 配置基于端口權(quán)值的負(fù)載均衡
configure terminal 進(jìn)入Switch 1配置狀態(tài) vtp domain domain-name 配置VTP域
vtp mode server 將Switch 1配置成VTP server.show vtp status 驗(yàn)證VTP的配置 show vlan 驗(yàn)證VLAN
configure terminal 進(jìn)入配置狀態(tài)
interface fastethernet 0/1 進(jìn)入F0/1端口
switchport trunk encapsulation {isl | dot1q | negotiate}配置trunk封裝 switchport mode trunk 配置成trunk
show interfaces fastethernet0/1 switchport 驗(yàn)證VLAN配置 按以上步驟對想要負(fù)載均衡的接口進(jìn)行配置 在另一個(gè)交換機(jī)上進(jìn)行此配置
show vlan 當(dāng)trunk已經(jīng)起來,在switch2上驗(yàn)證已經(jīng)學(xué)到相的vlan配置 configure terminal 在Switch 1上進(jìn)入配置狀態(tài) interface fastethernet0/1 進(jìn)入要配置的端口
spanning-tree vlan 8 port-priority 10 將端口權(quán)值10賦與VLAN 8.spanning-tree vlan 9 port-priority 10 將端口權(quán)值10賦與VLAN 9.spanning-tree vlan 10 port-priority 10 將端口權(quán)值10賦與VLAN 10.interface fastethernet0/2 進(jìn)入F0/2
spanning-tree vlan 3 port-priority 10 將端口權(quán)值10賦與VLAN 3.spanning-tree vlan 4 port-priority 10 將端口權(quán)值10賦與VLAN 4 spanning-tree vlan 5 port-priority 10 將端口權(quán)值10賦與VLAN 5 spanning-tree vlan 6 port-priority 10 將端口權(quán)值10賦與VLAN 10 end 退出
show running-config 驗(yàn)證配置
copy running-config startup-config 保存配置 配置STP路徑值的負(fù)載均衡
Trunk1走VLAN8-10,Trunk2走VLAN2-4 configure terminal 進(jìn)入 Switch 1配置狀態(tài) interface fastethernet 0/1 進(jìn)入F0/1
switchport trunk encapsulation {isl | dot1q | negotiate}配置封裝 switchport mode trunk 配置Trunk,缺省是ISL封裝 exit 退回
在F0/2口上重復(fù)2-4步驟 exit 退回
show running-config 驗(yàn)證配置
show vlan驗(yàn)證switch1 已經(jīng)學(xué)到Vlan configure terminal 進(jìn)入配置狀態(tài) interface fastethernet 0/1 進(jìn)入F0/1
spanning-tree vlan 2 cost 30 設(shè)置Vlan2生成樹路徑值為30 spanning-tree vlan 3 cost 30 設(shè)置Vlan3生成樹路徑值為30 spanning-tree vlan 4 cost 30 設(shè)置Vlan4生成樹路徑值為30 end 退出
在switch1的F0/2上重復(fù)9-11步驟設(shè)置VLAN8,9,10生成樹路徑值為30 end 退出
show running-config 驗(yàn)證配置
copy running-config startup-config 保存配置 補(bǔ)充:CISCO命令集——路由選擇協(xié)議及排障 *ip route命令
Router(config)# ip route <目錄網(wǎng)絡(luò)或子網(wǎng)號> [子網(wǎng)掩碼] <下一路由器IP地址 | 從本地出口 的地址> [管理距離0~255,默認(rèn)為1](注:靜態(tài)地址配置)*ip default-network命令
Router(config)# ip default-network <目標(biāo)網(wǎng)絡(luò)號>
(注:配合路由協(xié)使用,用其中的一個(gè)動態(tài)路由號作默認(rèn)路由配置)
Router(config)# ip route 0.0.0.0 0.0.0.0 <下一路由器IP地址 | 從本地出口的地址>(注:只有一個(gè)公網(wǎng)地址時(shí),在出口路由器上的配置)*內(nèi)部路由選擇協(xié)議
*使用router和network命令
Router(config)# router <路由協(xié)議rip | igrp | eigrp | ospf | is-is等> [自主系統(tǒng)號] Router(config-router)# network <直接相連的要用此路由協(xié)議的網(wǎng)絡(luò)號> Router(config-router)# network <直接相連的要用此路由協(xié)議的網(wǎng)絡(luò)號> *路由信息協(xié)議RIP
Router(config)# router rip Router(config-router)# network <直接相連的要用rip協(xié)議的有類別網(wǎng)絡(luò)號> Router# show ip protocols Router# show ip route Router# debug ip rip
*內(nèi)部網(wǎng)關(guān)路由協(xié)議IGRP
Router(config)# router igrp <自主系統(tǒng)號>
Router(config-router)# network <直接相連的要用igrp協(xié)議的有類別網(wǎng)絡(luò)號> Router# show ip interface Router# show ip protocols Router# show ip route Router# debug ip rip *排除網(wǎng)絡(luò)故障
排除網(wǎng)絡(luò)故障的一個(gè)總體模型
Router# ping <有故障的主機(jī) | 有故障的IP地址> Router# show ip route
Router# show interface <有故障的接口> Router# show run *IP的故故障排除 檢查可用的路由
Router# show ip route <有故障的IP地址> 27.4.4 跟蹤路由(Tracing the Route)
SUN-A> traceroute <有故障的主機(jī) | 有故障的IP地址> C:/windows/> winipcfg C:/windows/> ipconfig C:/windows/> ipconfig / all
C:/windows/> tracert <有故障的主機(jī) | 有故障的IP地址> 使用擴(kuò)展的ping來跟蹤連接性 Router# ping
*其它可能的故障
一個(gè)地址解析(ARP)的故障 Router# show arp
Router# show interface <有故障的接口> C:/windows/> arp-a SUN-A> arp –a
驗(yàn)證終端系統(tǒng)的路由表 C:/windows/> netstat –rn
C:/windows/> route –f add 0.0.0.0 mask 0.0.0.0 <需要添加入的網(wǎng)關(guān)地址> C:/windows/> route [–f ] [[print | add | delete | change] [destination] [mask netmask] [gateway]]
C:/windows/> route add mask <網(wǎng)絡(luò)掩碼> <網(wǎng)關(guān)ip地址> C:/windows/> route delete mask <網(wǎng)絡(luò)掩碼> <網(wǎng)關(guān)ip地址> C:/windows/> nbtstat <相應(yīng)的參數(shù)> SUN-A> netstat-rn路由器
CISCO交換機(jī)配置命令大全2009-08-13 21:131.在基于IOS的交換機(jī)上設(shè)置主機(jī)名/系統(tǒng)名: switch(config)# hostname hostname
在基于CLI的交換機(jī)上設(shè)置主機(jī)名/系統(tǒng)名: switch(enable)set system name name-string 2.在基于IOS的交換機(jī)上設(shè)置登錄口令:
switch(config)# enable password level 1 password 在基于CLI的交換機(jī)上設(shè)置登錄口令: switch(enable)set password switch(enable)set enalbepass
3.在基于IOS的交換機(jī)上設(shè)置遠(yuǎn)程訪問: switch(config)# interface vlan 1
switch(config-if)# ip address ip-address netmask switch(config-if)# ip default-gateway ip-address 在基于CLI的交換機(jī)上設(shè)置遠(yuǎn)程訪問:
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的交換機(jī)上啟用和瀏覽CDP信息: switch(config-if)# cdp enable switch(config-if)# no cdp enable
為了查看Cisco鄰接設(shè)備的CDP通告信息: switch# show cdp interface [type modle/port]
switch# show cdp neighbors [type module/port] [detail] 在基于CLI的交換機(jī)上啟用和瀏覽CDP信息: switch(enable)set cdp {enable|disable} module/port 為了查看Cisco鄰接設(shè)備的CDP通告信息:
switch(enable)show cdp neighbors[module/port] [vlan|duplex|capabilities|detail] 5.基于IOS的交換機(jī)的端口描述:
switch(config-if)# description description-string 基于CLI的交換機(jī)的端口描述:
switch(enable)set port name module/number description-string 6.在基于IOS的交換機(jī)上設(shè)置端口速度: switch(config-if)# speed{10|100|auto} 在基于CLI的交換機(jī)上設(shè)置端口速度:
switch(enable)set port speed moudle/number {10|100|auto} switch(enable)set port speed moudle/number {4|16|auto} 7.在基于IOS的交換機(jī)上設(shè)置以太網(wǎng)的鏈路模式: switch(config-if)# duplex {auto|full|half}
在基于CLI的交換機(jī)上設(shè)置以太網(wǎng)的鏈路模式:
switch(enable)set port duplex module/number {full|half} 8.在基于IOS的交換機(jī)上配置靜態(tài)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的交換機(jī)上配置靜態(tài)VLAN: switch(enable)set vlan vlan-num [name name]
switch(enable)set vlan vlan-num mod-num/port-list 9.在基于IOS的交換機(jī)上配置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的交換機(jī)上配置VLAN中繼線:
switch(enable)set trunk module/port [on|off|desirable|auto|nonegotiate] Vlan-range [isl|dotlq|dotl0|lane|negotiate]
10.在基于IOS的交換機(jī)上配置VTP管理域: switch# vlan database
switch(vlan)# vtp domain domain-name 在基于CLI的交換機(jī)上配置VTP管理域: switch(enable)set vtp [domain domain-name] 11.在基于IOS的交換機(jī)上配置VTP 模式: switch# vlan database
switch(vlan)# vtp domain domain-name switch(vlan)# vtp {sever|cilent|transparent} switch(vlan)# vtp password password 在基于CLI的交換機(jī)上配置VTP 模式:
switch(enable)set vtp [domain domain-name] [mode{ sever|cilent|transparent }][password password] 12.在基于IOS的交換機(jī)上配置VTP版本: switch# vlan database
switch(vlan)# vtp v2-mode
在基于CLI的交換機(jī)上配置VTP版本: switch(enable)set vtp v2 enable
13.在基于IOS的交換機(jī)上啟動VTP剪裁: switch# vlan database switch(vlan)# vtp pruning
在基于CL I 的交換機(jī)上啟動VTP剪裁: switch(enable)set vtp pruning enable
14.在基于IOS的交換機(jī)上配置以太信道:
switch(config-if)# port group group-number [distribution {source|destination}] 在基于CLI的交換機(jī)上配置以太信道:
switch(enable)set port channel moudle/port-range mode{on|off|desirable|auto} 15.在基于IOS的交換機(jī)上調(diào)整根路徑成本:
switch(config-if)# spanning-tree [vlan vlan-list] cost cost 在基于CLI的交換機(jī)上調(diào)整根路徑成本:
switch(enable)set spantree portcost moudle/port cost
switch(enable)set spantree portvlancost moudle/port [cost cost][vlan-list] 16.在基于IOS的交換機(jī)上調(diào)整端口ID:
switch(config-if)# spanning-tree[vlan vlan-list]port-priority port-priority 在基于CLI的交換機(jī)上調(diào)整端口ID:
switch(enable)set spantree portpri {mldule/port}priority
switch(enable)set spantree portvlanpri {module/port}priority [vlans] 17.在基于IOS的交換機(jī)上修改STP時(shí)鐘:
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的交換機(jī)上修改STP時(shí)鐘:
switch(enable)set spantree hello interval[vlan] switch(enable)set spantree fwddelay delay [vlan] switch(enable)set spantree maxage agingtiame[vlan]
18.在基于IOS的交換機(jī)端口上啟用或禁用Port Fast 特征: switch(config-if)#spanning-tree portfast
在基于CLI的交換機(jī)端口上啟用或禁用Port Fast 特征:
switch(enable)set spantree portfast {module/port}{enable|disable} 19.在基于IOS的交換機(jī)端口上啟用或禁用UplinkFast 特征:
switch(config)# spanning-tree uplinkfast [max-update-rate pkts-per-second] 在基于CLI的交換機(jī)端口上啟用或禁用UplinkFast 特征:
switch(enable)set spantree uplinkfast {enable|disable}[rate update-rate] [all-protocols off|on]
20.為了將交換機(jī)配置成一個(gè)集群的命令交換機(jī),首先要給管理接口分配一個(gè)IP地址,然后使用下列命令: switch(config)# cluster enable cluster-name
21.為了從一條中繼鏈路上刪除VLAN,可使用下列命令: switch(enable)clear trunk module/port vlan-range 22.用show vtp domain 顯示管理域的VTP參數(shù).23.用show vtp statistics顯示管理域的VTP參數(shù).24.在Catalyst交換機(jī)上定義TrBRF的命令如下:
switch(enable)set vlan vlan-name [name name] type trbrf bridge bridge-num[stp {ieee|ibm}] 25.在Catalyst交換機(jī)上定義TrCRF的命令如下:
switch(enable)set vlan vlan-num [name name] type trcrf
{ring hex-ring-num|decring decimal-ring-num} parent vlan-num
26.在創(chuàng)建好TrBRF VLAN之后,就可以給它分配交換機(jī)端口.對于以太網(wǎng)交換,可以采用如下命令給VLAN分配端口:
switch(enable)set vlan vlan-num mod-num/port-num
27.命令show spantree顯示一個(gè)交換機(jī)端口的STP狀態(tài).28.配置一個(gè)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.創(chuàng)建完數(shù)據(jù)庫后,必須在主接口上啟動LECS.命令如下: ATM(config)# interface atm number
ATM(config-if)# lane config database database-name ATM(config-if)# lane config auto-config-atm-address
31.將每個(gè)LEC配置到一個(gè)不同的ATM子接口上.命令如下: ATM(config)# interface atm number.subint multipoint ATM(config)# lane client ethernet vlan-num elan-num 32.用show lane server 顯示LES的狀態(tài).33.用show lane bus顯示bus的狀態(tài).34.用show lane database顯示LECS數(shù)據(jù)庫可內(nèi)容.35.用show lane client顯示LEC的狀態(tài).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.為了在路由處理器上進(jìn)行動態(tài)路由配置,可以用下列IOS命令來進(jìn)行: 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.配置默認(rèn)路由:
switch(enable)set ip route default gateway
42.為一個(gè)路由處理器分配VLANID,可在接口模式下使用下列命令: router(config)# interface interface number router(config-if)# mls rp vlan-id vlan-id-num 43.在路由處理器啟用MLSP: router(config)# mls rp ip
44.為了把一個(gè)外置的路由處理器接口和交換機(jī)安置在同一個(gè)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.要檢驗(yàn)MLS-RP的配置情況: router# show mls rp
48.檢驗(yàn)特定接口上的MLS配置:
router# show mls rp interface interface number
49.為了在MLS-SE上設(shè)置流掩碼而又不想在任一個(gè)路由處理器接口上設(shè)置訪問列表: set mls flow [destination|destination-source|full]
50.為使MLS和輸入訪問列表可以兼容,可以在全局模式下使用下列命令: router(config)# mls rp ip input-acl
51.當(dāng)某個(gè)交換機(jī)的第3層交換失效時(shí),可在交換機(jī)的特權(quán)模式下輸入下列命令: switch(enable)set mls enable
52.若想改變老化時(shí)間的值,可在特權(quán)模式下輸入以下命令: switch(enable)set mls agingtime agingtime 53.設(shè)置快速老化:
switch(enable)set mls agingtime fast fastagingtime pkt_threshold
54.確定那些MLS-RP和MLS-SE參與了MLS,可先顯示交換機(jī)引用列表中的內(nèi)容再確定: switch(enable)show mls include 55.顯示MLS高速緩存記錄: switch(enable)show mls entry
56.用命令show in arp顯示ARP高速緩存區(qū)的內(nèi)容。
57.要把路由器配置為HSRP備份組的成員,可以在接口配置模式下使用下面的命令: router(config-if)# standby group-number ip ip-address 58.為了使一個(gè)路由器重新恢復(fù)轉(zhuǎn)發(fā)路由器的角色,在接口配置模式下: router(config-if)# standy group-number preempt 59.訪問時(shí)間和保持時(shí)間參數(shù)是可配置的:
router(config-if)# standy group-number timers hellotime holdtime 60.配置HSRP跟蹤:
router(config-if)# standy group-number track type-number interface-priority 61.要顯示HSRP路由器的狀態(tài):
router# show standby type-number group brief 62.用命令show ip igmp確定當(dāng)選的查詢器。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.核實(shí)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.選擇一個(gè)默認(rèn)的RP: dallasr1># ip pim rp-address
通告RP和它所服務(wù)的組范圍:
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 設(shè)定一個(gè)RP映像代理:
dallasr1># ip pim send-rp-discovery scope ttl 核實(shí)組到RP的映像:
dallasr1># show ip pim rp mapping
dallasr1># show ip pim rp [group-name|group-address] [mapping]
70.在路由器接口上用命令ip multicast ttl-threshold ttl-value設(shè)定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.要記錄一個(gè)路由器接受和發(fā)送的全部IP組播包: dallasr1> #debug ip mpacket [detail] [access-list][group] 74.要在CISCO路由器上配置CGMP: dallasr1>(config-if)# ip cgmp
75.配置一個(gè)組播路由器,使之加入某一個(gè)特定的組播組: dallasr1>(config-if)# ip igmp join-group group-address 76.關(guān)閉 CGMP:
dallasr1>(config-if)# no ip cgmp 77.啟動交換機(jī)上的CGMP: dallasr1>(enable)set cgmp enable 78.核實(shí)Catalyst交換機(jī)上CGMP的配置情況: catalystla1>(enable)show config set prompt catalystla1>
set interface sc0 192.168.1.1 255.255.255.0 set cgmp enable
79.CGMP離開的設(shè)置:
Dallas_SW(enable)set cgmp leave
80.在Cisco設(shè)備上修改控制端口密碼: 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設(shè)備上設(shè)置控制臺及vty端口的會話超時(shí): 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設(shè)備上設(shè)定特權(quán)級:
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 可定義在該特權(quán)級下使用的命令: router(config)# privilege mode level level command 84.設(shè)定用戶特權(quán)級:
router(config)# enable secret level 3 dallas router(config)# enable secret san-fran
router(config)# username student password cisco 85.標(biāo)志設(shè)置與顯示:
R1(config)# banner motd ‘unauthorized access will be prosecuted!’ 86.設(shè)置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命令的交換機(jī)上用setCL1啟動和核實(shí)端口安全:
switch(enable)set port security mod_num/port_num…enable mac address switch(enable)show port mod_num/port_num
在基于CiscoIOS命令的交換機(jī)上啟動和核實(shí)端口安全:
switch(config-if)# port secure [mac-mac-count maximum-MAC-count] switch# show mac-address-table security [type module/port] 90.用命令access-list在標(biāo)準(zhǔn)通信量過濾表中創(chuàng)建一條記錄:
Router(config)# access-list access-list-number {permit|deny} source-address [source-address] 91.用命令access-list在擴(kuò)展通信量過濾表中創(chuàng)建一條記錄:
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.對于帶內(nèi)路由更新,配置路由更新的最基本的命令格式是:
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命令選項(xiàng):
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 輸出結(jié)果。
101.命令set snmp rmon enable 的輸出結(jié)果。102.顯示SPAN信息: Consile> show span 一些華為路由器命令: 刪除設(shè)備配置
reset saved-configuration 重啟 reboot
看當(dāng)前配置文件
display current-configuration 改設(shè)備名 sysname 保存配置 save
進(jìn)入特權(quán)模式 sysview
華為只有2層模式 不像cisco enale之后還要conf t 定義acl
acl nubmere XXXX(3000以上)進(jìn)入以后
rule permit/deny IP/TCP/UDP等 source XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX(反向)destination XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX(反向)eq 注意 華為默認(rèn)沒有deny any any 防火墻上端口加載ACL
[Quidway-Ethernet0/0]firewall packet-filter 3000 inbound 防火墻上新增加用戶 local-user XXX(用戶名)password simple XXX(密碼)local-user XXX service-type ppp 刪除某條命令
undo(類似與cisco的no)靜態(tài)路由
ip route-static 0.0.0.0 0.0.0.0 XXX.XXX.XXX.XXX 對vpdn用戶設(shè)置acl的接口 inte***ce Virtual-Template1 查看路由表
display ip routing-table 設(shè)定telnet密碼
user-inte***ce vty 0 4 user privilege level 3
set authentication password simple XXX 啟動/關(guān)閉 啟動 un shut 關(guān)閉 shut 動態(tài)nat設(shè)置 acl number 3000
rule 0 permit ip source XXX.XXX.XXX.XXX rule 1 permit ip source XXX.XXX.XXX.XXX rule 2 permit ip source XXX.XXX.XXX.XXX inte***ce Ethernet1/0
des cription ====To-Internet(WAN)====
ip address XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX nat outbound 3000 ipsec policy policy1
利用acl來做 符合acl的IP地址可以出去(注意 此處的ACL隱含了deny any any)不符合的IP地址不可以出去 創(chuàng)建vlan
[shzb-crsw-s6506-1]vlan 100 華為vlan不支持name 將port放入vlan
創(chuàng)建了vlan后 進(jìn)入vlan模式
[shzb-crsw-s6506-1-vlan100]port GigabitEthernet 1/0/1 to GigabitEthernet 1/0/8 表示從G1/0/1 到1/0/8放入VLAN 100 創(chuàng)建trunk
inte***ce GigabitEthernet1/0/1 duplex full speed 1000
* port link-type trunk
* port trunk permit vlan all port link-aggregation group 1
帶*號的是創(chuàng)建trunk鏈路的語句 vlan地址指定
inte***ce Vlan-inte***ce2 des cription server
ip address XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX vrrp vrid 2 virtual-ip XXX.XXX.XXX.XXX vrrp vrid 2 priority 120 vrrp vrid 2 preempt-mode timer delay 10 其中vrrp語句指定vrrp 類似與hsrp 使用vrrp要注意的是華為不支持pvst 只能一臺完全是主,一臺完全是備份 在主vrrp設(shè)備上要指定 stp instance 0 root primary stp TC-protection enable stp enable
在從vrrp設(shè)備上要指定 stp instance 0 root secondary stp TC-protection enable stp enable
交換機(jī)下面綁acl
首先進(jìn)入接口模式,輸入qos命令
[shzb-crsw-s6506-1-GigabitEthernet1/0/1]qos 在輸入如下命令
[shzb-crsw-s6506-1-qoss-GigabitEthernet1/0/1]packet-filter inbound ip-group 3000 華為交換機(jī)只能指定inbound方向 啟用ospf
[shzb-crsw-s6506-1]ospf 100
[shzb-crsw-s6506-1-ospf-100]area 0
[shzb-crsw-s6506-1-ospf-100-area-0.0.0.0]network XXX.XXX.XXX.XXX XXX.XXX.XXX.XXX 配置ospf重發(fā)布
[shzb-crsw-s6506-1-ospf-100-area-0.0.0.0]quit [shzb-crsw-s6506-1-ospf-100]import-route static
建立link-group(類似與cisco的channel-group)link-aggregation group 1 mode manual 然后進(jìn)入接口
port link-aggregation group 1 啟用VRRP之前必須輸入 vrrp ping-enable
使得客戶能ping網(wǎng)關(guān)