To enable communication between VMs on different subnets, configure a VPN instance for route leaking with an EVPN instance. This configuration enables Layer 3 connectivity. To isolate multiple tenants, you can use different VPN instances.
The system view is displayed.
A VPN instance is created, and the VPN instance view is displayed.
A VNI is created and associated with the VPN instance.
The VPN instance IPv4 address family is enabled, and its view is displayed.
An RD is configured for the VPN instance IPv4 address family.
VPN targets are configured for the VPN instance IPv4 address family.
If the current node needs to exchange L3VPN routes with other nodes in the same VPN instance, perform this step to configure VPN targets for the VPN instance.
The VPN target extended community attribute for EVPN routes is configured for the VPN instance IPv4 address family.
When the local device advertises an EVPN IP prefix route to a peer, the route carries all the VPN targets in the export VPN target list configured for EVPN routes in this step. When the local device advertises an EVPN IRB route to a peer, the route carries all the VPN targets in the export VPN target list of the EVPN instance in BD mode.
The IRB route or IP prefix route received by the local device can be added to the routing table of the local VPN instance IPv4 address family only when the VPN targets carried in the IRB route or IP prefix route overlap those in the import VPN target list configured for EVPN routes in this step.
The VPN instance IPv4 address family is associated with an import route-policy that is used to filter EVPN routes imported to the VPN instance IPv4 address family.
To control import of EVPN routes to the VPN instance IPv4 address family more precisely, perform this step to associate the VPN instance IPv4 address family with an import route-policy and set attributes for eligible EVPN routes.
The VPN instance IPv4 address family is associated with an export route-policy that is used to filter EVPN routes advertised by the VPN instance IPv4 address family.
To control EVPN route advertisement by the VPN instance IPv4 address family more precisely, perform this step to associate the VPN instance IPv4 address family with an export route-policy and set attributes for eligible EVPN routes.
Exit the VPN instance IPv4 address family view.
Exit the VPN instance view.
The configuration is committed.
The system view is displayed.
A VPN instance is created, and its view is displayed.
A VNI is created and associated with the VPN instance.
The VPN instance IPv6 address family is enabled and its view is displayed.
An RD is configured for the VPN instance IPv6 address family.
VPN targets are configured for the VPN instance IPv6 address family.
If the current node needs to exchange L3VPN routes with other nodes in the same VPN instance, perform this step to configure VPN targets for the VPN instance.
The VPN target extended community attribute for EVPN routes is configured for the VPN instance IPv6 address family.
When the local device advertises an EVPN IPv6 prefix route to a peer, the route carries all the VPN targets in the export VPN target list configured for EVPN routes in this step. When the local device advertises an EVPN IRBv6 route to a peer, the route carries all the VPN targets in the export VPN target list of the EVPN instance in BD mode.
The IRBv6 route or IPv6 prefix route received by the local device can be added to the routing table of the local VPN instance IPv6 address family only when the VPN targets carried in the IRBv6 route or IPv6 prefix route overlap those in the import VPN target list configured for EVPN routes in this step.
The VPN instance IPv6 address family is associated with an import route-policy that is used to filter EVPN routes imported to the VPN instance IPv6 address family.
To control import of EVPN routes to the VPN instance IPv6 address family more precisely, perform this step to associate the VPN instance IPv6 address family with an import route-policy and set attributes for eligible EVPN routes.
The VPN instance IPv6 address family is associated with an export route-policy that is used to filter EVPN routes advertised by the VPN instance IPv6 address family.
To control EVPN route advertisement by the VPN instance IPv6 address family more precisely, perform this step to associate the VPN instance IPv6 address family with an export route-policy and set attributes for eligible EVPN routes.
Exit the VPN instance IPv6 address family view.
Exit the VPN instance view.
The configuration is committed.