Label-Mode; Neighbor-Orf - Cisco ASR 9000 Series Routing Configuration Manual

Aggregation services router
Hide thumbs Also See for ASR 9000 Series:
Table of Contents

Advertisement

Implementing Routing Policy
The following example shows how to configure the route policy retainer and apply it to the retain route target
attach point. The route is accepted if the route contains route target extended communities 10:615, 10:6150,
and 15.15.15.15.15:15. All other non-matching routes are dropped.
extcommunity-set rt rtset1
0:615,
10:6150,
15.15.15.15.15:15
end-set
route-policy retainer
if extcommunity rt matches-any rtset1 then
pass
endif
end-policy
router bgp 2
address-family vpnv4 unicast
retain route-target route-policy retainer
.
.
.

Label-Mode

The label-mode attachpoint provides facility to choose label mode based on arbitrary match criteria such as
prefix value, community. This attach point is typically used to set the type of label mode to per-ce or per-vrf
or per-prefix based on deployment preferences. The attribute setting actions supported are for pass and drop.
This example shows label mode selection at VPNv4 AF (address family) level and at VRF IPv4 AF level:
route-policy set_label_mode
set label-mode per-prefix
end-policy
!
router bgp 100
address-family vpnv4 unicast
vrf all
label mode route-policy pass-all
!
!
vrf abc
rd 1:1
address-family ipv4 unicast
label mode route-policy set_label_mode
!
!
!
end

Neighbor-ORF

The neighbor-orf attach point provides the filtering of incoming BGP route updates using only prefix-based
matching. In addition to using this as an inbound filter, the prefixes and disposition (drop or pass) are sent to
upstream neighbors as an Outbound Route Filter (ORF) to allow them to perform filtering.
The following example shows how to configure a route policy orf-preset and apply it to the neighbor ORF
attach point. The prefix of the route is dropped if it matches any prefix specified in orf-preset (172.16.1.0/24,
172.16.5.0/24, 172.16.11.0/24). In addition to this inbound filtering, BGP also sends these prefix entries to
Cisco ASR 9000 Series Aggregation Services Router Routing Configuration Guide, Release 5.3.x
Attach Points
575

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents