Describes configuring traffic index values on routes to support policy accounting and selectively drop routes from the routing table based on match criteria.
Table policy is a feature that
-
configures traffic index values on routes as BGP installs them in the global routing table
-
supports the BGP policy accounting feature, and
-
provides the ability to drop routes from the Routing Information Base (RIB) based on match criteria.
Table policy operational details
You enable this feature using the table-policy command. BGP policy accounting uses traffic indices set on BGP routes to track various counters. The ability to drop routes from the RIB is useful in applications such as Remotely Triggered Blackhole (RTBH) filtering to mitigate denial-of-service attacks, or to enforce specific security policies by preventing routes to unwanted destinations from being installed in the local forwarding table.
However, use this feature with caution. It can easily lead to a scenario where BGP advertises routes to neighbors but does not install them in its global routing table and forwarding table. This results in traffic destined for those routes being silently dropped.