HP FlexNetwork HSR6600 Configuration Manual page 386

Comware 7 mpls
Hide thumbs Also See for FlexNetwork HSR6600:
Table of Contents

Advertisement

2.
Configure PE 1:
# Create VPN instances vpn1 and vpn2 for VPN 1 and VPN 2, respectively, and configure
different RDs and route targets for the VPN instances.
<PE1> system-view
[PE1] ip vpn-instance vpn1
[PE1-vpn-instance-vpn1] route-distinguisher 100:1
[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] ipv6 address 1::1 64
[PE1-Serial1/1/1] quit
# Configure an IPv6 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] ipv6 route-static vpn-instance vpn2 100:: 64 vpn-instance vpn1 1::2
[PE1] bgp 100
[PE1-bgp-default] ip vpn-instance vpn2
[PE1-bgp-default-vpn2] address-family ipv6
[PE1-bgp-default-ipv6-vpn2] import-route static
[PE1-bgp-default-ipv6-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 ipv6 advanced 3001
[PE1-acl-ipv6-adv-3001] rule 0 permit ipv6 vpn-instance vpn1 source 100::2 128
[PE1-acl-ipv6-adv-3001] quit
[PE1] ipv6 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] ipv6 policy-based-route policy1
3.
Configure basic IPv6 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.)
376

Advertisement

Table of Contents
loading

Table of Contents