paul | 718e374 | 2002-12-13 20:15:29 +0000 | [diff] [blame] | 1 | @node Route Map, IPv6 Support, Filtering, Top |
| 2 | @comment node-name, next, previous, up |
| 3 | @chapter Route Map |
| 4 | |
| 5 | Route map is a very useful function in zebra. There is a match and set |
| 6 | statement permitted in a route map. |
| 7 | |
| 8 | @example |
| 9 | @group |
| 10 | route-map test permit 10 |
| 11 | match ip address 10 |
| 12 | set local-preference 200 |
| 13 | @end group |
| 14 | @end example |
| 15 | |
| 16 | This means that if a route matches ip access-list number 10 it's |
| 17 | local-preference value is set to 200. |
| 18 | |
| 19 | @menu |
| 20 | * Route Map Command:: |
| 21 | * Route Map Match Command:: |
| 22 | * Route Map Set Command:: |
| 23 | @end menu |
| 24 | |
| 25 | @node Route Map Command, Route Map Match Command, Route Map, Route Map |
| 26 | @comment node-name, next, previous, up |
| 27 | @subsection Route Map Command |
| 28 | |
| 29 | @deffn {Command} {route-map @var{route-map-name} permit @var{priority}} {} |
| 30 | @end deffn |
| 31 | |
| 32 | @node Route Map Match Command, Route Map Set Command, Route Map Command, Route Map |
| 33 | @comment node-name, next, previous, up |
| 34 | @subsection Route Map Match Command |
| 35 | |
| 36 | @deffn {Route-map Command} {match ip address @var{access_list}} {} |
| 37 | Matches the specified @var{access_list} |
| 38 | @end deffn |
| 39 | |
| 40 | @deffn {Route-map Command} {match ip next-hop @var{ipv4_addr}} {} |
| 41 | Matches the specified @var{ipv4_addr}. |
| 42 | @end deffn |
| 43 | |
| 44 | @deffn {Route-map Command} {match aspath @var{as_path}} {} |
| 45 | Matches the specified @var{as_path}. |
| 46 | @end deffn |
| 47 | |
| 48 | @deffn {Route-map Command} {match metric @var{metric}} {} |
| 49 | Matches the specified @var{metric}. |
| 50 | @end deffn |
| 51 | |
| 52 | @deffn {Route-map Command} {match community @var{community_list}} {} |
| 53 | Matches the specified @var{community_list} |
| 54 | @end deffn |
| 55 | |
| 56 | @node Route Map Set Command, , Route Map Match Command, Route Map |
| 57 | @comment node-name, next, previous, up |
| 58 | @subsection Route Map Set Command |
| 59 | |
| 60 | @deffn {Route-map Command} {set ip next-hop @var{ipv4_address}} {} |
| 61 | Set the BGP nexthop address. |
| 62 | @end deffn |
| 63 | |
| 64 | @deffn {Route-map Command} {set local-preference @var{local_pref}} {} |
| 65 | Set the BGP local preference. |
| 66 | @end deffn |
| 67 | |
| 68 | @deffn {Route-map Command} {set weight @var{weight}} {} |
| 69 | Set the route's weight. |
| 70 | @end deffn |
| 71 | |
| 72 | @deffn {Route-map Command} {set metric @var{metric}} {} |
| 73 | Set the BGP attribute MED. |
| 74 | @end deffn |
| 75 | |
| 76 | @deffn {Route-map Command} {set as-path prepend @var{as_path}} {} |
| 77 | Set the BGP AS path to prepend. |
| 78 | @end deffn |
| 79 | |
| 80 | @deffn {Route-map Command} {set community @var{community}} {} |
| 81 | Set the BGP community attribute. |
| 82 | @end deffn |
| 83 | |
| 84 | @deffn {Route-map Command} {set ipv6 next-hop global @var{ipv6_address}} {} |
| 85 | Set the BGP-4+ global IPv6 nexthop address. |
| 86 | @end deffn |
| 87 | |
| 88 | @deffn {Route-map Command} {set ipv6 next-hop local @var{ipv6_address}} {} |
| 89 | Set the BGP-4+ link local IPv6 nexthop address. |
| 90 | @end deffn |
| 91 | |