Chapter 29 BGP Configuration DGS-3610 Series Configuration Guide
29.17 Protocol Independent
Configuration
29.17.1 route-map Configuration
The BGP protocol applies the Route-map policy on a large scale. For the configuration of the
Route-map policy, refer to the Protocol Independent Configuration part in this manual.
29.17.2 Regular Expression Configuration
The regular expression is the formula to match the string according to a certain template.
The regular expression is used to evaluate the text data and return a true or false value. That
is to say, whether the expression can describe this data correctly.
29.17.2.1 Description of Control Characters for
Regular Expression
The BGP path attribute uses the regular expression. Here will briefly describe the use of the
special characters for the regular expression:
Match with any single character.
Match with none or any sequence of the strings.
Match with one or any sequence of the strings.
Match with none or one sign of strings.
Match with the start of strings.
Match with the end of strings.
Match with the comma, bracket, the start and end of
strings and blank.
Match with the single character within specified
scope.
29.17.2.2 Application Example of Regular Expression
At present, the equipment show ip bgp presents the content below:
DGS-3610# show ip bgp
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal
Origin codes: i - IGP, e - EGP, ? - incomplete
Status Network Next Hop Metric LocPrf Path
------ ------------------ --------------- -------- -------- -------------------
*> 211.21.21.0/24 110.110.110.10 0 1000 200 300
*> 211.21.23.0/24 110.110.110.10 0 1000 200 300
*> 211.21.25.0/24 110.110.110.10 0 1000 300