D-Link DGS-6608 — руководство по команде ip as-path access-list для BGP [275/1106]

Превью страниц Страница 275 / 1106
D-Link DGS-6608 [275/1106] Ip as path access list
DGS-6600 Series Switch ip as-path access-list
CLI Reference Guide
265
ip as-path access-list
Use this command to define a BGP Autonomous System (AS) path access list.
Use the no form of this command to disable use of the access list.
ip as-path access-list ACCESS-LIST-NAME {permit | deny} REGEXP
no ip as-path access-list ACCESS-LIST-NAME
Default None.
Command Mode Global configuration.
Usage Guideline The named community access list is a filter based on regular expressions. If the
regular expression matches the specified string representing the AS path of the
route, then the permit or deny condition applies. Use this command to define the
BGP access list globally, use the neighbor filter-list command in the router
configuration mode to apply a specific access list.
Multiple commands can be applied to a list name.
Example This example shows how to define an AS path access list named “mylist” to deny
access to the neighbor with AS number 65535.
Verify the settings by entering the show ip as-path access-list command.
Syntax Description
ACCESS-LIST-NAME Specifies the name of the access list.
permit Permits access to matching conditions.
deny Denies access to matching conditions.
REGEXP Specifies a regular expression to match the BGP AS paths.
Switch(config)# ip as-path access-list mylist deny ^65535$
Switch(config)# ip as-path access-list mylist permit .*

Содержание

4839

Изучите, как использовать команду ip as-path access-list для определения фильтров BGP на основе регулярных выражений. Узнайте о синтаксисе и примерах применения.