Netgear M6100 – Campus Edge and SMB Core Chassis Switches 管理者ガイド

ページ / 721
BGP 
194
Managed Switches 
This example does not include the steps for how to create an eBGP session. See 
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 
question 
mark
?
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.)
a?c matches ac and abc
underscore
_
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.
T
he characters _1300_ can match any 
of the following strings:
^1300$
^1300space
space1300
{1300,
,1300,
{1300}
,1300,
Table 1.  Special characters supported in AS_PATH regular expressions  (continued)