297
[PE1-vpn-instance-vpn1] vpn-target 100:1 both
[PE1-vpn-instance-vpn1] quit
[PE1] ip vpn-instance vpn2
[PE1-vpn-instance-vpn2] route-distinguisher 100:2
[PE1-vpn-instance-vpn2] vpn-target 100:2 both
[PE1-vpn-instance-vpn2] quit
# Associate VPN instance
vpn1
with Serial 1/1/1 (the interface connected to CE 1).
[PE1] interface serial 1/1/1
[PE1-Serial1/1/1] ip binding vpn-instance vpn1
[PE1-Serial1/1/1] ip address 1.1.1.1 255.255.255.0
[PE1-Serial1/1/1] quit
# Configure a static route for VPN 2 to reach Host A and redistribute the route to BGP. This
configuration ensures that packets from VPN 2 to Host A can be forwarded through the correct
route in the routing table of VPN instance
vpn1
.
[PE1] ip route-static vpn-instance vpn2 100.1.1.0 24 vpn-instance vpn1 1.1.1.2
[PE1] bgp 100
[PE1-bgp-default] ip vpn-instance vpn2
[PE1-bgp-default-vpn2] address-family ipv4
[PE1-bgp-default-ipv4-vpn2] import-route static
[PE1-bgp-default-ipv4-vpn2] quit
[PE1-bgp-default-vpn2] quit
[PE1-bgp-default] quit
# Configure PBR to route packets from Host A according to the routing tables of both VPN
instances
vpn1
and
vpn2
.
[PE1] acl advanced 3001
[PE1-acl-ipv4-adv-3001] rule 0 permit ip vpn-instance vpn1 source 100.1.1.2 0
[PE1-acl-ipv4-adv-3001] quit
[PE1] policy-based-route policy1 permit node 10
[PE1-policy-based-route] if-match acl 3001
[PE1-policy-based-route] apply access-vpn vpn-instance vpn1 vpn2
[PE1-policy-based-route] quit
# Apply policy
policy1
to Serial 1/1/1.
[PE1] interface serial 1/1/1
[PE1-Serial1/1/1] ip policy-based-route policy1
3.
Configure basic MPLS L3VPN. (Details not shown.)
Verifying the configuration
# Verify that Host A can ping Host C, and that Host B cannot ping Host C. (Details not shown.)
Configuring HoVPN
Network requirements
As shown in
, there are two levels of networks: the backbone and the MPLS VPN networks.
•
SPEs act as PEs to allow MPLS VPNs to access the backbone.
•
UPEs act as PEs of the MPLS VPNs to allow end users to access the VPNs.
•
Performance requirements for the UPEs are lower than those for the SPEs.