The following
example shows how to verify the traffic index setup for each BGP prefix and BGP
Policy Accounting statistics on ingress and egress interfaces. The following
traffic stream is configured for this example:
show cef ipv4 interface GigabitEthernet 0/0/0/8 bgp-policy-statistics
GigabitEthernet0/0/0/8 is up
Input BGP policy accounting on dst IP address enabled
buckets packets bytes
7 5001160 500116000
15 10002320 1000232000
Input BGP policy accounting on src IP address enabled
buckets packets bytes
8 5001160 500116000
16 10002320 1000232000
Output BGP policy accounting on dst IP address enabled
buckets packets bytes
0 15 790
Output BGP policy accounting on src IP address enabled
buckets packets bytes
0 15 790
show cef ipv4 interface GigabitEthernet 0/0/0/4 bgp-policy-statistics
GigabitEthernet0/0/0/4 is up
Input BGP policy accounting on dst IP address enabled
buckets packets bytes
Input BGP policy accounting on src IP address enabled
buckets packets bytes
Output BGP policy accounting on dst IP address enabled
buckets packets bytes
0 13 653
7 5001160 500116000
15 10002320 1000232000
Output BGP policy accounting on src IP address enabled
buckets packets bytes
0 13 653
8 5001160 500116000
16 10002320 1000232000
show cef ipv4 interface GigabitEthernet 0/2/0/4 bgp-policy-statistics
GigabitEthernet0/2/0/4 is up
Input BGP policy accounting on dst IP address enabled
buckets packets bytes
1 3297102 329710200
2 3297102 329710200
3 3297102 329710200
4 3297101 329710100
5 3297101 329710100
Input BGP policy accounting on src IP address enabled
buckets packets bytes
6 3297102 329710200
7 3297102 329710200
8 3297102 329710200
9 3297101 329710100
10 3297101 329710100
Output BGP policy accounting on dst IP address enabled
buckets packets bytes
0 15 733
Output BGP policy accounting on src IP address enabled
buckets packets bytes
0 15 733
show cef ipv4 interface GigabitEthernet 0/2/0/2.1 bgp-policy-statistics
GigabitEthernet 0/2/0/2.1 is up
Input BGP policy accounting on dst IP address enabled
buckets packets bytes
Input BGP policy accounting on src IP address enabled
buckets packets bytes
Output BGP policy accounting on dst IP address enabled
buckets packets bytes
0 15 752
1 3297102 329710200
2 3297102 329710200
3 3297102 329710200
4 3297101 329710100
5 3297101 329710100
Output BGP policy accounting on src IP address enabled
buckets packets bytes
0 15 752
6 3297102 329710200
7 3297102 329710200
8 3297102 329710200
9 3297101 329710100
10 3297101 329710100
The following
example show how to verify BGP routes and traffic indexes:
show route bgp
B 10
.1.1.0/24 [20/0] via 10
.17
.1.2, 00:07:09
Traffic Index 1
B 10
.1.2.0/24 [20/0] via 10
.17
.1.2, 00:07:09
Traffic Index 2
B 10
.1.3.0/24 [20/0] via 10
.17
.1.2, 00:07:09
Traffic Index 3
B 10
.1.4.0/24 [20/0] via 10
.17
.1.2, 00:07:09
Traffic Index 4
B 10
.1.5.0/24 [20/0] via 10
.17
.1.2, 00:07:09
Traffic Index 5
B 10
.18
.1.0/24 [20/0] via 10
.18
.1.2, 00:07:09
Traffic Index 6
B 10
.18
.2.0/24 [20/0] via 10
.18
.1.2, 00:07:09
Traffic Index 7
B 10
.18
.3.0/24 [20/0] via 10
.18
.1.2, 00:07:09
Traffic Index 8
B 10
.28
.4.0/24 [20/0] via 10
.18
.1.2, 00:07:09
Traffic Index 9
B 10
.28
.5.0/24 [20/0] via 10
.18
.1.2, 00:07:09
Traffic Index 10
B 10
.65
.1.0/24 [20/0] via 10
.45
.0.2, 00:07:09
Traffic Index 15
B 10
.65
.2.0/24 [20/0] via 10
.45
.0.2, 00:07:09
Traffic Index 15
B 10
.65
.3.0/24 [20/0] via 10
.45
.0.2, 00:07:09
Traffic Index 15
B 10
.65
.65
.0/24 [20/0] via 10
.45
.0.2, 00:07:09
Traffic Index 15
B 10
.65
.5.0/24 [20/0] via 10
.45
.0.2, 00:07:09
Traffic Index 15
B 10
.65
.6.0/24 [20/0] via 10
.45
.0.2, 00:07:09
Traffic Index 15
B 10
.65
.7.0/24 [20/0] via 10
.45
.0.2, 00:07:09
Traffic Index 15
B 10
.65
.8.0/24 [20/0] via 10
.45
.0.2, 00:07:09
Traffic Index 15
B 10
.65
.9.0/24 [20/0] via 10
.45
.0.2, 00:07:09
Traffic Index 15
B 10
.65
.10.0/24 [20/0] via 10
.45
.0.2, 00:07:09
Traffic Index 15
B 10
.66
.1.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 16
B 10
.66
.2.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 16
B 10
.66
.3.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 16
B 10
.66
.4.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 16
B 10
.66
.5.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 16
B 10
.66
.6.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 16
B 10
.66
.7.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 16
B 10
.66
.8.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 16
B 10
.66
.9.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 16
B 10
.66
.10.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 16
B 10
.67
.1.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 7
B 10
.67
.2.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 7
B 10
.67
.3.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 7
B 10
.67
.4.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 7
B 10
.67
.5.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 7
B 10
.67
.6.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 7
B 10
.67
.7.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 7
B 10
.67
.8.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 7
B 10
.67
.9.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 7
B 10
.67
.10.0/24 [20/0] via 10
.32
.0.2, 00:07:09
Traffic Index 7
B 10
.68
.1.0/24 [20/0] via 10
.8
.0.2, 00:07:09
Traffic Index 8
B 10
.68
.2.0/24 [20/0] via 10
.8
.0.2, 00:07:09
Traffic Index 8
B 10
.68
.3.0/24 [20/0] via 10
.8
.0.2, 00:07:09
Traffic Index 8
B 10
.68
.4.0/24 [20/0] via 10
.8
.0.2, 00:07:09
Traffic Index 8
B 10
.68
.5.0/24 [20/0] via 10
.8
.0.2, 00:07:09
Traffic Index 8
B 10
.68
.6.0/24 [20/0] via 10
.8
.0.2, 00:07:09
Traffic Index 8
B 10
.68
.7.0/24 [20/0] via 10
.8
.0.2, 00:07:09
Traffic Index 8
B 10
.68
.8.0/24 [20/0] via 10
.8
.0.2, 00:07:09
Traffic Index 8
B 10
.68
.9.0/24 [20/0] via 10
.8
.0.2, 00:07:09
Traffic Index 8
B 10
.68
.10.0/24 [20/0] via 10
.8
.0.2, 00:07:09
Traffic Index 8
show bgp summary
BGP router identifier 192
.0
.2
.0
, local AS number 100
BGP generic scan interval 60 secs
BGP main routing table version 151
Dampening enabled
BGP scan interval 60 secs
BGP is operating in STANDALONE mode.
Process RecvTblVer bRIB/RIB SendTblVer
Speaker 151 151 151
Neighbor Spk AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down St/PfxRcd
10
.4
.0.2 0 107 54 53 151 0 0 00:25:26 20
10
.1.0.2 0 108 54 53 151 0 0 00:25:28 20
10
.1.0.2 0 121 53 54 151 0 0 00:25:42 0
10
.1.1.2 0 121 53 53 151 0 0 00:25:06 5
10
.1.2.2 0 121 52 54 151 0 0 00:25:04 0
10
.1.3.2 0 121 52 53 151 0 0 00:25:26 0
10
.1.4.2 0 121 53 54 151 0 0 00:25:41 0
10
.1.5.2 0 121 53 54 151 0 0 00:25:43 0
10
.1.6.2 0 121 51 53 151 0 0 00:24:59 0
10
.1.7.2 0 121 51 52 151 0 0 00:24:44 0
10
.1.8.2 0 121 51 52 151 0 0 00:24:49 0
10
.2
.0.2 0 122 52 54 151 0 0 00:25:21 0
10
.2
.1.2 0 1221 54 54 151 0 0 00:25:43 5
10
.2
.2.2 0 1222 53 54 151 0 0 00:25:38 0
10
.2
.3.2 0 1223 52 53 151 0 0 00:25:17 0
10
.2
.4.2 0 1224 51 52 151 0 0 00:24:57 0
10
.2
.5.2 0 1225 52 53 151 0 0 00:25:14 0
10
.2
.6.2 0 1226 52 54 151 0 0 00:25:04 0
10
.2
.7.2 0 1227 52 54 151 0 0 00:25:13 0
10
.2
.8.2 0 1228 53 54 151 0 0 00:25:36 0
show bgp 27.1.1.1
BGP routing table entry for 27.1.1.0/24
Versions:
Process bRIB/RIB SendTblVer
Speaker 102 102
Paths: (1 available, best #1)
Not advertised to any peer
Received by speaker 0
121
10
.1.1.2 from 10
.1.1.2 (10
.1.1.2)
Origin incomplete, localpref 100, valid, external, best
Community: 27:1 121:1
show bgp 10
.1.1.1
BGP routing table entry for 10
.1.1.0/24
Versions:
Process bRIB/RIB SendTblVer
Speaker 107 107
Paths: (1 available, best #1)
Not advertised to any peer
Received by speaker 0
1221
10
.2
.1.2 from 10
.2
.1.2 (18.1.1.2)
Origin incomplete, localpref 100, valid, external, best
Community: 28:1 1221:1
show bgp 10
.0.1.1
BGP routing table entry for 10
.0.1.0/24
Versions:
Process bRIB/RIB SendTblVer
Speaker 112 112
Paths: (1 available, best #1)
Not advertised to any peer
Received by speaker 0
107
10
.1.0.2 from 10
.1.0.2 (10
.1.0.2)
Origin incomplete, localpref 100, valid, external, best
Community: 107:65
show bgp 10
.2
.1.1
BGP routing table entry for 10
.2
.1.0/24
Versions:
Process bRIB/RIB SendTblVer
Speaker 122 122
Paths: (1 available, best #1)
Not advertised to any peer
Received by speaker 0
108
8.1.0.2 from 8.1.0.2 (8.1.0.2)
Origin incomplete, localpref 100, valid, external, best
Community: 108:66
show bgp 67.0.1.1
BGP routing table entry for 67.0.1.0/24
Versions:
Process bRIB/RIB SendTblVer
Speaker 132 132
Paths: (1 available, best #1)
Not advertised to any peer
Received by speaker 0
107
4.1.0.2 from 4.1.0.2 (4.1.0.2)
Origin incomplete, localpref 100, valid, external, best
Community: 107:67
show bgp 68.0.1.1
BGP routing table entry for 68.0.1.0/24
Versions:
Process bRIB/RIB SendTblVer
Speaker 142 142
Paths: (1 available, best #1)
Not advertised to any peer
Received by speaker 0
108
8.1.0.2 from 8.1.0.2 (8.1.0.2)
Origin incomplete, localpref 100, valid, external, best
Community: 108:68
show route ipv4 27.1.1.1
Routing entry for 27.1.1.0/24
Known via "bgp 100", distance 20, metric 0
Tag 121, type external, Traffic Index 1
Installed Nov 11 21:14:05.462
Routing Descriptor Blocks
17.1.1.2, from 17.1.1.2
Route metric is 0
No advertising protos.
show route ipv4 28.1.1.1
Routing entry for 28.1.1.0/24
Known via "bgp 100", distance 20, metric 0
Tag 1221, type external, Traffic Index 6
Installed Nov 11 21:14:05.462
Routing Descriptor Blocks
18.1.1.2, from 18.1.1.2
Route metric is 0
No advertising protos.
show route ipv4 65.0.1.1
Routing entry for 65.0.1.0/24
Known via "bgp 100", distance 20, metric 0
Tag 107, type external, Traffic Index 15
Installed Nov 11 21:14:05.462
Routing Descriptor Blocks
4.1.0.2, from 4.1.0.2
Route metric is 0
No advertising protos.
show route ipv4 66.0.1.1
Routing entry for 66.0.1.0/24
Known via "bgp 100", distance 20, metric 0
Tag 108, type external, Traffic Index 16
Installed Nov 11 21:14:05.462
Routing Descriptor Blocks
8.1.0.2, from 8.1.0.2
Route metric is 0
No advertising protos.
show route ipv4 67.0.1.1
Routing entry for 67.0.1.0/24
Known via "bgp 100", distance 20, metric 0
Tag 107, type external, Traffic Index 7
Installed Nov 11 21:14:05.462
Routing Descriptor Blocks
4.1.0.2, from 4.1.0.2
Route metric is 0
No advertising protos.
show route ipv4 68.0.1.1
Routing entry for 68.0.1.0/24
Known via "bgp 100", distance 20, metric 0
Tag 108, type external, Traffic Index 8
Installed Nov 11 21:14:05.462
Routing Descriptor Blocks
8.1.0.2, from 8.1.0.2
Route metric is 0
No advertising protos.
show cef ipv4 27.1.1.1
27.1.1.0/24, version 263, source-destination sharing
Prefix Len 24, Traffic Index 1, precedence routine (0)
via 17.1.1.2, 0 dependencies, recursive
next hop 17.1.1.2/24, GigabitEthernet 0/2/0/2.1 via 17.1.1.0/24
valid remote adjacency
Recursive load sharing using 17.1.1.0/24
show cef ipv4 28.1.1.1
28.1.1.0/24, version 218, source-destination sharing
Prefix Len 24, Traffic Index 6, precedence routine (0)
via 18.1.1.2, 0 dependencies, recursive
next hop 18.1.1.2/24, GigabitEthernet0/2/0/4.1 via 18.1.1.0/24
valid remote adjacency
Recursive load sharing using 18.1.1.0/24
show cef ipv4 65.0.1.1
65.0.1.0/24, version 253, source-destination sharing
Prefix Len 24, Traffic Index 15, precedence routine (0)
via 4.1.0.2, 0 dependencies, recursive
next hop 4.1.0.2/16, GigabitEthernet0/0/0/4 via 4.1.0.0/16
valid remote adjacency
Recursive load sharing using 4.1.0.0/16
show cef ipv4 66.0.1.1
66.0.1.0/24, version 233, source-destination sharing
Prefix Len 24, Traffic Index 16, precedence routine (0)
via 8.1.0.2, 0 dependencies, recursive
next hop 8.1.0.2/16, GigabitEthernet 0/0/0/8 via 8.1.0.0/16
valid remote adjacency
Recursive load sharing using 8.1.0.0/16
show cef ipv4 67.0.1.1
67.0.1.0/24, version 243, source-destination sharing
Prefix Len 24, Traffic Index 7, precedence routine (0)
via 4.1.0.2, 0 dependencies, recursive
next hop 4.1.0.2/16, GigabitEthernet 0/0/0/4 via 4.1.0.0/16
valid remote adjacency
Recursive load sharing using 4.1.0.0/16
show cef ipv4 68.0.1.1
68.0.1.0/24, version 223, source-destination sharing
Prefix Len 24, Traffic Index 8, precedence routine (0)
via 8.1.0.2, 0 dependencies, recursive
next hop 8.1.0.2/16, GigabitEthernet0/0/0/8 via 8.1.0.0/16
valid remote adjacency
Recursive load sharing using 8.1.0.0/16
show cef ipv4 27.1.1.1 detail
27.1.1.0/24, version 263, source-destination sharing
Prefix Len 24, Traffic Index 1, precedence routine (0)
via 17.1.1.2, 0 dependencies, recursive
next hop 17.1.1.2/24, GigabitEthernet 0/2/0/2.1 via 17.1.1.0/24
valid remote adjacency
Recursive load sharing using 17.1.1.0/24
Load distribution: 0 (refcount 6)
Hash OK Interface Address Packets
1 Y GigabitEthernet 0/2/0/2.1 (remote) 0
show cef ipv4 28.1.1.1 detail
28.1.1.0/24, version 218, source-destination sharing
Prefix Len 24, Traffic Index 6, precedence routine (0)
via 18.1.1.2, 0 dependencies, recursive
next hop 18.1.1.2/24, GigabitEthernet 0/2/0/4.1 via 18.1.1.0/24
valid remote adjacency
Recursive load sharing using 18.1.1.0/24
Load distribution: 0 (refcount 6)
Hash OK Interface Address Packets
1 Y GigabitEthernet 0/2/0/4.1 (remote) 0
show cef ipv4 65.0.1.1 detail
65.0.1.0/24, version 253, source-destination sharing
Prefix Len 24, Traffic Index 15, precedence routine (0)
via 4.1.0.2, 0 dependencies, recursive
next hop 4.1.0.2/16, GigabitEthernet0/0/0/4 via 4.1.0.0/16
valid remote adjacency
Recursive load sharing using 4.1.0.0/16
Load distribution: 0 (refcount 21)
Hash OK Interface Address Packets
1 Y GigabitEthernet0/0/0/4 (remote) 0
show cef ipv4 66.0.1.1 detail
66.0.1.0/24, version 233, source-destination sharing
Prefix Len 24, Traffic Index 16, precedence routine (0)
via 8.1.0.2, 0 dependencies, recursive
next hop 8.1.0.2/16, GigabitEthernet0/0/0/8 via 8.1.0.0/16
valid remote adjacency
Recursive load sharing using 8.1.0.0/16
Load distribution: 0 (refcount 21)
Hash OK Interface Address Packets
1 Y GigabitEthernet 0/0/0/8 (remote) 0
show cef ipv4 67.0.1.1 detail
67.0.1.0/24, version 243, source-destination sharing
Prefix Len 24, Traffic Index 7, precedence routine (0)
via 4.1.0.2, 0 dependencies, recursive
next hop 4.1.0.2/16, GigabitEthernet 0/0/0/4 via 4.1.0.0/16
valid remote adjacency
Recursive load sharing using 4.1.0.0/16
Load distribution: 0 (refcount 21)
Hash OK Interface Address Packets
1 Y GigabitEthernet 0/0/0/4 (remote) 0
show cef ipv4 68.0.1.1 detail
68.0.1.0/24, version 223, source-destination sharing
Prefix Len 24, Traffic Index 8, precedence routine (0)
via 8.1.0.2, 0 dependencies, recursive
next hop 8.1.0.2/16, GigabitEthernet 0/0/0/8 via 8.1.0.0/16
valid remote adjacency
Recursive load sharing using 8.1.0.0/16
Load distribution: 0 (refcount 21)
Hash OK Interface Address Packets
1 Y GigabitEthernet 0/0/0/8 (remote) 0