「乾貨」CCIE命令大全

15-1、switch 彙總命令作用

int g0/0.1------ 創建子接口

encapture dot1q1 native------ 指明子接口承載哪個VLAN的流量以及封裝類型,同時該VLAN是 native vlan

ip routing------ 打開路由功能

no switchport------ 接口不作為交換機接口

ip cef------ 開啟CEF功能

表 16-1、本章命令彙總命令作用

standby 1 ip 192.168.13.254------ 啟用HSRP功能,並設置虛擬IP 地址

standby 1 priority 120------ 配置本路由器的HSRP優先級

standby 1 preempt------ 配置HSRP搶佔

standby 1 timers 3 10------ 設置HSRP的HELLO time和 HOLD time

standby 1 authentication md5 key-stringcisco ------ 配置 HSRP認證密碼,認證方式為MD5

show standby brief------ 查看HSRP的簡要情況

standby 1 track Serial0/0/0 30------ 跟蹤s0/0/0接口,當接口故障時,HSRP優先級降低30

vrrp 1 ip 192.168.13.254------ 啟用VRRP功能,並設置虛擬IP地址

vrrp 1 priority 120------ 配置本路由器的VRRP優先級

vrrp 1 preempt------ 配置VRRP搶佔

vrrp 1 authentication md5 key-stringcisco ------ 配置VRRP認證密碼,認證方式為MD5

track 100 interface Serial0/0/0------ 定義一個跟蹤目標號,被跟蹤對象為s0/0/0 line-protocol接口

vrrp 1 track 100 decrement 30------ 跟蹤目標100,當目標故障時,優先級降低30

show vrrp brief------ 查看VRRP的簡要情況

glbp 1 ip 192.168.1.254------ 啟用GLBP功能,並設置虛擬IP地址

glbp 1 priority 200------ 配置本路由器的GLBP優先級

glbp 1 preempt 配置GLBP搶佔

glbp 1 authentication md5 key-stringcisco ------ 配置GLBP認證密碼,認證方式為MD5

show glbp------ 查看GLBP情況

表 17-1、本章命令彙總命令作用

show ip route------ 查看路由表

how ip ospf interface------ 查看運行OSPF的接口的相關信息

show ip ospf neighbor detail------ 查看OSPF鄰居路由器的詳細信息

ip ospf network------ 配置OSPF網絡類型

encapsulation frame-relay------ 接口封裝幀中繼

no frame-relay inverse-arp------ 關閉幀中繼逆向ARP解析

frame-relay interface-dlci ------幀中繼映射

frame-relay map ip------ 幀中繼映射

18.5、OSPF命令彙總

show ip route------ 查看路由表

show ip ospf neighbor ------ 查看OSPF鄰居的基本信息

show ip ospf database------ 查看OSPF拓撲結構數據庫

show ip ospf interface ------ 查看 OSPF 路由器接口的信息 show ip ospf------ 查看OSPF進程及其細節

show ip ospf database router------ 查看類型1的LSA的全部信息

redistribute------ 路由協議重分佈

area area-id range------ 區域間路由彙總

summary-address------ 外部路由彙總

area area-id stub------ 把某區域配置成末節區域

area area-id stub no-summary------把某區域配置成完全末節區域

area area-id nssa------ 把某區域配置成NSSA區域

area area-id virtual-link------ 配置虛鏈路


分享到:


相關文章: