Configuring HoVPN
In a HoVPN networking scenario, perform basic MPLS L3VPN settings on UPE and SPE. In addition, configure the following settings on the SPE:
Specify the BGP peer or peer group as a UPE.
Advertise the default route of the specified VPN instance or routes matching a routing policy to the UPE.
Create a BGP-VPN instance so the learned VPNv4 routes can be added into the BGP routing table of the corresponding VPN instance by RTs.
Associating an interface with a VPN instance is not required on the SPE because no interface on the SPE is directly connected to the customer network.
Follow these restrictions and guidelines when you configure HoVPN:
Do not configure the peer default-route-advertise vpn-instance and peer upe route-policy commands at the same time.
Do not connect an SPE to a CE directly. If an SPE must be directly connected to a CE, the VPN instance on the SPE and that on the UPE must be configured with different RDs.
To configure SPE for HoVPN:
Step | Command | Remarks |
---|---|---|
1. Enter system view. | system-view | N/A |
2. Enter BGP view. | bgp as-number | N/A |
3. Specify a BGP peer or peer group. | peer { group-name | peer-address } as-number as-number | By default, no BGP peer is specified. |
4. Enter BGP-VPN VPNv4 address family view. | address-family vpnv4 | N/A |
5. Enable BGP VPNv4 route exchange with the peer or peer group. | peer { group-name | ip-address } enable | By default, BGP does not exchange VPNv4 routes with any peer. |
6. Specify the BGP peer or peer group as a UPE. | peer { group-name | ip-address } upe | By default, no peer is a UPE. |
7. Advertise routes to the UPE. |
| Use either command. By default, no route is advertised to the UPE. Do not configure both commands. The peer default-route-advertise vpn-instance command advertises a default route using the local address as the next hop to the UPE, regardless of whether the default route is present in the local routing table. However, if the specified peer is not a UPE, the command does not advertise a default route. |
8. Return to BGP view. | quit | N/A |
9. Create a BGP-VPN instance, and enter BGP-VPN instance view. | ip vpn-instance vpn-instance-name | By default, no BGP-VPN instance is created. |