The peer ip-prefix export command configures a route filtering policy based on an IP address prefix list for a peer group.
The undo peer ip-prefix export command cancels the route filtering policy based on an IP address prefix list of a peer group.
By default, no route filtering policy based on an IP address prefix list is configured for a peer group.
Parameter | Description | Value |
---|---|---|
peerGroupName |
Specifies the name of a peer group. |
The name is a string of 1 to 47 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
ip-prefix-name |
specifies the name of an IP address prefix list. |
The name is a string of 1 to 169 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
export |
Applies a filtering policy to the routes to be advertised to a peer group. |
- |
Usage Scenario
The peer ip-prefix command can be used to configure a route filtering policy that is based on an IP prefix list to filter routes received or routes to be advertised, implementing route control.
Prerequisites
If the peer ip-prefix command specifies an IP prefix list that does not exist for a peer group, use the ip ip-prefix or ip ipv6-prefix command to create an IP prefix list.
Configuration Impact
If an IP prefix list is specified for a peer group, all the members of the peer group inherit the configuration.
After an IP prefix list is specified for a peer group, the peer or peers in the peer group filter the routes to be advertised to or received from other peers based on the IP prefix list. Only the routes that pass the filtering of the IP prefix list can be advertised or received.Precautions
If both this command and the peer route-filter command are run, the latest configuration overrides the previous one.
If the length of the filter name is less than or equal to six characters and the name matches the first six characters of export or import, When you run the undo command, the filter name cannot be entered. You only need to enter the keyword import or export.<HUAWEI> system-view [~HUAWEI] ip ip-prefix list1 permit 10.0.192.0 8 greater-equal 17 less-equal 18 [*HUAWEI] bgp 100 [*HUAWEI-bgp] group test internal [*HUAWEI-bgp] ipv4-family mdt [*HUAWEI-bgp-af-mdt] peer test enable [*HUAWEI-bgp-af-mdt] peer test ip-prefix list1 export