Regular expression - AS-PATH filtering for BGP

xiaoxiao2021-03-05  32

Match any single character, including space * matching zero or multiple modes matching one or more modes? Match zero or multiple modes ^ Match the start of the character $ Match the end of the character _ match the comma, left brace, right braces, left parentheses, right parentheses

Example: C * The appearance of any plurality of C * matching line, including CAs that do not appear in the CC match line of one or more character c? b Match CB or CAB

[AA] Match a single character A or A, [1-35-7] match a single character ^ [bb] of 1, 2, 3, 4, 5, 6, 7 matches the row started with B or B [2 -5] $ matches the end of 2, 3, 4, and 5. The meanings in square brackets (^) for reverse characters [^ 1-3] Match characters 0 and 4-9 routing meaning ^ $ route from the origin of the AS ^ 2_ All from directly connected to AS 2 Neighboring Routing ^ 2 $ The neighbor routing from AS2 _3_ routing contains AS 3 {1 2} Using AS-PATH Options Polymeric route, from AS 1 and AS 2 to form a polymerization (65530) and peer Form Alliance, the peer in AS 65530

The format of the AS-PATH path filter is: IP as-path access-list <#> permit IP as-path access-list <#> deny

转载请注明原文地址:https://www.9cbs.com/read-35705.html

New Post(0)