
Chapter 29
| IP Routing Commands
Policy-based Routing for BGP
– 991 –
Policy-based Routing for BGP
This section describes commands used to configure policy-based routing (PBR)
maps for Border Gateway Protocol (BGP).
Policy-based routing is performed before regular routing. PBR inspects traffic on
the interface where the policy is applied and then, based on the policy, makes
some decision. First, the traffic is “matched” according to the policy. Second, for
each match, there is something “set.” What is set could be that the traffic matches
must exit out a different interface, or the traffic could be given a higher priority, or it
could choose to just drop that traffic.
Matching of the traffic is usually done with an ACL (access-control list) that is
referenced by a route-map. In the route-map, if there is a “match” for the traffic
defined in that ACL, then a “set” defines what the administrator wants to happen to
that traffic (prioritize it, route it differently, drop it, or other actions). Policies can be
based on IP address, port numbers, protocols, or size of packets.
If matching criteria is found and the specified action is to permit the packet, then it
will be forwarded to the next hop based on policy-based routing. If the action is to
deny the packet, normal unicast routing is used to determine the packet’s next hop,
instead of using policy-based routing. If no matching criteria are found in the route
map, normal unicast routing is used to determine the packet’s next hop. Although
route redistribution is protocol-independent, some of the route-map match and set
commands defined in this section are specific to BGP.
Like matches in the same route map subblock are filtered with “or” semantics. If any
one match clause is matched in the entire route map subblock, this match is
treated as a successful match. Dissimilar match clauses are filtered with “and”
semantics. If the first set of conditions is not met, the second match clause is
filtered. This process continues until a match occurs or there are no more match
clauses.
A route map can have several sequences. A route that does not match at least one
match command defined in a route-map will be ignored; that is, the route will not
be advertised for outbound route maps nor accepted for inbound route maps.
Table 192: Policy-based Routing Configuration Commands
Command
Function
Mode
Enters route-map configuration mode, allowing route
maps to be created or modified
GC
Jumps to another route map after match and set
commands are executed
RM
Goes to a route-map entry with a higher sequence number
after a successful match occurs
RM
Creates a description of an entry in the route map
RM
Sets an AS path access list to match
RM
Sets a BGP community access list to match
RM
Sets a BGP extended community access list to match
RM
Содержание AS5700-54X
Страница 42: ...Contents 42...
Страница 44: ...Figures 44...
Страница 52: ...Tables 52...
Страница 54: ...Section I Getting Started 54...
Страница 80: ...Chapter 1 Initial Switch Configuration Setting the System Clock 80...
Страница 210: ...Chapter 6 Remote Monitoring Commands 210...
Страница 358: ...Chapter 9 Access Control Lists ACL Information 358...
Страница 418: ...Chapter 12 Port Mirroring Commands RSPAN Mirroring Commands 418...
Страница 436: ...Chapter 15 UniDirectional Link Detection Commands 436...
Страница 442: ...Chapter 16 Address Table Commands 442...
Страница 506: ...Chapter 18 VLAN Commands Configuring VXLAN Tunneling 506...
Страница 526: ...Chapter 19 Class of Service Commands Priority Commands Layer 3 and 4 526...
Страница 544: ...Chapter 20 Quality of Service Commands 544...
Страница 652: ...Chapter 22 Multicast Filtering Commands MLD Proxy Routing 652...
Страница 680: ...Chapter 23 LLDP Commands 680...
Страница 722: ...Chapter 24 CFM Commands Delay Measure Operations 722...
Страница 732: ...Chapter 25 Domain Name Service Commands 732...
Страница 790: ...Chapter 27 IP Interface Commands ND Snooping 790...
Страница 1072: ...Section III Appendices 1072...
Страница 1090: ...Glossary 1090 XModem A protocol used to transfer files between devices Data is grouped in 128 byte blocks and error corrected...
Страница 1102: ...List of CLI Commands 1102...
Страница 1115: ......
Страница 1116: ...AS5700 54X AS6700 32X E032016 ST R02 149100000198A...