【正文】
permit, sequence 40 Match clauses: ip address (accesslists): 104 Set clauses: ip precedence immediate Policy routing matches: 0 packets, 0 bytes routemap fxh, permit, sequence 50 Match clauses: Set clauses: ip precedence priority Policy routing matches: 0 packets, 0 bytes 4. 調(diào)用到接口上 r2(config)int s1/0 r2(configif)ip policy routemap fxh 5. 測(cè)試一下配置的結(jié)果 r2sh routemap routemap fxh, permit, sequence 10 Match clauses: ip address (accesslists): 101 Set clauses: ip precedence critical Policy routing matches: 0 packets, 0 bytes routemap fxh, permit, sequence 20 Match clauses: ip address (accesslists): 102 Set clauses: ip precedence flashoverride Policy routing matches: 10 packets, 505 bytes routemap fxh, permit, sequence 30 Match clauses: ip address (accesslists): 103 Set clauses: ip precedence flash Policy routing matches: 4 packets, 180 bytes routemap fxh, permit, sequence 40 Match clauses: ip address (accesslists): 104 Set clauses: ip precedence immediate Policy routing matches: 2 packets, 96 bytes routemap fxh, permit, sequence 50 Match clauses: Set clauses: ip precedence priority Policy routing matches: 8231 packets, 2033573 bytes 6. 查詢 cef 快速轉(zhuǎn)發(fā)的命令: r1sh adjacency detail 查詢我們的 CEF 的鄰居信息,后面必須跟detail 參數(shù) Protocol Interface Address IP Serial1/0 point2point(15) 0 packets, 0 bytes 0F000800 CEF expires: 00:02:01 refresh: 00:00:01 Epoch: 0 r1sh ip cef 查詢的是快速轉(zhuǎn)發(fā)表,注意后面的參數(shù) 試驗(yàn)三、 QPPB 的一個(gè)試驗(yàn) 試驗(yàn)步驟: 1. 配置鏈路層 r1 r1 r1 r1 r1sh run Building configuration... Current configuration : 1419 bytes ! version service timestamps debug datetime msec service timestamps log datetime msec no service passwordencryption ! hostname r1 ! bootstartmarker bootendmarker ! enable password cisco ! no aaa newmodel memorysize iomem 5 ip cef ! ! ! ! no ip domain lookup ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address ! interface FastEther0/0 no ip address shutdown duplex auto speed auto ! interface FastEther0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 ip address serial restartdelay 0 ! interface Serial1/1 no ip address shutdown serial restartdelay 0 ! interface Serial1/2 no ip address shutdown serial restartdelay 0 ! interface Serial1/3 no ip address shutdown serial restartdelay 0 ! ! router ospf 100 routerid logadjacencychanges work area 0 ! router bgp 24 no synchronization bgp routerid bgp logneighborchanges neighbor remoteas 12 no autosummary ! ! ! ip server no ip secureserver ! ! ! ! ! controlplane ! ! ! ! ! ! ! ! ! alias exec a sh ip int brief alias exec b sh ip route alias exec c sh ip route rip alias exec d sh run ! line con 0 exectimeout 0 0 logging synchronous line aux 0 exectimeout 0 0 logging synchronous line vty 0 4 exectimeout 0 0 password cisco login ! ! End r2sh run Building configuration... Current configuration : 1465 bytes ! version service timestamps debug datetime msec service timestamps log datetime msec no service passwordencryption ! hostname r2 ! bootstartmarker bootendmarker ! enable password cisco ! no aaa newmodel memorysize iomem 5 ip cef ! ! ! ! no ip domain lookup ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address ! interface FastEther0/0 no ip address shutdown duplex auto speed auto ! interface FastEther0/1 no ip address shutdown duplex auto speed auto ! interface Serial1/0 ip address serial restartdelay 0 ! interface Serial1/1 no ip address shutdown serial restartdelay 0 ! interface Serial1/2 ip address serial restartdelay 0 ! interface Serial1/3 no ip address shutdown serial restartdelay 0 ! ! router ospf 100 routerid logadjacencychanges work area 0 ! router bgp 12 no synchronization bgp routerid bgp logneighborchanges neighbor remoteas 24 neighbor remoteas 12 no autosummary ! ! ! ip server no ip secureserver ! ! ! ! ! controlplane ! ! ! ! ! ! ! ! ! alias exec a sh ip int brief alias exec b sh ip route alias exec c sh ip route rip alias exec d sh run ! line con 0 exectimeout 0 0 logging synchronous line aux 0 exectimeout 0 0 logging synchronous line vty 0 4 exectimeout 0 0 password cisco login ! ! end r2 r3sh run Building configuration... Current configuration : 1503 bytes ! version service timestamps debug datetime msec service timestamps log datetime msec no service passwordencryption ! hostname r3 ! bootstartmarker bootendmarker ! enable password cisco ! no aaa newmodel memorysize iomem 5 ip cef ! ! ! ! no ip domain lookup ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! interface Loopback0 ip address ! interface Loopback90 no ip address ! interface FastEther0/0 no ip address shutdown duplex auto speed auto ! interface FastEther0/1 no ip address