To enable CEs to communicate, the PEs and CEs must be capable of exchanging routes.
Perform the following steps on the PE:
The system view is displayed.
The BGP view is displayed.
The BGP-VPN instance IPv6 address family view is displayed.
An AS number is configured for the VPN instance IPv6 address family.
To smoothly re-assign a device to another AS or transmit different services in different instances, run the as-number command to configure a different AS number for each VPN instance IPv6 address family.
The AS number configured in the VPN instance IPv6 address family view must be different from the AS number configured in the BGP view.
After the bgp yang-mode enable command is run, the as-number { as-number-plain | as-number-dot } command cannot be run. To configure a separate AS number for the VPN instance IPv6 address family, run the as-number ipv6 ipv6-as command in the BGP-VPN instance view.
The CE is configured as an IPv6 VPN peer.
The maximum number of hops between the PE and its EBGP peer is specified. This step is mandatory if the PE and CE are not directly connected.
If the maximum number of hops is set to 1, the PE cannot establish an EBGP connection to a peer if they are not directly connected.
The SoO attribute is configured for the specified CE peer.
Several CEs at a VPN site may establish BGP connections to different PEs. The VPN routes advertised from the CEs to the PEs may be re-advertised to the same VPN site after the routes traverse the backbone network. This may cause route loops at the VPN site.
If the SoO attribute is configured for a specified CE, the PE adds the attribute to a route sent from the CE and advertises the route to the remote PE. The remote PE checks the SoO attribute of the route before sending it to its attached CE. If the SoO attribute is the same as the local SoO attribute on the remote PE, the remote PE does not send the route to its attached CE.
Route loops are allowed.
This step is used in hub-spoke networking.
Generally, BGP uses AS numbers to detect route loops. On a hub-spoke network, if EBGP runs between a hub-PE and a hub-CE at a hub site, the route sent from the hub-PE to the hub-CE carries the AS number of the hub-PE. If the hub-CE sends a route update message to the hub-PE, the hub-PE will deny it because the route update message contains the AS number of the hub-PE. To ensure proper route transmission on a hub-spoke network, configure all the BGP peers along the path (along which the hub-CE advertises VPN routes to the spoke-CE) to accept the routes which have the AS number repeated once.
BGP AS number substitution is enabled.
Perform this step on the PE in a scenario in which CEs at different sites use the same AS number.
Enabling BGP AS number substitution may cause routing loops on a CE multi-homing network.
To configure the device to send only optimal routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise best-route command.
By default, when a local device receives a route (route A) having the same prefix as that of a route (route B) in the local VPN routing table from the remote end but route A and route B have different RDs, route B is also sent to a BGP VPNv6 routing table even if the route selection priority of route B is lower than that of route A. If route B meets BGP VPNv6 route sending conditions, it is also sent to other BGP VPNv6 peers. In this scenario, if you want only optimal BGP VPN routes to be transmitted between BGP VPNv6 peers on the network, run the advertise best-route command on the local device to send only optimal routes in the BGP VPN routing table to the BGP VPNv6 routing table.
To configure the device to send only valid routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise valid-routes command.
By default, the device advertises all routes in the BGP VPN routing table to the BGP VPNv6 routing table. You can run the advertise valid-routes command to advertise valid routes to the BGP VPNv6 routing table.
The configuration is committed.
Perform the following steps on the CE:
The system view is displayed.
The BGP view is displayed.
A router ID is set for the CE. If no interface on the local CE is assigned an IPv4 address, you must set the router ID for the local CE.
The PE is configured as an IPv6 VPN peer.
The maximum number of hops between the CE and its EBGP peer (the PE) is set. This step is mandatory if the PE and CE are not directly connected.
If the maximum number of hops is set to 1, the CE cannot establish an EBGP connection to a peer if they are not directly connected.
The BGP-IPv6 unicast address family view is displayed.
The function to exchange BGP route information with the specified BGP IPv6 peer is enabled.
Routes of the local site are imported.
The CE advertises the routes of its own VPN network segment to the connected PE, which forwards the routes to the remote CE. The type of route imported at this step may vary according to the networking mode.
The configuration is committed.
Perform the following steps on the PE:
Configuring an IPv6 static route on the CE is not described here. For details about how to configure an IPv6 static route, see "IPv6 Static Route Configuration" in HUAWEI NetEngine 8000 F SeriesRouter Configuration Guide - IP Routing.
The system view is displayed.
A static route is configured for a specified VPN instance IPv6 address family.
The BGP view is displayed.
The BGP-VPN instance IPv6 address family view is displayed.
The configured static route is added to the VRF table of the BGP-VPN instance IPv6 address family.
To configure the device to send only optimal routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise best-route command.
By default, when a local device receives a route (route A) having the same prefix as that of a route (route B) in the local VPN routing table from the remote end but route A and route B have different RDs, route B is also sent to a BGP VPNv6 routing table even if the route selection priority of route B is lower than that of route A. If route B meets BGP VPNv6 route sending conditions, it is also sent to other BGP VPNv6 peers. In this scenario, if you want only optimal BGP VPN routes to be transmitted between BGP VPNv6 peers on the network, run the advertise best-route command on the local device to send only optimal routes in the BGP VPN routing table to the BGP VPNv6 routing table.
To configure the device to send only valid routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise valid-routes command.
By default, the device advertises all routes in the BGP VPN routing table to the BGP VPNv6 routing table. You can run the advertise valid-routes command to advertise valid routes to the BGP VPNv6 routing table.
The configuration is committed.
The configuration of the CE is the same as the configuration of common IPv6 static routes, and is not described here.
A VPN that receives routes outside it from a device other than the PE and advertises the routes to the PE is called a transit VPN. A VPN that receives only routes in it and routes advertised by the PE is called a stub VPN. Generally, a static route is used for route exchange between the CE and PE in a stub VPN only.
Configuring RIPng on the CE is not described here. For details about how to configure RIPng, see "RIPng Configuration" in the HUAWEI NetEngine 8000 F SeriesRouter Configuration Guide - IP Routing.
The system view is displayed.
A RIPng process used between the PE and CE is created, and the RIPng view is displayed.
A RIPng multi-instance process can be bound to only one VPN instance. If a RIPng process is not bound to any VPN instance before it is started, this process becomes a public network process.
If only one RIPng process, either a public network RIPng process or a RIPng multi-instance process, runs on the router, you do not need to specify process-id in the command. The value of process-id is 1 by default.
BGP routes are imported.
After the import-route bgp command is run in the RIPng view, the PE can import the VPNv6 routes learned from the remote PE into the RIPng routing table and advertise them to the attached CE.
Return to the system view.
The view of the interface connected to the CE is displayed.
RIPng is enabled on the interface.
If IPv6 is not enabled, this command cannot be run in the interface view.
Return to the system view.
The BGP view is displayed.
The BGP-VPN instance IPv6 address family view is displayed.
RIPng routes are imported into the BGP-VPN instance IPv6 address family routing table.
The learned RIPng route is added to the VRF table of the BGP-VPN instance IPv6 address family. After the import-route ripng command is run in the BGP-IPv6 VPN instance IPv6 address family view, the PE imports the IPv6 routes learned from the attached CE into the BGP routing table and advertises VPN-IPv6 routes to the remote PE.
If a RIPng multi-instance process is deleted, RIPng will be disabled on all the interfaces in the process.
Deleting a VPN instance or disabling a VPN instance IPv6 address family will delete all the RIPng processes bound to the VPN instance or the VPN instance IPv6 address family on the PE.
To configure the device to send only optimal routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise best-route command.
By default, when a local device receives a route (route A) having the same prefix as that of a route (route B) in the local VPN routing table from the remote end but route A and route B have different RDs, route B is also sent to a BGP VPNv6 routing table even if the route selection priority of route B is lower than that of route A. If route B meets BGP VPNv6 route sending conditions, it is also sent to other BGP VPNv6 peers. In this scenario, if you want only optimal BGP VPN routes to be transmitted between BGP VPNv6 peers on the network, run the advertise best-route command on the local device to send only optimal routes in the BGP VPN routing table to the BGP VPNv6 routing table.
To configure the device to send only valid routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise valid-routes command.
By default, the device advertises all routes in the BGP VPN routing table to the BGP VPNv6 routing table. You can run the advertise valid-routes command to advertise valid routes to the BGP VPNv6 routing table.
The configuration is committed.
Configuring OSPFv3 on the CE is not described here. For details about how to configure OSPFv3, see "OSPFv3 Configuration" in HUAWEI NetEngine 8000 F SeriesRouter Configuration Guide - IP Routing.
Perform the following steps on the PE:
The system view is displayed.
An OSPFv3 multi-instance process is started, and its view is displayed.
An OSPFv3 multi-instance process is started, and its view is displayed. An OSPFv3 process can be bound to only one VPN instance. If an OSPFv3 process is not bound to any VPN instance before it is started, this process becomes a public network process and cannot be bound to a VPN instance later.
Deleting a VPN instance or disabling a VPN instance IPv6 address family will delete all the OSPFv3 processes bound to the VPN instance or the VPN instance IPv6 address family on the PE.
A router ID is configured. The router ID of each OSPFv3 process is unique in an AS. If no router ID is set, no OSPFv3 process can be run.
The domain ID is configured. The domain ID can be an integer or in dotted decimal notation.
Generally, the routes that are imported from a PE are advertised as External-LSAs. The routes that belong to different nodes of the same OSPFv3 domain are advertised as Type-3 LSAs (intra-domain routes). This requires that different nodes in the same OSPFv3 domain have the same domain ID.
A VPN route tag is set.
BGP routes are imported into the OSPFv3 routing table so that the PE can advertise the routes to the CE using OSPFv3.
Return to the system view.
The view of the interface bound to the VPN instance is displayed.
OSPFv3 is enabled on the interface.
Return to the system view.
The BGP view is displayed.
The BGP-VPN instance IPv6 address family view is displayed.
OSPFv3 routes are imported into the VRF table of the BGP-VPN instance IPv6 address family.
To configure the device to send only optimal routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise best-route command.
By default, when a local device receives a route (route A) having the same prefix as that of a route (route B) in the local VPN routing table from the remote end but route A and route B have different RDs, route B is also sent to a BGP VPNv6 routing table even if the route selection priority of route B is lower than that of route A. If route B meets BGP VPNv6 route sending conditions, it is also sent to other BGP VPNv6 peers. In this scenario, if you want only optimal BGP VPN routes to be transmitted between BGP VPNv6 peers on the network, run the advertise best-route command on the local device to send only optimal routes in the BGP VPN routing table to the BGP VPNv6 routing table.
To configure the device to send only valid routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise valid-routes command.
By default, the device advertises all routes in the BGP VPN routing table to the BGP VPNv6 routing table. You can run the advertise valid-routes command to advertise valid routes to the BGP VPNv6 routing table.
The configuration is committed.
This configuration is performed on the PE. On the CE, you only need to configure the common IS-ISv6 protocol. For details about how to configure IS-ISv6, see "IS-IS Configuration" in HUAWEI NetEngine 8000 F SeriesRouter Configuration Guide - IP Routing.
The system view is displayed.
An IS-IS process used between the PE and CE is created, and the IS-IS view is displayed.
An IS-IS process is created on the PE, and the IS-IS view is displayed. An IS-IS multi-instance process can be bound to only one VPN instance. If an IS-IS process is not bound to any VPN instance before it is started, this process becomes a public network process.
If only one IS-IS process, either a public network IS-IS process or a multi-instance IS-IS instance, runs on the router, you do not need to specify process-id in the command. The value of process-id defaults to 1.
If an IS-IS multi-instance process is deleted, IS-IS will be disabled on all the interfaces in the process.
Deleting a VPN instance or disabling a VPN instance IPv6 address family will delete all the IS-IS processes bound to the VPN instance or the VPN instance IPv6 address family on the PE.
A NET value is set. A NET specifies the current IS-IS area address and the system ID of the router.
The IS-IS level of the router is set.
IPv6 is enabled for the IS-IS process.
Before enabling IPv6 for the IS-IS process, enable IPv6 in the system view first.
BGP routes are imported.
Return to the system view.
The interface view is displayed.
IS-ISv6 is enabled on the interface.
Return to the system view.
The BGP view is displayed.
The BGP-VPN instance IPv6 address family view is displayed.
IS-IS routes are imported into the VRF table of the BGP-VPN instance IPv6 address family.
To configure the device to send only optimal routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise best-route command.
By default, when a local device receives a route (route A) having the same prefix as that of a route (route B) in the local VPN routing table from the remote end but route A and route B have different RDs, route B is also sent to a BGP VPNv6 routing table even if the route selection priority of route B is lower than that of route A. If route B meets BGP VPNv6 route sending conditions, it is also sent to other BGP VPNv6 peers. In this scenario, if you want only optimal BGP VPN routes to be transmitted between BGP VPNv6 peers on the network, run the advertise best-route command on the local device to send only optimal routes in the BGP VPN routing table to the BGP VPNv6 routing table.
To configure the device to send only valid routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise valid-routes command.
By default, the device advertises all routes in the BGP VPN routing table to the BGP VPNv6 routing table. You can run the advertise valid-routes command to advertise valid routes to the BGP VPNv6 routing table.
The configuration is committed.
A direct route can be configured between a PE and a CE only if the CE is a host and connected to the PE using a VLANIF interface. Note that the direct route only needs to be configured on the PE.
Perform the following steps on the PE:
The system view is displayed.
The VPN instance view is displayed.
The VPN instance IPv6 address family view is displayed.
NDP Vlink direct routes are advertised.
After the parameter route-policy route-policy-name is specified in the nd vlink-direct-route advertise command, only NDP Vlink direct routes matching the route-policy are advertised.
Return to the VPN instance view.
Return to the system view.
The BGP view is displayed.
The BGP-VPN instance IPv6 address family view is displayed.
The direct route to the local CE is imported. After the direct route to the local CE is imported to the VPN routing table, the local PE use MP-BGP to advertise the direct route to the remote PE. This allows the remote CE to access the local CE.
To configure the device to send only optimal routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise best-route command.
By default, when a local device receives a route (route A) having the same prefix as that of a route (route B) in the local VPN routing table from the remote end but route A and route B have different RDs, route B is also sent to a BGP VPNv6 routing table even if the route selection priority of route B is lower than that of route A. If route B meets BGP VPNv6 route sending conditions, it is also sent to other BGP VPNv6 peers. In this scenario, if you want only optimal BGP VPN routes to be transmitted between BGP VPNv6 peers on the network, run the advertise best-route command on the local device to send only optimal routes in the BGP VPN routing table to the BGP VPNv6 routing table.
To configure the device to send only valid routes in a BGP VPN routing table to a BGP VPNv6 routing table, run the advertise valid-routes command.
By default, the device advertises all routes in the BGP VPN routing table to the BGP VPNv6 routing table. You can run the advertise valid-routes command to advertise valid routes to the BGP VPNv6 routing table.
The configuration is committed.