生活随笔
收集整理的這篇文章主要介紹了
思科设备命令大全
小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.
模式轉(zhuǎn)換命令
-
用戶模式----特權模式,使用命令"enable"
-
特權模式----全局配置模式,使用命令"config t"
-
全局配置模式----接口模式,使用命令"interface+接口類型+接口號"
-
全局配置模式----線控模式,使用命令"line+接口類型+接口號"
注:
?基本配置命令
命令描述
| enable | 從用戶模式進入特權模式 |
| configure terminal | 進入配置模式 |
| interface g0/0 | 進入千兆以太網(wǎng)接口模式 |
| ip address 172.16.0.1 255.255.0.0 | 配置接口的ip 地址 |
| no shutdown | 打開接口 |
| line vty 0 4 | 進入虛擬終端vty 0 - vty 4 |
| password CISCO | 配置密碼 |
| login | 用戶要進入路由器,需要先進行登錄 |
| exit | 退回到上一級模式 |
| enable password CISCO | 配置進入特權模式的密碼,密碼不加密 |
| end | 直接回到特權模式 |
| show int g0/0 | 顯示g0/0 接口的信息 |
| hostname Terminal-Server | 配置路由器的主機名 |
| enable secret ccielab | 配置進入特權模式的密碼,密碼加密 |
| no ip domain-lookup | 路由器不使用DNS 服務器解析主機的IP 地址 |
| logging synchronous | 路由器上的提示信息進行同步,防止信息干擾我們輸入命令 |
| no ip routing | 關閉路由器的路由功能 |
| ip default-gateway 10.1.14.254 | 配置路由器訪問其他網(wǎng)段時所需的網(wǎng)關 |
| show line | 顯示各線路的狀態(tài) |
| line 33 48 | 進入33-48 線路模式 |
| transport input all | 允許所有協(xié)議進入線路 |
| int loopback0 | 進入loopback0 接口 |
| ip host R1 2033 1.1.1.1 | 為1.1.1.1 主機起一個主機名 |
| alias exec cr1 clear line 33 | 為命令起一個別名 |
| privilege exec level 0 clear line | 把命令clear line 的等級改為0,在用戶模式下也可以執(zhí)行它 |
| banner motd | 設置用戶登錄路由器時的提示信 |
| clock set | 設置路由器的時間 |
| show clock | 顯示路由器的時間 |
| show history | 顯示歷史命令 |
| terminal no editing | 關閉CLI 的編輯功能 |
| terminal editing | 打開CLI 的編輯功能 |
| terminal history size 50 | 修改歷史命令緩沖區(qū)的大小 |
| copy running-config startup-config | 把內(nèi)存中的配置文件保存到NVRAM 中 |
| clock rate 128000 | 配置串口上的時鐘(DCE 端) |
| show version | 顯示路由器的IOS 版本等信息 |
| show running-config | 顯示內(nèi)存中的配置文件 |
| show startup-config | 顯示NVRAM 中的配置文件 |
| show interface s0/0/0 | 顯示接口的信息 |
| show flash | 顯示flash 的有關信息 |
| show controllers s0/0/0 | 顯示s0/0/0 的控制器信息 |
| show ip arp | 顯示路由器中的arp 表 |
| copy running-config tftp | 把內(nèi)存中的配置文件拷貝到tftp 服務器上 |
| copy tftp running-config | 把tftp 服務器上的配置文件拷貝到內(nèi)存中 |
| copy flash:c2800nm-adventerprisek9-mz.124-11.T1.bin tftp | 把flash 中的IOS 拷貝到tftp 服務器上 |
| confreg 0x2142 | 在rommon 模式下修改配置寄存器值 |
| i | 在rommon 模式下重啟路由器 |
| copy startup-config running-config | 把NVRAM 中的配置文件拷貝到內(nèi)存中 |
| config-register 0x2102 | 修改配置寄存器值 |
| reload | 重啟路由器 |
| delete flash:c2800nm-adventerprisek9-mz.124-11.T1.bin | 刪除flash 中的IOS |
| copy tftp flash | 從tftp 服務器上拷貝IOS 到flash 中 |
| tftpdnld | rommon 模式下,從tftp 服務器下載IOS |
| show cdp | 顯示CDP 運行信息 |
| show cdp interface | 顯示CDP 在各接口的運行情況 |
| show cdp neighbors | 顯示CDP 鄰居信息 |
| show cdp entry R2 | 顯示CDP 鄰居R2 的詳細信息 |
| clear cdp table | 清除CDP 鄰居表 |
| no cdp enable | 接口下關閉CDP |
| no cdp run/ cdp run | 關閉/打開整個路由器的CDP |
| cdp timer 30 CDP | 每30 秒發(fā)送一次 |
| cdp holdtime 120 | 讓鄰居為本設備發(fā)送的CDP 消息保持120 秒 |
靜態(tài)路由相關配置
命令描述
| ip route X.X.X.X 掩碼 接口或者下一條ip地址 | 配置靜態(tài)路由 |
| show ip route | 查看路由表 |
| ip classless/ no ip classless | 打開/關閉有類路由功能 |
| ping 2.2.2.2 source loopback 0 | 指定源端口進行ping 測試 |
?
RIP命令匯總
命令描述
| show ip route | 查看路由表 |
| show ip protocols | 查看IP 路由協(xié)議配置和統(tǒng)計信息 |
| show ip rip database | 查看RIP 數(shù)據(jù)庫 |
| debug ip rip | 動態(tài)查看RIP 的更新過程 |
| clear ip route * | 清除路由表 |
| router rip | 啟動RIP 進程 |
| network | 通告網(wǎng)絡 |
| version | 定義RIP 的版本 |
| no auto-summary | 關閉自動匯總 |
| ip rip send version | 配置RIP 發(fā)送的版本 |
| ip rip receive version | 配置RIP 接收的版本 |
| passive-interface | 配置被動接口 |
| neighbor | 配置單播更新的目標 |
| ip summary-address rip | 配置RIP 手工匯總 |
| key chain | 定義鑰匙鏈 |
| key key-id | 配置Key ID |
| key-string | 配置Key ID 的密匙 |
| ip rip triggered | 配置觸發(fā)更新 |
| ip rip authentication mode | 配置認證模式 |
| ip rip authentication key-chain | 配置認證使用的鑰匙鏈 |
| timers basic | 配置更新的計時器 |
| maximum-paths | 配置等價路徑的最大值 |
| ip default-network | 向網(wǎng)絡中注入默認路由 |
EIGRP相關配置命令
命令描述
| show ip eigrp neighbors | 查看EIGRP 鄰居表 |
| show ip eigrp topology | 查看EIGRP 拓撲結(jié)構數(shù)據(jù)庫 |
| show ip eigrp interface | 查看運行EIGRP 路由協(xié)議的接口的狀況 |
| show ip eigrp traffic | 查看EIGRP 發(fā)送和接收到的數(shù)據(jù)包的統(tǒng)計情況 |
| debug eigrp neighbors | 查看EIGRP 動態(tài)建立鄰居關系的情況 |
| debug eigrp packets | 顯示發(fā)送和接收的EIGRP 數(shù)據(jù)包 |
| ip hello-interval eigrp | 配置EIGRP 的HELLO 發(fā)送周期 |
| ip hold-time eigrp | 配置EIGRP 的HELLO hold 時間 |
| router eigrp XX | 啟動EIGRP 路由進程 |
| no auto-summary | 關閉自動匯總 |
| ip authentication mode eigrp | 配置EIGRP 的認證模式 |
| ip authentication key-chain eigrp | 在接口上調(diào)用鑰匙鏈 |
| variance | 配置非等價負載均衡 |
| delay | 配置接口下的延遲 |
| bandwidth | 配置接口下的帶寬 |
| ip summary-address eigrp | 手工路由匯總 |
OSPF相關配置命令
命令描述
| show ip route | 查看路由表 |
| show ip ospf neighbor | 查看OSPF 鄰居的基本信息 |
| show ip ospf database | 查看OSPF 拓撲結(jié)構數(shù)據(jù)庫 |
| show ip ospf interface | 查看OSPF 路由器接口的信息 |
| show ip ospf | 查看OSPF 進程及其細節(jié) |
| debug ip ospf adj | 顯示OSPF 鄰接關系創(chuàng)建或中斷的過程 |
| debug ip ospf events | 顯示OSPF 發(fā)生的事件 |
| debug ip ospf packet | 顯示路由器收到的所有的OSPF 數(shù)據(jù)包 |
| router ospf | 啟動OSPF路由進程 |
| router-id | 配置路由器ID |
| network | 通告網(wǎng)絡及網(wǎng)絡所在的區(qū)域 |
| ip ospf network | 配置接口網(wǎng)絡類型 |
| ip ospf cost | 配置接口cost 值 |
| ip ospf hello-interval | 配置hello 間隔 |
| ip ospf dead-interval | 配置OSPF 鄰居的死亡時間 |
| ip ospf priority | 配置接口優(yōu)先級 |
| auto-cost reference-bandwidth | 配置參考帶寬 |
| clear ip ospf process | 清除OSPF 進程 |
| area area-id authentication | 啟動區(qū)域簡單口令認證 |
| ip ospf authentication-key ?cisco | 配置認證密碼 |
| area area-id authentication message-digest | 啟動區(qū)域MD5 認證 |
| area area-id range | 區(qū)域間路由匯總 |
| area area-id stub | 把某區(qū)域配置成末節(jié)區(qū)域 |
| area area-id stub no-summary | 把某區(qū)域配置成完全末節(jié)區(qū)域 |
| area area-id nssa | 把某區(qū)域配置成NSSA 區(qū)域 |
| area area-id virtual-link | 配置虛鏈路 |
| ip ospf message-digest-key key-id md5 key | 配置key ID 及密匙 |
| ip ospf authentication | 啟用鏈路簡單口令認證 |
| ip ospf authentication message-digest | 啟用鏈路MD5 認證 |
| default-information originate 向OSPF | 區(qū)域注入默認路由 |
| show ip route | 查看路由表 |
| show ip ospf neighbor | 查看OSPF 鄰居的基本信息 |
| show ip ospf database | 查看OSPF 拓撲結(jié)構數(shù)據(jù)庫 |
| show ip ospf interface | 查看OSPF 路由器接口的信息 |
| show ip ospf | 查看OSPF 進程及其細節(jié) |
| show ip ospf database router | 查看類型1 的LSA 的全部信息 |
| redistribute | 路由協(xié)議重分布 |
| summary-address | 外部路由匯總 |
| encapsulation frame-relay | 接口封裝幀中繼 |
| no frame-relay inverse-arp | 關閉幀中繼逆向ARP 解析 |
| frame-relay interface-dlci | 幀中繼映射 |
| frame-relay map ip | 幀中繼映射 |
IS-IS基本配置命令
命令描述
| show clns neighbors | 查看CLNS 鄰居 |
| show clns protocols | 查看CLNS 路由協(xié)議相關的信息 |
| show clns interface | 查看CLNS 接口狀態(tài)的信息 |
| show clns route | 查看CLNS L2 路由 |
| clear clns route | 清除CLNS 路由表 |
| clear isis * | 清除IS-IS 鏈路狀態(tài)數(shù)據(jù)庫 |
| show clns traffic | 查看CLNS 協(xié)議的統(tǒng)計信息 |
| show isis hostname | 查看主機名和系統(tǒng)ID 的動態(tài)對應關系 |
| show isis database | 查看IS-IS 鏈路狀態(tài)數(shù)據(jù)庫 |
| show isis topology | 查看IS-IS 拓撲結(jié)構信息 |
| show isis route | 查看CLNS L1 的路由表 |
| show frame-relay map | 查看幀中繼映射 |
| show ip protocols | 查看和IP 路由協(xié)議相關的信息 |
| router isis | 啟動IS-IS 路由進程 |
| net | 配置NET 地址 |
| ip router isis | 接口下啟用IS-IS |
| is-type | 配置IS-IS 路由器類型 |
| area-password | 配置區(qū)域認證 |
| isis password | 配置鄰居認證 |
| domain-password domain | 配置域認證 |
| default-information originate | 向IS-IS 網(wǎng)絡注入默認路由 |
| summary-address | 配置區(qū)域間路由匯總 |
| isis circuit-type | 配置接口電路類型 |
| frame-relay map clns | 配置CLNS 映射 |
BGP基本配置命令
命令描述
| show tcp brief | 查看TCP 連接信息摘要 |
| show ip bgp neighbors | 查看鄰居的TCP 和BGP 連接的詳細信息 |
| show ip bgp summary | 查看BGP 連接的摘要信 |
| show ip bgp | 查看BGP 表的信息 |
| show ip bgp community | 查看BGP 團體屬性 |
| clear ip bgp * | 重置BGP 連接 |
| router bgp | 啟動BGP 進程 |
| no synchronization | 關閉同步 |
| synchronization | 打開同步 |
| bgp router-id | 配置BGP 路由器ID |
| neighbor ip-address remote-as | 配置鄰居路由器及所在的AS |
| neighbor ip-address update-source | 指定更新源 |
| neighbor ip-address next-hop-self | 配置下一跳自我 |
| route-reflector-client | 配置RR 客戶端 |
| network | 通告網(wǎng)絡 |
| aggregate-address | 配置地址聚合 |
| ip prefix-list | 配置前綴列表 |
| set origin egp | 設置起源代碼為EGP |
| set as-path prepend | 配置追加AS-PATH |
| set local-preference | 設置本地優(yōu)先級屬性值 |
| bgp default local-preference | 設置默認本地優(yōu)先級屬性值 |
| bgp confederation identifier | 配置聯(lián)邦ID |
| bgp confederation peers | 配置聯(lián)邦EBGP 對等的成員 |
| set community local-AS | 設置團體屬性 |
| neighbor ip-address send-community | 開啟發(fā)送團體屬性的能力 |
二層鏈路封裝
命令描述
| encapsulation hdlc | 把接口的封裝改為hdlc |
| encapsulation ppp | 把接口的封裝改為ppp |
| ppp pap sent-username R1 password 123456 pap | 認證時,向?qū)Ψ桨l(fā)送用戶名R1 和密碼123456 |
| ppp authentication pap | PPP 的認證方式為pap |
| username R1 password 123456 | 為對方創(chuàng)建用戶R1,密碼為123456 |
| debug ppp authentication | 打開ppp 的認證調(diào)試過程 |
| ppp authentication chap | PPP 的認證方式為chap |
幀中繼相關配置命令
命令描述
| frame-relay switching | 把路由器當成幀中繼交換機 |
| encapsulation frame-relay | 接口封裝成幀中繼 |
| frame-relay lmi-type cisco | 配置LMI 的類型 |
| frame-relay intf-type dce | 配置接口是幀中繼的DCE 還是DTE |
| frame-relay route | 配置幀中繼交換表 |
| show frame-relay route | 顯示幀中繼交換表 |
| show frame pvc | 顯示幀中繼PVC 狀態(tài) |
| show frame lmi | 顯示幀中繼LMI 信息 |
| show frame-relay map | 查看幀中繼映射 |
| no frame-relay inverse-arp | 關閉幀中繼自動映射 |
| ip split-horizon | 打開水平分割 |
| int s0/0/0.1 multipoint | 創(chuàng)建點到多點子接口 |
| int s0/0/0.3 point-to-point | 創(chuàng)建點到點子接口 |
| frame-relay interface-dlci 104 | 在點到點子接口上配置DLCI |
ACL 相關配置命令
命令描述
| show ip access-lists | 查看所定義的IP 訪問控制列表 |
| clear access-list counters | 將訪問控制列表計數(shù)器清零 |
| access-list | 定義ACL |
| ip access-group | 在接口下應用ACL |
| access-class | 在vty 下應用ACL |
| ip access-list | 定義命名的ACL |
| time-range time | 定義時間范圍 |
| username username password password | 建立本地數(shù)據(jù)庫 |
| autocommand | 定義自動執(zhí)行的命令 |
DHCP 相關配置命令
命令描述
| show ip dhcp pool | 查看DHCP 地址池的信息 |
| show ip dhcp binding | 查看DHCP 的地址綁定情況 |
| show ip dhcp database | 查看DHCP 數(shù)據(jù)庫 |
| show ip interface | 查看接口信息 |
| debug ip dhcp server events | 動態(tài)查看DHCP 服務器的事件 |
| service dhcp | 開啟DHCP 服務 |
| no ip dhcp conflict logging | 關閉DHCP 沖突日志 |
| ip dhcp pool | 配置DHCP 分配的地址池 |
| network DHCP | 服務器要分配的網(wǎng)絡和掩碼 |
| default-router | 默認網(wǎng)關 |
| domain-name | 域名 |
| netbios-name-server | WINS 服務器 |
| dns-server | 域名服務器 |
| option 150 ip | FTP 服務器 |
| lease | 配置租期 |
| ip dhcp excluded-address | 排除地址段 |
| ip helper-address 配置DHCP | 中繼的地址 |
NAT 相關配置命令
命令描述
| clear ip nat translation * | 清除動態(tài)NAT 表 |
| show ip nat translation | 查看NAT 表 |
| show ip nat statistics | 查看NAT 轉(zhuǎn)換的統(tǒng)計信息 |
| debug ip nat | 動態(tài)查看NAT 轉(zhuǎn)換過程 |
| ip nat inside source static | 配置靜態(tài)NAT |
| ip nat inside | 配置NAT 內(nèi)部接口 |
| ip nat outside | 配置NAT 外部接口 |
| ip nat pool | 配置動態(tài)NAT 地址池 |
| ip nat inside source list access-list-number pool name | 配置動態(tài)NAT |
| ip nat inside source list access-list-number pool name overload | 配置PAT |
交換機基本配置命令
命令描述
| duplex { full | half | auto } | 配置以太口的雙工屬性 |
| speed { 10 | 100 | 1000 | auto } | 配置以太口的速率 |
| ip default-gateway 172.16.0.254 | 配置缺省網(wǎng)關 |
| switch mode access | 把端口改為訪問模式 |
| switch port-securitiy | 打開交換機的端口安全功能 |
| switch port-securitiy maximum 1 | 允許該端口下的MAC 條目最大數(shù)量為1 |
| switch port-securitiy violation{ protect | shutdown | restrict } | 配置交換機端口安全 |
| switchport port-security mac-address ?0019.5535.b828 | 允許MAC 為0019.5535.b828 的設備接入本接口show mac-address-table 顯示MAC 地址表 |
| mac-address 12.12.12 | 改變接口的MAC 地址 |
| rename flash:config.text flash:config.old | 把flash 中的文件改名 |
| copy xmodem:flash:c2950-i6q4l2-mz.121-22.EA5a.bin | 通過Xmodem 模式把文件拷貝到flash 中 |
| boot | 重啟交換機 |
VLAN與VTP配置命令
命令描述
| vlan database | 進入到vlan database 配置模式 |
| vlan 2 name VLAN2 | 創(chuàng)建vlan 2 |
| switch access vlan 2 | 把端口劃分到VLAN 2 中 |
| interface range f0/2 - 3 | 批量配置接口的屬性 |
| show vlan | 查看VLAN 的信息 |
| switchport trunk encanpsulation | 配置trunk 鏈路的封裝類型 |
| switch mode trunk | 把接口配置為trunk |
| show interface f0/13 trunk | 查看交換機端口的trunk 狀態(tài) |
| switchport nonegotiate Trunk | 鏈路上不發(fā)送trunk 協(xié)商包 |
| vtp mode server | 配置交換機為VTP server |
| vtp domain VTP-TEST | 配置VTP 域名 |
| vtp password cisco | 配置VTP 的密碼 |
| vtp mode client | 配置交換機為VTP client |
| vtp transparent | 配置交換機為VTP transparent |
| show vtp status | 顯示vtp 的狀態(tài) |
| vtp pruning | 啟用VTP 修剪 |
| vtp version 2 | VTP 版本為2 |
| interface port-channel 1 | 創(chuàng)建以太通道 |
| channel-group 1 mode on | 把接口加入到以太網(wǎng)通道中,并指明以太通道模式 |
| port-channel load-balance dst-mac | 配置etherChannel 的負載平衡方式 |
| show etherchannel summary | 查看etherchannel 的簡要信息 |
生成樹STP配置命令
命令描述
| show spanning-tree | 查看STP 樹信息 |
| spanning-tree vlan 1 priority 4096 | 配置VLAN1 的橋優(yōu)先級 |
| spanning-tree portfast | 配置接口為portfast,當有設備接入時立即進入轉(zhuǎn)發(fā)狀態(tài) |
| spanning-tree uplinkfast | 配置uplinkfast 特性 |
| spanning-tree backbonefast | 配置backbonefast 特性 |
| spanning-tree mode rapid-pvst | 把STP 的運行模式設為RSTP+PVST |
| spanning-tree link-type point-to-point | 把接口的鏈路類型改為點對點 |
| spanning-tree mode mst | 把生成樹的模式改為MST |
| spanning-tree mst configuration | 進入MST 的配置模式 |
| name TEST-MST | 命名MST 的名字 |
| revision 1 | 配置MST 的revision 號 |
| instance 1 vlan 1-2 | 把VLAN 1 和VLAN 2 的生成樹映射到實例1 |
| spanning-tree guard root | 在接口上配置root guard 特性 |
| spanning-tree bpduguard enable | 在接口上配置bpduguard 特性 |
trunk基本配置
命令描述
| int g0/0.1 | 創(chuàng)建子接口 |
| encapture dot1q 1 native | 指明子接口承載哪個VLAN 的流量以及封裝類型,同時該VLAN 是native vlan |
| ip routing | 打開路由功能 |
| no switchport | 接口不作為交換機接口 |
| ip cef | 開啟CEF 功能 |
HSRP 基本配置命令
命令描述
| standby 1 ip 192.168.13.254 | 啟用 HSRP 功能,并設置虛擬IP 地址 |
| standby 1 priority 120 | 配置本路由器的HSRP 優(yōu)先級 |
| standby 1 preempt | 配置HSRP 搶占 |
| standby 1 timers 3 10 | 設置HSRP 的HELLO time 和HOLD time |
| standby 1 authentication md5 key-string ?cisco | 配置HSRP 認證密碼,認證方式為MD5 |
| show standby brief | 查看HSRP 的簡要情況 |
| standby 1 track Serial0/0/0 30 | 跟蹤s0/0/0 接口,當接口故障時,HSRP 優(yōu)先級降低30 |
| vrrp 1 ip 192.168.13.254 | 啟用 VRRP 功能,并設置虛擬IP 地址 |
| vrrp 1 priority 120 | 配置本路由器的VRRP 優(yōu)先級 |
| vrrp 1 preempt | 配置VRRP 搶占 |
| vrrp 1 authentication md5 key-string | cisco 配置VRRP 認證密碼,認證方式為MD5 |
| track 100 interface Serial0/0/0 | 定義一個跟蹤目標號,被跟蹤對象為s0/0/0 |
| line-protocol | 接口 |
| vrrp 1 track 100 decrement 30 | 跟蹤目標100,當目標故障時,優(yōu)先級降低30 |
| show vrrp brief | 查看VRRP 的簡要情況 |
| glbp 1 ip 192.168.1.254 | 啟用 GLBP 功能,并設置虛擬IP 地址 |
| glbp 1 priority 200 | 配置本路由器的GLBP 優(yōu)先級 |
| glbp 1 preempt | 配置GLBP 搶占 |
| glbp 1 authentication md5 key-string ?cisco | 配置GLBP 認證密碼,認證方式為MD5 |
| show glbp | 查看GLBP 情況 |
重分布
命令描述
| show ip route | 查看路由表 |
| show ip protocols | 查看和路由協(xié)議相關的信息 |
| redistribute | 配置路由協(xié)議重分布 |
| default-metric | 配置默認種子度量值 ?ip prefix-list 定義前綴列表 |
| distance eigrp | 配置EIGRP 默認管理距離 |
| router-map | 基本配置命令 |
| show ip policy | 查看策略路由及作用的接口 |
| show route-map | 查看定義的所有路由策略及路由策略匹配的情況 |
| debug ip policy | 動態(tài)查看策略路由的匹配情況 |
| passive-interface | 配置被動接口 |
| distribute-list | 配置分布控制列表 |
| route-map | 定義路由策略 |
| match | 定義匹配的條件 |
| set | 定義對符合匹配條件的語句采取的行為 |
| ip policy route-map | 應用路由策略 |
| ip local policy route-map | 本地應用路由策略 |
IPv6基本配置命令
命令描述
| show ipv6 route | 查看IPv6 路由表 |
| show ipv6 interface | 查看IPv6 接口信息 |
| show ipv6 protocols | 查看和IPv6 路由協(xié)議相關的信息 |
| show ipv6 rip next-hops | 查看RIPng 的下一跳地址 |
| show ipv6 rip database | 查看RIPng 的數(shù)據(jù)庫 |
| show ipv6 ospf neighbor | 查看OSPFv3 鄰居的基本信息 |
| show ipv6 ospf interface | 查看OSPFv3 路由器接口的信息 |
| show ipv6 ospf database | 查看OSPFv3 拓撲結(jié)構數(shù)據(jù)庫 |
| show ipv6 ospf | 查看OSPFv3 進程及其細節(jié) |
| show ipv6 route eigrp | 查看IPv6 EIGRP 的路由 |
| show ipv6 eigrp topology | 查看IPv6 EIGRP 的拓撲結(jié)構信息 |
| show ipv6 eigrp neighbors | 查看IPv6 EIGRP 的鄰居 |
| debug ipv6 rip | 動態(tài)查看RIPng 的更新 |
| ipv6 unicast-routing | 啟動IPv6 流量轉(zhuǎn)發(fā) |
| ipv6 address | 在接口下配置IPv6 地址 |
| ipv6 route | 配置IPv6 靜態(tài)路由 |
| ipv6 router rip | 啟動IPv6 RIPng 進程 |
| split-horizon | 啟用水平分割 |
| poison-reverse | 啟用毒化反轉(zhuǎn) |
| ipv6 rip tag enable | 在接口上啟用RIPng |
| ipv6 rip tag default-information originate | 向IPv6 RIPng 區(qū)域注入一條默認路由 |
| ipv6 router ospf | 啟動OSPFv3 路由進程 |
| router-id | 配置路由器ID |
| default-information originate | 向OSPFv3 網(wǎng)絡注入一條默認路由 |
| ipv6 ospf process-id area area-id | 接口上啟用OSPFv3,并聲明接口所在區(qū)域 |
| ipv6 router eigrp | 配置IPv6 EIGRP 路由協(xié)議 |
| ipv6 eigrp | 接口下啟用IPv6 EIGRP |
| maximum-paths | 配置能支持的等價路徑的條數(shù) |
組播相關命令
命令描述
| ip multicast-routing | 啟用組播路由功能 |
| ip pim dense | 在接口上運行pim dense 協(xié)議 |
| ip igmp join-group 237.0.0.1 | 該接口加入到237.0.0.1 組中 |
| show ip pim neighbor | 顯示了pim 鄰居 |
| show ip mroute | 顯示組播路由表 |
| show ip igmp groups | 顯示組成員 |
| ip igmp snooping | 在交換機上配置IGMP Snopping 功能 |
| show ip igmp snooping | 顯示交換機上的IGMP Snooping 運行情況 |
| show ip igmp snooping groups | 交換機上顯示各組的成員在什么接口上 |
| ip pim sparse-dense | 在接口上運行pim sparse-dense 協(xié)議 |
| ip pim spt-threshold infinity | 靜止從基于RP 的樹切換到基于源的樹 |
| ip pim send-rp-discovery loopback 0scope 255 | 把路由器設為映射代理,其Loopback0 為代理地址 |
| ip pim send-rp-announce Loopback0 scope255 | 把路由器設為候選RP,其Loopback0 為RP地址 |
QOS相關命令
命令描述
| priority-list 1 protocol ip high tcp telnet | 創(chuàng)建優(yōu)先級隊列,標號為1。把telnet 流量放在高優(yōu)先級隊列中 |
| priority-list 1 queue-limit 20 30 40 50 | 定義優(yōu)先級隊列高、中、普通、低隊列中的長度 |
| priority-group 1 | 把定義好的優(yōu)先級隊列應用接口上 |
| show queueing priority | 查看優(yōu)先級隊列情況 |
| debug priority | 調(diào)試優(yōu)先級隊列 |
| queue-list 1 protocol ip 1 tcp telnet | 創(chuàng)建自定義隊列,標號為1。把telnet 流量放在隊列1 中 |
| queue-list 1 queue 1 limit 40 | 定義隊列1 的深度為40, |
| custom-queue-list 1 | 把定義好的自定義隊列應用接口上 |
| fair-queue 512 1024 10 | 在接口上啟用WFQ,512 是丟棄值,1024 是最大的會話數(shù),10 是RSVP 可預留隊列 |
| class-map match-any CLASS-MAP1 | 定義class-map,名為CLASS-MAP1 |
| match protocol http | 匹配http 協(xié)議 |
| bandwidth 10 | 配置CLASS-MAP 流量的帶寬為60K |
| service-policy output MY-POLICY | 把定義好的策略應用在接口的output 方向上 |
| show class-map | 顯示class-map 信息 |
| show policy-map | 顯示policy-map 信息 |
| show policy-map interface s0/0/0 | 顯示接口s0/0/0 上的policy-map 配置 |
| priority 15 | 配置LLQ,帶寬為15k |
| random-detect | 在接口上啟用WRED |
| random-detect precedence 0 18 42 12 | 配置WRED,對于IP 優(yōu)先級為0 的隊列,最低閥值為18,最大閥值為42,按照1/12 的最大比例丟棄數(shù)據(jù)包 |
| show queueing random-detect | 顯示W(wǎng)RED 的配置情況 |
| show interfaces rate-limit | 顯示各接口上CAR 的情況 |
| drop | 丟棄數(shù)據(jù)包 |
| variance | 配置IPv6 EIGRP 非等價負載均衡 |
?
本文授權轉(zhuǎn)自微信公眾號:網(wǎng)絡技術干貨圈(id: wljsghq)
禁止二次轉(zhuǎn)載,請聯(lián)系作者授權
總結(jié)
以上是生活随笔為你收集整理的思科设备命令大全的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
如果覺得生活随笔網(wǎng)站內(nèi)容還不錯,歡迎將生活随笔推薦給好友。