...
The set routing prefix-list ipv4 command configures a standard community list to match a specific community number attribute. Community-list is a named list of regular expressions. They are used to match the community number attributes in the routes for inclusion in, or exclusion from route policies. list command creates an IPv4 prefix list or an entry in an IPv4 prefix list.
The delete routing prefix-list ipv4 command removes the standard community list configurationlist command deletes an IPv4 prefix list or an entry from an IPv4 prefix list.
Command Syntax
set routing prefix-list list {ipv4-family <ipipv4-prefix-name> description <wildcard>delete routing community-list standard <community-list-name>| ipv6-family <ipv6-prefix-name>} [seq <sequence-number>] {deny|permit} [local-AS|no-advertise|no-export|internet|<community>] {prefix <ipv4/prefixlen> [ge <greater-equal-value>] [le <less-equal-value>] | prefix-any}
delete routing prefix-list {ipv4-family <ipv4-prefix-name> | ipv6-family <ipv6-prefix-name>} [seq <sequence-number>]deny|permit} {prefix <ipv4/prefixlen> [ge <greater-equal-value>] [le <less-equal-value>] | prefix-any}
Parameter
...
Parameter | Description |
<ip4-prefix-name> | Specifies the name of an IPv4 prefix list. |
<ip6-prefix-name> | Specifies the name of |
an IPv6 prefix list. | |
seq <sequence-number> | Optional. Specifies the sequence number of an entry in the IPv4 prefix list. The value is an integer that ranges from 1 to 4294967295. |
{deny|permit} | Specifies whether the route is available for further processing when there is a match. The value could be deny or permit. |
{local-AS|no-advertise|no-export|internet|<community-numer>}
Optional. Specifies BGP community type, it can be one of following BGP communities:
- local-AS: a BGP community that restricts routes to your confederation’s sub-AS.
- no-advertise: a BGP community that is not advertised to anyone.
- no-export: a BGP community that is not advertised to the eBGP peer.
- internet: a BGP community that matches all routes.
- <community-numer>: specifies the communities value.
Usage Guidelines
The BGP community list can be either standard or expanded. The standard BGP community list is a pair of values (such as 100:100) that can be tagged on a specific prefix and advertised to other neighbors or applied on route
ingress.
Example
| |
{prefix <ipv4/prefixlen> | prefix-any} | Specifies an IP address/prefix length or all addresses. The value of prefix length is an integer that ranges from 0 to 32. When prefix-any is specified, it creates a prefix-list that matches all addresses. |
ge <greater-equal-value> | Optional. Specifies the lower threshold of the mask length. It can be used when an IP address/prefix length is specified. If ge greater-equal-value and le less-equal-value are not specified, the value of mask-length is the mask length. greater-equal-value must meet the following requirement: prefixlen ≤ greater-equal-value ≤ less-equal-value ≤ 32. If only ge is configured, the mask ranges from greater-equal-value to 32. |
le <less-equal-value> | Optional. Specifies the upper threshold of the mask length. It can be used when an IP address/prefix length is specified. If ge greater-equal-value and le less-equal-value are not specified, the value of mask-length is the mask length. less-equal-value must meet the following requirement: prefixlen ≤ greater-equal-value ≤ less-equal-value ≤ 32. If only le is configured, the mask ranges from prefixlen to less-equal-value. |
Example
Configure the IP prefix list named p1 to permit only the routes with the mask length ranging from 8 to 16 on the network segment 35.0.0.0/8.
Code Block |
---|
admin@Xorplus# set routing communityprefix-list standard COMMUNITY1 permit 100:100 ipv4-family p1 seq 1 permit prefix 35.0.0.0/8 ge 16 admin@Xorplus# commit |