After being configured, a tunnel policy needs to be applied to a VPN service. The mode in which a tunnel policy is applied to VPN services varies according to the VPN type.
A device can select proper tunnels for VPN data transmission based on the configured tunnel policy only after the policy is applied to VPN services.
The mode in which a tunnel policy is applied to VPN services varies according to the VPN type. Select one of the following modes as needed:
For details about the BGP/MPLS IP VPN configuration, see Configuring Basic BGP/MPLS IP VPN Functions.
For details about the BGP/MPLS IPv6 VPN configuration, see Configuring a Basic BGP/MPLS IPv6 VPN.
For details about how to configure SVC VPWS, see Configuring SVC VPWS. Perform the following steps on the PEs with VCs configured:
For details about how to configure LDP VPWS, see Configuring LDP VPWS . Perform the following steps on the PEs with VCs configured:
For details about how to configure LDP VPLS, see Configuring LDP VPLS. Perform the following steps on each endpoint PE of a PW:
For details about how to configure EVPN, see Configuring EVPN. Perform the following steps on PEs:
Apply a tunnel policy to Layer 2 services.
Run system-view
The system view is displayed.
Run evpn vpn-instance vpn-instance-name [ vpws ] or evpn vpn-instance vpn-instance-name bd-mode
The EVPN instance view is displayed.
Run tnl-policy policy-name
A tunnel policy is applied to the EVPN instance.
Run commit
The configuration is committed.
Apply a tunnel policy to Layer 3 services.
Run system-view
The system view is displayed.
Run ip vpn-instance vpn-instance-name
The VPN instance view is displayed.
Run ipv4-family
The VPN instance IPv4 address family view is displayed.
Run tnl-policy policy-name evpn
The EVPN routes that can be imported into the VPN instance IPv4 address family are associated with a tunnel policy.
Run commit
The configuration is committed.
If an EVPN carries both Layer 2 and Layer 3 services, the preceding configurations for Layer 2 and Layer 3 services must be performed on each PE.