Thursday, October 13, 2011

notes: BGP Route Maps

- Default statement is "permit".
- Default sequence number is 10 and the default increment is 5.
- If route is not matched by any statements it is dropped.
- 'Permit all' is achieved by specifying a "permit" without "match" clause.
- Match conditions in one statement are AND'd together.

configuration set:

route-map RMAP permit 45
match ip address prefix-list LIST - Allowes only matched routes
!
router bgp 1
neighbor 10.1.1.1 route-map RMAP in - Prefixes not permitted by the route-map are discarded


MATCH criteria:
- Network number and subnet matched with an IP-prefix list
- Route originator
- BGP next-hop address
- BGP origin
- Tag attached to IGP route
- AS-path
- BGP community attached to BGP route.
- IGP route type (internal/external)

SET options:
- Origin
- BGP community
- BGP next-hop
- Local preference
- Weight
- MED

Route-map policy-list
- Adds the capability for a network operator to group route-map match clauses into named lists called policy-lists.
- Policy lists with groups of match clauses can be pre-configured and then referenced within different route maps.
- Eliminates the need to manually reconfigure each recurring group of match clauses that occur in different route-maps.


Route-map continue feature
- Introduces the continue clause to BGP route-map configuration, providing more programmable policy configuration and route filtering.
- Configures a route-map to go to another route-map entry with a higher sequence number.
- The continue clause will be executed if the route-map entry does not contain a match clause.


command set for continue feature:

route-map MYNAME permit 10
match ip add 1
set as-path prepend 2001
continue 30

route-map MYNAME permit 20
match next-hop 10.1.2.3
set local pref 150

route-map MYNAME permit 30
set as-path prepend 2001 2001

commands:

- Displays the policy list/s

sh ip policy-list {name22} 

- Creates the policy list

ip policy-list {name22} {permit | deny}

- Configured the route-map to reference the policy-list
- Executes various set functions

route-map {name} [permit|deny] {seq_no}
match policy-list {name22}
set {parameter}

No comments:

Post a Comment