permit
Configure a filter to forward routes that match the route's COMMUNITY attribute.
E-Series
Syntax
permit {community-number | local-AS | no-advertise | no-export
| quote-regexp regular-expressions-list | regexp regular-
expression}
Parameters
community-
number
local-AS
no-advertise
no-export
regexp
expression
Enter the community number in AA:NN format where AA is the AS
number (2 bytes) and NN is a value specific to that autonomous
system.
Enter the keywords local-AS to drop all routes with the
COMMUNITY attribute of NO_EXPORT_SUBCONFED.
All routes with the NO_EXPORT_SUBCONFED (0xFFFFFF03)
community attribute must not be advertised to external BGP peers.
Enter the keywords no-advertise to drop all routes containing
the well-known community attribute of NO_ADVERTISE.
All routes with the NO_ADVERTISE (0xFFFFFF02) community attribute
must not be advertised to other BGP peers.
Enter the keywords no-export to drop all routes containing the
well-known community attribute of NO_EXPORT.
All routes with the NO_EXPORT (0xFFFFFF01) community attribute
must not be advertised outside a BGP confederation boundary.
regular-
Enter the keyword regexp and then enter a regular expression.
Use one or a combination of the following:
•
. = (period) matches on any single character, including white
space.
•
* = (asterisk) matches on sequences in a pattern (zero or
more sequences).
•
+ = (plus sign) matches on sequences in a pattern (one or
more sequences).
•
? = (question mark) matches sequences in a pattern (0 or 1
sequences).
•
[ ] = (brackets) matches a range of single-character
patterns.
•
^ = (caret) matches the beginning of the input string. (If you
use the caret at the beginning of a sequence or range, it
matches on everything BUT the characters specified.)
•
$ = (dollar sign) matches the end of the output string.
NOTE: You must enter an escape sequence (CNTL+v)
prior to entering the ? regular expression.
309