Verifying CEF
To view the details of the IPv4 or IPv6 CEF tables, use the following commands:
-
show cef {ipv4 address | ipv6 address} hardware egress npu location {node-id}
Displays the IPv4 or IPv6 CEF table. The next hop and forwarding interface are displayed for each prefix. The output of the show cef command varies by location.
Router# show cef 203.0.1.2 hardware egress
203.0.1.2/32, version 0, internal 0x1020001 0x0 (ptr 0x8d7db7f0) [1], 0x0 (0x8daeedf0), 0x0 (0x0)
Updated Nov 20 13:33:23.557
local adjacency 203.0.1.2
Prefix Len 32, traffic index 0, Adjacency-prefix, precedence n/a, priority 15
via 203.0.1.2/32, HundredGigE0/0/1/0, 3 dependencies, weight 0, class 0 [flags 0x0]
path-idx 0 NHID 0x0 [0x8cfc81a0 0x0]
next hop 203.0.1.2/32
local adjacency
Router# show cef ipv6 fccc:0:2:ce00:: hardware egress npu location 0/0/CPU0
Using NPU option is resource intensive and may result in system
instability and possibly result in traffic loss.
Do you really want to continue[confirm with only 'y' or 'n'] [y/n] : y
Do you really want to continue[confirm with only 'y' or 'n'] [y/n] :Do you really want to continue[confirm with only 'y' or 'n'] [y/n] : y
Do you really want to continue[confirm with only 'y' or 'n'] [y/n] :Do you really want to continue[confirm with only 'y' or 'n'] [y/n] :y
fccc:0:2:ce00::/64, version 725, SRv6 Headend, internal 0x1000001 0x220 (ptr 0x8dace0a8) [1], 0x400 (0x8daa1138), 0x0 (0x8e664250)
Updated Oct 12 20:35:51.433
local adjacency to Bundle-Ether1301
Prefix Len 64, traffic index 0, precedence n/a, priority 2
gateway array (0x8d93b398) reference count 2, flags 0x0, source rib (7), 0 backups
[4 type 3 flags 0x8401 (0x8d9efe68) ext 0x0 (0x0)]
LW-LDI[type=3, refc=1, ptr=0x8daa1138, sh-ldi=0x8d9efe68]
gateway array update type-time 1 Oct 10 11:22:17.595
LDI Update time Oct 10 11:22:17.595
LW-LDI-TS Oct 12 20:35:51.450
Accounting: 0/0 packets/bytes output (per-prefix-per-path mode)
via fe80::11/128, Bundle-Ether1301, 13 dependencies, weight 0, class 0 [flags 0x0]
path-idx 0 NHID 0x20049 [0x901b88b0 0x0]
next hop fe80::11/128
local adjacency
Accounting: 0/0 packets/bytes output
LEAF - HAL pd context :
sub-type : IPV6, ecd_marked:0, has_collapsed_ldi:0
collapse_bwalk_required:0, ecdv2_marked:0,
HW Walk:
LEAF:
PI:0x308dace0a8 PD:0x308dace140 rev:2474 type: IPV6 (1) TBL: 0xe0800000
LEAF location: LPM
FEC key: 0x14b40000a0d0
LEAF ip6route HW: <<<< New information
npu:0x0 fec index:0x2000ffce
LWLDI:
PI:0x308daa1138 PD:0x308daa1180 rev:2473 p-rev:2381 ldi type:IP
FEC key: 0x14b40000a0d0 fec index: 0x2000ffce(65486) num paths: 1 bkup paths: 0
IMP pattern:3
PI:0x308daa1138 PD:0x308daa1180 rev:2473 p-rev:2381 dpa-rev:1070462
FEC key: 0x14b40000a0d0 fec index: 0x2000ffce(65486) num paths: 1 bkup paths: 0
Path:0 fec index: 0x2000ffce(65486) DSP: 0xc000001
SRV6 Encap key: 0xf1c0000040011844 SRV6 Encap Id: 0x40011844 Remote: 0
Alloc Size: 1 SID: Func: 48 (LOC_STATS)
Hardware Programmed SID: {}
uSID Shift slots:0
FEC:
npu:0x0 fec:0x2000ffce port:0xc000001 encap:0x40011844
SHLDI:
PI:0x308d9efe68 PD:0x308d9eff10 rev:2381 dpa-rev:195026 cbf_enabled:0 pbts_enabled:0 surpf_enable:0 flag:0x0
FEC key: 0x14340000a0d0 fec index: 0x2000ffc5(65477) num paths: 1 bkup paths: 0
p-rev:2364
Path:0 fec index: 0x2000ffc5(65477) DSP:0xc000001 Dest fec index: 0x0(0)
FEC: <<<< New information
npu:0x0 fec:0x2000ffc5 port:0xc000001 encap:0x40010001
TX-NHINFO:
PI: 0x30901b88b0 PD: 0x30901b8950 rev:2364 dpa-rev:195015 Encap hdl: (nil)
Encap id: 0x40010001 Remote: 0 L3 int: 45 flags: 0x7 transport_encap_id:0x0
npu_mask: 0x1 DMAC: fc:82:a0:51:04:82
ENCAP: <<<< New information
npu:0x0 mac:0x820451a082fc vlan:0x2d
Load distribution: 0 (refcount 4)
Hash OK Interface Address
0 Y Bundle-Ether1301 fe80::11
-
show cef {ipv4 | ipv6} summary
Router#show cef ipv4 summary
Fri Nov 20 13:50:45.239 UTC
Router ID is 216.1.1.1
IP CEF with switching (Table Version 0) for node0_RP0_CPU0
Load balancing: L4
Tableid 0xe0000000 (0x8cf5b368), Vrfid 0x60000000, Vrid 0x20000000, Flags 0x1019
Vrfname default, Refcount 4129
56 routes, 0 protected, 0 reresolve, 0 unresolved (0 old, 0 new), 7616 bytes
13 rib, 0 lsd, 0:27 aib, 1 internal, 10 interface, 4 special, 1 default routes
56 load sharing elements, 24304 bytes, 1 references
1 shared load sharing elements, 432 bytes
55 exclusive load sharing elements, 23872 bytes
0 route delete cache elements
13 local route bufs received, 1 remote route bufs received, 0 mix bufs received
13 local routes, 0 remote routes
13 total local route updates processed
0 total remote route updates processed
0 pkts pre-routed to cust card
0 pkts pre-routed to rp card
0 pkts received from core card
0 CEF route update drops, 0 revisions of existing leaves
0 CEF route update drops due to version mis-match
Resolution Timer: 15s
0 prefixes modified in place
0 deleted stale prefixes
0 prefixes with label imposition, 0 prefixes with label information
0 LISP EID prefixes, 0 merged, via 0 rlocs
28 next hops
1 incomplete next hop
0 PD backwalks on LDIs with backup path
-
show cef { ipv4 address | ipv6 address } detail
Displays the details of the IPv4 or IPv6 CEF table.
Router#show cef 203.0.1.2 detail
203.0.1.2/32, version 0, internal 0x1020001 0x0 (ptr 0x8d7db7f0) [1], 0x0 (0x8daeedf0), 0x0 (0x0)
Updated Nov 20 13:33:23.556
local adjacency 203.0.1.2
Prefix Len 32, traffic index 0, Adjacency-prefix, precedence n/a, priority 15
gateway array (0x8d84beb0) reference count 1, flags 0x0, source aib (10), 0 backups
[2 type 3 flags 0x8401 (0x8d99a598) ext 0x0 (0x0)]
LW-LDI[type=3, refc=1, ptr=0x8daeedf0, sh-ldi=0x8d99a598]
gateway array update type-time 1 Nov 20 13:33:23.556
LDI Update time Nov 20 13:33:23.556
LW-LDI-TS Nov 20 13:33:23.556
via 203.0.1.2/32, HundredGigE0/0/1/0, 3 dependencies, weight 0, class 0 [flags 0x0]
path-idx 0 NHID 0x0 [0x8cfc81a0 0x0]
next hop 203.0.1.2/32
local adjacency
Load distribution: 0 (refcount 2)
Hash OK Interface Address
0 Y HundredGigE0/0/1/0 203.0.1.2
-
show adjacency detail
Displays detailed adjacency information, including Layer 2 information for each interface. The output of the show adjacency command varies by location.
Router#show adjacency detail
-------------------------------------------------------------------------------
0/5/CPU0
-------------------------------------------------------------------------------
Interface Address Version Refcount Protocol
Hu0/5/0/12 (interface) 13 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/30 (interface) 31 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/19 (interface) 20 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/16 (interface) 17 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/23 (interface) 24 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/22 (interface) 23 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/1 (interface) 2 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/6 (interface) 7 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/10 (interface) 11 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/31 (interface) 32 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/28 (interface) 29 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/35 (interface) 36 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/32 (interface) 33 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/15 (interface) 16 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/34 (interface) 35 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/2 (interface) 3 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/26 (interface) 27 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/0/0/9 203.0.1.2 50 2( 0) mpls
00109400000cea285f0b80248847
mtu: 8986, flags 1 0
Hu0/0/0/9 203.0.1.2 49 2( 0) ipv4
00109400000cea285f0b80240800
mtu: 8986, flags 1 0
Hu0/5/0/29 (interface) 30 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/33 (interface) 34 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/20 (interface) 21 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/24 (interface) 25 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/0 (interface) 1 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/4 (interface) 5 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/8 (interface) 9 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/3 (interface) 4 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/27 (interface) 28 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/7 (interface) 8 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/14 (interface) 15 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/11 (interface) 12 1( 0)
(interface entry)
mtu: 1500, flags 1 4
Hu0/5/0/18 (interface) 19 1( 0)
(interface entry)