Riverstone Networks WICT1-12 Network Router User Manual


 
Riverstone Networks RS Switch Router User Guide Release 8.0 16-11
BGP Configuration Guide Basic BGP Tasks
Defining Actions in Route Map Conditions
When a route matches a condition configured with the
permit
keyword, the specified action is taken. The following
actions can be specified:
Set the next hop for the route
Set the local preference for the route
Set the MED for the route
Set the original for the route
Prepend the AS number to the AS path for the route
Remove or add communities to the route
Set the preference for the route
Specify the traffic bucket number for the route (see Section 16.3.11, "BGP Accounting Examples,"
for more information)
16.2.11 Using BGP Accounting
BGP accounting allows you to differentiate and tally IP traffic by assigning traffic indexes based on route map
specifications to an input interface. Using BGP accounting, you can collect statistics (and apply billing) according to
route-specific traffic. For example, domestic, international, terrestrial, satellite, and other traffic can be identified and
accounted for on a per-customer basis.
You can also choose to count route-specific traffic according to Differentiated Services Code Point (DSCP) values
(previously known as Type of Service values) in the packets. This allows you to collect and bill on a service level for
each customer.
Enabling BGP Accounting
In the following example, BGP packets with the community value “11:11” are forwarded from router R1 to router R2.
On router R2, a traffic index is set up to keep the counts of these packets.
On the router R1, create a community list for the community value “11:11.” For example, the following commands
create a route-map for the community value “11:11”:
On the router R2, do the following:
1.
Create a community list to match the community value “11:11” and define a route-map that matches
the community with a specific traffic index. For example, the following commands create a
community list with the community value “11:11” and define a route map to match the community
list with the traffic index ’1’:
route-map 1 permit 1 set-community-list 11:11
bgp set peer-group r2 route-map-out 1 out-sequence 1
ip-router policy create community-list list1 "11:11"
route-map 1 permit 1 match-community-list list1 set-traffic-index 1