Bgppolicy source destination ipprecmap ipqosmap

Syntax Description

Parameter

Descri ption

source

The IP precedence bit or QoS group ID from the source address entry in the route table

destination

The IP precedence bit or QoS group ID from the destination address entry in the route table

ip-prec-map

QoS policy based on the IP precedence

ip-qos-map

The QoS policy based on the QoS group ID

Note If you specify both source and destination on the interface, the software looks up the source address in the routing table and classifies the packet based on the source address first; then the software looks up the destination address in the routing table and reclassifies it based on the destination address.

Note If you specify both source and destination on the interface, the software looks up the source address in the routing table and classifies the packet based on the source address first; then the software looks up the destination address in the routing table and reclassifies it based on the destination address.

Example: Configuration router bgp 30 table-map precedence-map neighbor 20.20.20.1 remote-as 10 neighbor 20.20.20.1 send-community !

ip bgp-community new-format !

! Match community 1 and set the IP precedence to priority and set the QoS group to 1

route-map precedence-map permit 10

match community 1

set ip precedence priority set ip qos-group 1 !

! Match community 2 and set the IP precedence to immediate route-map precedence-map permit 20 match community 2

set ip precedence immediate !

ip community-list 1 permit 60:1

ip community-list 2 permit 60:2 !

interface HSSI 5/0 no ip address encapsulation frame-relay

interface HSSI 5/0/0.1 point-to-point ip address 20.20.20.1 255.255.255.0 bgp-policy source ip-prec-map no ip mroute-cache frame-relay interface-dlci 20 IETF

In this example, the community attribute is being matched and then the action is taken on those attributes. If the community is 60:1 (IP community list 1), its IP precedence will be set to priority and the QoS group will be set to 1, as specified in the route map precedence map.

If the community attribute is 60:2 (IP community list 2), its IP precedence will be set to immediate.

The policy is then applied to the interface HSSI 5/0/0/0.1, using the bgp-policy source command. The ip-prec-map keyword indicates that the QoS policy is based on IP precedence.

Example: Configuring QPPB

The figure shows an example of configuring QPPB.

• The customer in AS 73 is a Premium customer.

Create an end-to-end QoS solution in a service provider network:

• The customer in AS 73 is a Premium customer.

• All packets to AS 73 shall be sent with IP precedence flash.

• This example illustrates destination-based IP precedence marking using QPPB.

In a service-provider network, an end-to-end QoS solution must be created.

The requirements for the example are as follows:

■ The customer in AS 73 is a Premium customer.

■ All packets to AS 73 are sent with IP precedence flash.

Was this article helpful?

0 0

Post a comment