Route advertisement can be configured on DC-GWs to allow the DC-GWs to construct their own forwarding entries based on the received EVPN or BGP routes.
The system view is displayed.
The loopback interface view is displayed.
The loopback interface is bound to an L3VPN instance.
IPv6 is enabled on the loopback interface. This step is mandatory when the loopback interface is configured with an IPv6 address.
To configure an IPv4 address for the loopback interface, run the ip address ip-address { mask | mask-length } command.
To configure an IPv6 address for the loopback interface, run the ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length } command.
Exit from the loopback interface view.
To create a default static VPN IPv4 route, run the ip route-static vpn-instance vpn-instance-name 0.0.0.0 { 0.0.0.0 | 0 } { nexthop-address | interface-type interface-number [ nexthop-address ] } [ tag tag ] command.
To create a default static VPN IPv6 route, run the ip route-static vpn-instance vpn-instance-name :: 0 { nexthop-ipv6–address | interface-type interface-number [ nexthop-ipv6-address ] } [ tag tag ] command.
The VPN instance view is displayed.
To enter the IPv4 address family view of the VPN instance, run the ipv4-family command.
To enter the IPv6 address family view of the VPN instance, run the ipv6-family command.
The L3VPN instance is bound to an export route-policy. This route-policy is used to filter the routes advertised to the EVPN instance from the L3VPN instance so that the L3VPN instance advertises only the default static VPN routes and VPN loopback routes to the EVPN instance.
Exit from the IPv4 or IPv6 address family view of the VPN instance.
Exit from the VPN instance view.
The BGP view is displayed.
The BGP-EVPN address family view is displayed.
The route-policy is used to prohibit DC-GWs from advertising mobile phone routes to each other.
Exit from the BGP-EVPN address family view.
To enter the IPv4 address family view of a BGP-VPN instance, run the ipv4-family vpn-instance vpn-instance-name command.
To enter the IPv6 address family view of a BGP-VPN instance, run the ipv6-family vpn-instance vpn-instance-name command.
VPN loopback routes are imported to the IPv4 or IPv6 address family of the BGP-VPN instance.
Default static VPN routes are imported to the IPv4 or IPv6 address family of the BGP-VPN instance.
The function to advertise IP routes from the VPN instance to the EVPN instance is enabled.
Exit from the IPv4 or IPv6 address family view of the BGP-VPN instance.
Exit from the BGP view.
A route-policy that denies all routes is created.
Exit from the route-policy view.
The BGP view is displayed.
To enter the IPv4 address family view of a BGP-VPN instance, run the ipv4-family vpn-instance vpn-instance-name command.
To enter the IPv6 address family view of a BGP-VPN instance, run the ipv6-family vpn-instance vpn-instance-name command.
A BGP VPN peer relationship is established.
The source interface and source IP address are specified for the TCP connection to be set up between BGP peers.
The route-policy is applied so that DC-GWs do not advertise BGP VPN routes to VNFs. This prevents route loops.
Exit from the IPv4 or IPv6 address family view of the BGP-VPN instance.
The VBDIF interface view is displayed.
The distributed gateway function is enabled.
To allow DC-GWs to generate ARP entries for Layer 2 forwarding based on the ARP information in EVPN routes, run the arp generate-rd-table enable command.
To allow DC-GWs to generate ND entries for Layer 2 forwarding based on the ND information in EVPN routes, run the ipv6 nd generate-rd-table enable command.
Duplicate address detection (DAD) is prohibited. This command is mandatory in IPv6 scenarios to prevent service interruptions occurred because the system detects that the IPv6 address of another device is the same as the VBDIF interface's IP address.
Exit from the VBDIF interface view.
The BGP view is displayed.
To enter the IPv4 address family view of a BGP-VPN instance, run the ipv4-family vpn-instance vpn-instance-name command.
To enter the IPv6 address family view of a BGP-VPN instance, run the ipv6-family vpn-instance vpn-instance-name command.
The asymmetric mode is enabled for IRB routes.
Exit from the IPv4 or IPv6 address family view of the BGP-VPN instance.
The configuration is committed.