How to config route leak between vpn-instance for H3C S6850
Diagram
Requirement
Some of VRF (VPN-Instance) routes leak on other vendor
Arista: https://www.arista.com/en/um-eos/eos-inter-vrf-local-route-leaking
Configuring the public instance
About this task
Configure the public instance to enable the mutual access between public network and private network users.
Restrictions and guidelines
In an MPLS L3VPN network, for the public network and the VPN network to communicate with each other through route target matching, perform the following tasks:
· Configure matching route targets for the public instance and VPN instance.
· Use
the
Procedure
system-view
ip public-instance
route-distinguisher route-distinguisher
By default, no RD is configured for the public instance.
vpn-target vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ]
By default, no route target is configured for the public instance.
address-family ipv4
vpn-target vpn-target&<1-8> [ both | export-extcommunity | import-extcommunity ]
By default, no route target is configured for the IPv4 address family of the public instance.
import
route-policy
By default, all routes matching the import target attribute are accepted.
export
route-policy
By default, routes to be advertised are not filtered.
Configuring route replication between public/VPN instances
About this task
In a BGP/MPLS L3VPN network, only VPN instances that have matching route targets can communicate with each other.
The route replication feature provides the following functions:
· Enables a VPN instance to communicate with the public network or other VPN instances by replicating routes from the public instance or other VPN instances.
· Enables the public network to communicate with a VPN instance by replicating routes from the VPN instance to the public instance.
In an intelligent traffic control network, traffic of different tenants is assigned to different VPNs. To enable the tenants to communicate with the public network, configure this feature to replicate routes from the public instance to the VPN instances.
VLINK direct routes are generated based on
ARP entries learned by interfaces. The route-replicate from vpn-instance protocol direct and route-replicate
from
Configuring a VPN instance to replicate routes from the public instance or another VPN instance
system-view
ip vpn-instance vpn-instance-name
address-family ipv4
route-replicate
from
By default, a VPN instance cannot replicate routes from the public instance or other VPN instances.
Replicating routes from a VPN instance to the public instance
system-view
ip public-instance
address-family ipv4
route-replicate
from
By default, the public instance cannot replicate routes from VPN instances.