Table 1. Special characters supported in AS_PATH regular expressions (continued)
question
?
mark
underscore
_
This example does not include the steps for how to create an eBGP session. See
Create eBGP on Switches A and D
Switch A is denied to all of the routes in which AS_PATH contains only 200 and permits
others.
(Netgear Switch)(Config) #ip as-path access-list 1 deny ^200$
(Netgear Switch)(Config) #ip as-path access-list 1 permit .*
(Netgear Switch) (Config-router) #neighbor 172.126.1.2 filter-list 1 in
Example 7: Filter Routes with Route Maps
You can implement route filters with BGP route maps. BGP route maps are separated by
PBR route maps. BGP route maps support the following filter list:
•
as-path
•
community
•
ip address prefix-list
•
ipv6 address prefix-list
This example shows how to filter BGP routes with AS-PATH list.
This example does not include the steps for how to create an eBGP session. See
Create eBGP on Switches A and D
Managed Switches
Matches 0 or 1 occurrences of the
pattern. (Press Ctrl-V prior to
pressing question mark to prevent it
from being interpreted as a help
command.)
Matches a comma (,), left brace ({),
right brace (}), left parenthesis, right
parenthesis, the beginning of the
input string, the end of the input
string, or a space.
on page 184 for the eBGP session configuration.
on page 184 for the eBGP session configuration.
BGP
194
a?c matches ac and abc
he characters _1300_ can match any
T
of the following strings:
^1300$
^1300space
space1300
{1300,
,1300,
{1300}
,1300,
Example 2:
Example 2: