Configures the match criteria associated with this deny or permit BGP route map
match [as-path|community|extcommunity|ip-address|ip-next-hop|ip-route-source|metric|origin|tag]
match [as-path <AS-PATH-LIST-NAME>|community <COMMUNITY-LIST-NAME> {exact-match}| extcommunity <EXTCOMMUNITY-LIST-NAME>]
match [ip-address|ip-next-hop|ip-route-source] [BGP-IP-ACCESS-LIST <BGP-ACL-NAME>|prefix-list <PREFIX-LIST-NAME>]
match metric <0-4294967295>
match origin [egp|igp|incomplete]
match tag <0-65535>
match [as-path <AS-PATH-LIST-NAME>|community <COMMUNITY-LIST-NAME> {exact-match}| extcommunity <EXTCOMMUNITY-LIST-NAME>]
as-path <AS-PATH-LIST-NAME> | Configures a BGP AS path list to match An AS path is a
list of ASs a packet traverses to reach its destination.
|
community <COMMUNITY-LIST-NAME> {exact-match} | Configures the AS community list string to match
|
extcommunity <EXTCOMMUNITY-LIST-NAME> | Configures the external community list string to
match
|
match [ip-address|ip-next-hop|ip-route-source] [BGP-IP-ACCESS-LIST <BGP-ACL-NAME>| prefix-list <PREFIX-LIST-NAME>]
match | Configures match criteria used to filter BGP routes when forwarding packets |
ip-address [BGP-IP-ACCESS-LIST <BGP-ACL-NAME>| prefix-list <PREFIX-LIST-NAME>] | Configures a string of IP addresses, in the route, to match The IP Address is
a list of IP addresses in the route used to filter the route. Use one of the
following options to provide a list of IP addresses:
|
ip-next-hop [BGP-IP-ACCESS-LIST <BGP-ACL-NAME>| prefix-list <PREFIX-LIST-NAME>] | Configures the next-hop‘s IP address to match The IP Next Hop is a list of IP
addresses used to filter routes based on the IP address of the next-hop in the
route. Use one of the following options to provide next-hop‘s IP addresses:
|
ip-route-source [BGP-IP-ACCESS-LIST <BGP-ACL-NAME>| prefix-list <PREFIX-LIST-NAME>] |
Configures the advertised route source IP address to match The IP Route Source is a list of IP addresses used to filter routes based on the
advertised IP address of the source. Use one of the following options to provide
route-source IP addresses:
|
match metric <0-4294967295>
match metric <0-4294967295> | Defines the exterior metric, used for route map distribution, to match BGP
uses a route table managed by the external metric defined. Setting a metric
provides a dynamic way to load balance between routes of equal cost.
|
match origin [egp|igp|incomplete]
match origin [egp|igp|incomplete] | Configures the source of the BGP route to match. Options include:
|
match tag <0-65535>
match tag <0-65535> | Configures the BGP route tag to match The Tag is a way to preserve a route‘s
AS path information for routers in iBGP. This option is disabled by default.
|
The following examples show the configuration of match criteria for the deny route-map rule 1:
nx9500-6C8809(config-dr-route-map-test-dr-route-map-rule-1)#match as-path Filter List_01
nx9500-6C8809(config-dr-route-map-test-dr-route-map-rule-1)#match ip-route-source prefix-list PrefixList_01
nx9500-6C8809(config-dr-route-map-test-dr-route-map-rule-1)#show context deny route-map 1 description "This is a deny route map rule" match as-path FilterList_01 match ip-route-source prefix-list PrefixList_01 nx9500-6C8809(config-dr-route-map-test-dr-route-map-rule-1)#
nx9500-6C8809(config-dr-route-map-test)#permit route-map 2
nx9500-6C8809(config-dr-route-map-test-dr-route-map-rule-2)#match ip-next-hop DL_01
nx9500-6C8809(config-dr-route-map-test-dr-route-map-rule-2)#show context permit route-map 2 match ip-next-hop DL_01 nx9500-6C8809(config-dr-route-map-test-dr-route-map-rule-2)#
nx9500-6C8809(config-dr-route-map-test)#show context route-map test deny route-map 1 description "This is a deny route map rule" match as-path FilterList_01 match ip-route-source prefix-list PrefixList_01 permit route-map 2 match ip-next-hop DL_01 nx9500-6C8809(config-dr-route-map-test)#
no (bgp-route-map) | Removes match criteria associated with a deny or permit route-map rule |