Information Technology Reference
In-Depth Information
Example 10-8 Route Map Set Options (Continued)
local-preference BGP local preference path attribute
metric Metric value for destination routing protocol
metric-type Type of metric for destination routing protocol
origin BGP origin code
tag Tag value for destination routing protocol
traffic-index BGP traffic classification number for accounting
weight BGP weight for routing table
ag1.hstttx.(config-route-map)#set ip ?
default Set default information
df Set DF bit
next-hop Next hop address
precedence Set precedence field
qos-group Set QOS Group ID
tos Set type of service field
This section does not cover every combination or permutation of route maps but does provide
some examples to familiarize you with route maps. Besides examples shown in the Policy-
Based Routing (PBR) and Redistribution sections, two examples follow in this section.
Route Map Example 1
Example 10-9 shows a route map that modifies the BGP weight of any route originating in
AS 555 from neighbor 1.1.1.1.
Example 10-9 Route Map to Match as-path 1 and Set Weight to 200
router bgp 100
neighbor 1.1.1.1 remote-as 200
neighbor 1.1.1.1 route-map bgpwin in
!
ip as-path access-list 1 permit 555$_
!
route-map bgpwin permit 10
match as-path 1
set weight 200
!
route-map bgpwin permit 20
Route Map Example 2
Example 10-10 shows a route map that uses access list 50 to filter the networks that are
redistributed into EIGRP from RIP, except networks 3.0.0.0 and 4.0.0.0. The implicit deny
discards all routes that don't meet the criteria in the first route map statement.
Search WWH ::




Custom Search