Configuring a routing policy on an asbr-pe – H3C Technologies H3C S6800 Series Switches User Manual

Page 209

Advertising
background image

196

Step Command

Remarks

15.

Configure the ASBR in

another AS as an EBGP peer.

peer { group-name | ip-address
[ mask-length ] } as-number
as-number

By default, no BGP peer is created.

16.

Create the BGP IPv4 unicast

address family and enter its
view.

address-family ipv4 [ unicast ]

By default, the BGP IPv4 unicast
address family is not created.

17.

Enable exchange of IPv4

unicast routes with the PE in
the same AS and the ASBR in

another AS.

peer { group-name | ip-address
[ mask-length ] } enable

By default, BGP does not exchange
IPv4 unicast routes with any peer.

18.

Enable exchange of labeled

IPv4 routes with the PE in the
same AS and the ASBR in

another AS.

peer { group-name | ip-address
[ mask-length ] }

label-route-capability

By default, BGP cannot advertise
labeled routes to any IPv4 peer or

peer group.

19.

Configure the ASBR-PE to set

itself as the next hop of routes
advertised to the PE in the

local AS.

peer { group-name | ip-address
[ mask-length ] } next-hop-local

By default, BGP does not use its
address as the next hop of routes

advertised to an IBGP peer or peer
group.

20.

(Optional.) Apply a routing
policy to routes incoming from

or outgoing to a peer or peer
group.

peer { group-name | ip-address
[ mask-length ] } route-policy

route-policy-name { export |

import }

By default, no routing policy is
applied.

Configuring a routing policy on an ASBR-PE

A routing policy on an ASBR-PE does the following:

Assigns MPLS labels to routes received from the PEs in the local AS before advertising them to the
peer ASBR-PE.

Assigns new MPLS labels to labeled IPv4 routes advertised to PEs in the local AS.

Which IPv4 routes are assigned with MPLS labels depends on the routing policy. Only routes that meet

the criteria are assigned with labels. All other routes are still common IPv4 routes.
To configure a routing policy for inter-AS option C on an ASBR-PE:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Create a routing policy and

enter routing policy view.

route-policy route-policy-name
{ deny | permit } node
node-number

By default, no routing policy is
created.

3.

Match IPv4 routes carrying
labels.

if-match mpls-label

By default, no match criterion is
configured.

4.

Set labels for IPv4 routes.

apply mpls-label

By default, no apply clause is
configured.

Advertising