An ASBR that also functions as a PE must store VPN instance information.
In inter-AS VPN Option B scenarios, if ASBRs also function as PEs, the ASBRs must manage VPN routes. Therefore, the ASBRs must have VPN instances configured.
Create a VPN instance and configure an RD and VPN target for the VPN instance.
(Optional) Configure the maximum number of routes allowed by the VPN instance IPv4 address family.
By default, there is no limit on the number of routes allowed by the VPN instance IPv4 address family. To prevent a large number of routes from being imported to a VPN instance, configure the maximum number of routes allowed by this VPN instance.
By default, there is no limit on the number of route prefixes allowed by the VPN instance IPv4 address family. To prevent a large number of route prefixes from being imported to a VPN instance, configure the maximum number of route prefixes allowed by this VPN instance.
By default, the system generates logs at an interval of 5s after the number of routes exceeds the limit. If the number of routes or prefixes in the VPN instance IPv4 address family reaches the maximum, the system will generate logs at intervals (defaulting to 5s). To prevent logs from being displayed frequently, adjust the interval of log generation.
(Optional) Configure an export or import routing policy for the VPN instance IPv4 address family.
In addition to using a VPN target to control VPN route sending and receiving, an export or import routing policy can be configured to better control VPN route sending and receiving. An import routing policy filters routes imported to the VPN instance IPv4 address family. An export routing policy filters routes before they are advertised to other peers.
Configuring either the maximum number of routes or route prefixes allowed by the VPN instance IPv4 address family is recommended.