The import route-filter command associates the current VPN instance IPv4 address family with an import route-filter.
The undo import route-filter command disassociates the current VPN instance IPv4 address family from an import route-filter.
By default, the current VPN instance IPv4 address family is not associated with any import route-filter.
Parameter | Description | Value |
---|---|---|
route-filter-name |
Specifies the name of the import route-filter to be associated with a VPN instance IPv4 address family. |
The name is a string of 1 to 200 case-sensitive characters, with spaces not supported. When double quotation marks are used around the string, spaces are allowed in the string. |
Usage Scenario
If no import route-filter is configured, routes can only be filtered based on export VPN targets. The routes whose export VPN targets match the import VPN target of the local VPN instance IPv4 address family are added to the VPN instance IPv4 address family. To control the import of the routes into the VPN instance IPv4 address family more precisely, use the import route-filter. The import route-filter is used to filter the imported routing information and to set the routing attributes of the routes that pass the filtering.
The import route-filter command controls the VPN routes that are added to a VPN instance IPv4 address family. The peer route-filter command run in the BGP VPN instance IPv4 address family view filters routes of a VPN instance IPv4 address family advertised to or received from CE neighbors.Configuration Impact
The current VPN instance IPv4 address family can be associated with only one import route-filter. If the import route-filter command is run more than once, the latest configuration overrides the previous one.
Follow-up Procedure
If the import route-filter to be associated with a VPN instance IPv4 address family does not exist, configure the import route-filter.
<HUAWEI> system-view [~HUAWEI] ip vpn-instance vrf1 [*HUAWEI-vpn-instance-vrf1] ipv4-family [*HUAWEI-vpn-instance-vrf1-af-ipv4] route-distinguisher 100:1 [*HUAWEI-vpn-instance-vrf1-af-ipv4] import route-filter filter1