HP 6125G HP 6125G & 6125G/XG Blade Switches Layer 3 - IP Routing Comma - Page 361
ip as-path, ip community-list
View all HP 6125G manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 361 highlights
[Sysname] route-policy policy1 permit node 10 [Sysname-route-policy] if-match tag 8 ip as-path Syntax ip as-path as-path-number { deny | permit } regular-expression View undo ip as-path as-path-number System view Default level 2: System level Parameters as-path-number: AS path list number, in the range of 1 to 256. deny: Specifies the match mode for the AS path list as deny. permit: Specifies the match mode for the AS path list as permit. regular-expression: AS_PATH regular expression, a string of 1 to 50 characters. BGP routing updates contain the AS_PATH attribute field that identifies the autonomous systems through which the routing information has passed. An AS-PATH regular expression, for example, ^200. *100$, matches the AS path attribute that starts with AS200 and ends with AS100. For the meanings of special characters used in regular expressions, see Fundamentals Configuration Guide. Description Use ip as-path to create an AS path list. Use undo ip as-path to remove an AS path list. No AS path list is created by default. Examples # Create AS path list 1, permitting routing information whose AS_PATH attribute starts with 10. system-view [Sysname] ip as-path 1 permit ^10 ip community-list Syntax ip community-list { basic-comm-list-num | basic comm-list-name } { deny | permit } [ community-number-list ] [ internet | no-advertise | no-export | no-export-subconfed ] * undo ip community-list { basic-comm-list-num | basic comm-list-name } [ deny | permit ] [ community-number-list ] [ internet | no-advertise | no-export | no-export-subconfed ] * ip community-list { adv-comm-list-num | advanced comm-list-name } { deny | permit } regular-expression undo ip community-list { adv-comm-list-num | advanced comm-list-name } [ deny | permit ] [ regular-expression ] 350