After route advertisement is configured on a DC-GW, the DC-GW can construct its own forwarding entries based on received EVPN or BGP routes.
The system view is displayed.
The loopback interface view is displayed.
An L3VPN instance is bound to the loopback interface.
IPv6 is enabled on the interface. This step is mandatory if the interface requires an IPv6 address.
Run ip address ip-address { mask | mask-length }
An IPv4 address is configured for the interface.
Run ipv6 address { ipv6-address prefix-length | ipv6-address/prefix-length }
An IPv6 address is configured for the interface.
Exit from the loopback interface view.
Run 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 ]
A default IPv4 static route is created for the VPN instance.
Run ipv6 route-static vpn-instance vpn-instance-name :: 0 { nexthop-ipv6–address | interface-type interface-number [ nexthop-ipv6-address ] } [ tag tag ]
A default IPv6 static route is created for the VPN instance.
The VPN instance view is displayed.
Run ipv4-family
The VPN instance IPv4 address family view is displayed.
Run ipv6-family
The VPN instance IPv6 address family view is displayed.
The VPN instance is associated with an export route policy, which filters routes that the VPN instance will advertise to an EVPN instance. This ensures that the VPN instance advertises only its default static routes and loopback routes to the EVPN instance.
Exit from the VPN instance IPv4/IPv6 address family view.
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.
Run ipv4-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv4 address family view is displayed.
Run ipv6-family vpn-instance vpn-instance-name
The BGP VPN instance IPv6 address family view is displayed.
Importing loopback routes in the VPN instance to the BGP-VPN instance IPv4/IPv6 address family view is enabled on the device.
Importing default static routes in the VPN instance to the BGP-VPN instance IPv4/IPv6 address family view is enabled on the device.
Advertising EVPN IP prefix routes is enabled in the VPN instance.
Exit from the BGP-VPN instance IPv4/IPv6 address family view.
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.
Run ipv4-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv4 address family view is displayed.
Run ipv6-family vpn-instance vpn-instance-name
The BGP VPN instance IPv6 address family view is displayed.
A VPN BGP peer relationship is established.
A source interface and a source IP address are specified to set up a TCP connection between the BGP peers.
The route policy is applied so that the DC-GW does not advertise VPN BGP routes to the VNF to prevent route loops.
Exit from the BGP-VPN instance IPv4/IPv6 address family view.
Run ipv4-family vpn-instance vpn-instance-name
The BGP-VPN instance IPv4 address family view is displayed.
Run ipv6-family vpn-instance vpn-instance-name
The BGP VPN instance IPv6 address family view is displayed.
The asymmetric mode is enabled for IRB routes.
The configuration is committed.