bgp policy accounting
To enable Border Gateway Protocol (BGP) policy accounting, use the bgp policy accounting command in interface configuration mode. To disable BGP policy accounting, use the no form of this command.
ipv4 bgp policy accounting { input | output { destination-accounting [source-accounting] | source-accounting [destination-accounting] } }
ipv6 bgp policy accounting { input | output { destination-accounting [source-accounting] | source-accounting [destination-accounting] } }
Syntax Description
input |
Enables BGP policy accounting policy on the ingress IPv4 or IPv6 unicast interface. |
destination-accounting |
Enables accounting policy on the basis of the destination address. |
Command Default
There is no BGP policy accounting.
Command Modes
Interface configuration
Command History
Release |
Modification |
---|---|
Release 3.7.2 |
This command was introduced. |
Usage Guidelines
-
To use this command, you must be in a user group associated with a task group that includes the proper task IDs. If you suspect user group assignment is preventing you from using a command, contact your AAA administrator for assistance.
-
To specify the accounting policy, the proper route policy configuration must be in place, matching specific BGP attributes using the set traffic-index command. In BGP router configuration mode, use the table-policy command to modify the accounting buckets when the IP routing table is updated with routes learned from BGP. To display accounting policy information, use the show cef interface bgp-policy-statistics , show bgp policy , and show route bgp commands.
-
The functionality of the following keywords are not supported:
-
output
-
source-accounting
-
output destination-accounting
-
-
This feature is applicable for the following address families:
-
IPv4
-
IPv6
-
Task ID
Task ID |
Operations |
---|---|
network |
read, write |
Examples
The following example shows how to configure the BGP policy accounting:
Router(config)# interface HundredGigE 0/5/0/0
Router(config-if)# ipv4 bgp policy accounting output source-accounting
Router(config-if)# commit
Router(config)# interface HundredGigE 0/5/0/0
Router(config-if)# ipv6 bgp policy accounting output source-accounting
Router(config-if)# commit