Supported Platforms
Configuring Layer 3 VPNs to Carry IPv6 Traffic
You can configure IP version 6 (IPv6) between the PE and CE routers of a Layer 3 VPN. The PE router must have the PE router to PE router BGP session configured with the family inet6-vpn statement. The CE router must be capable of receiving IPv6 traffic. You can configure BGP or static routes between the PE and CE routers.
The following sections explains how to configure IPv6 VPNs between the PE routers:
Configuring IPv6 on the PE Router
To configure IPv6 between the PE and CE routers, include the family inet6-vpn statement in the configuration on the PE router:
For a list of hierarchy levels at which you can configure this statement, see the statement summary section for this statement.
You also must include the ipv6-tunneling statement:
You can include this statement at the following hierarchy levels:
- [edit protocols mpls]
- [edit logical-systems logical-system-name protocols mpls]
Configuring the Connection Between the PE and CE Routers
To support IPv6 routes, you must configure BGP, OSPF version 3, IS-IS, or static routes for the connection between the PE and CE routers in the Layer 3 VPN. You can configure BGP to handle just IPv6 routes or both IP version 4 (IPv4) and IPv6 routes.
For more information about IPv6, see the Junos OS Routing Protocols Library for Routing Devices.
For more information about IS-IS see Example: Configuring IS-IS,
The following sections explain how to configure BGP and static routes:
- Configuring BGP on the PE Router to Handle IPv6 Routes
- Configuring BGP on the PE Router for IPv4 and IPv6 Routes
- Configuring OSPF Version 3 on the PE Router
- Configuring Static Routes on the PE Router
Configuring BGP on the PE Router to Handle IPv6 Routes
To configure BGP in the Layer 3 VPN routing instance to handle IPv6 routes, include the bgp statement:
You can include this statement at the following hierarchy levels:
- [edit routing-instances routing-instance-name protocols]
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols]
Configuring BGP on the PE Router for IPv4 and IPv6 Routes
To configure BGP in the Layer 3 VPN routing instance to handle both IPv4 and IPv6 routes, include the bgp statement:
You can include this statement at the following hierarchy levels:
- [edit routing-instances routing-instance-name protocols]
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols]
Configuring OSPF Version 3 on the PE Router
To configure OSPF version 3 in the Layer 3 VPN routing instance to handle IPv6 routes, include the ospf3 statement:
You can include this statement at the following hierarchy levels:
- [edit routing-instances routing-instance-name protocols]
- [edit logical-systems logical-system-name routing-instances routing-instance-name protocols]
For complete configuration guidelines for this statement, see the Junos OS Routing Protocols Library for Routing Devices.
Configuring Static Routes on the PE Router
To configure a static route to the CE router in the Layer 3 VPN routing instance, include the routing-options statement:
You can include this statement at the following hierarchy levels:
- [edit routing-instances routing-instance-name]
- [edit logical-systems logical-system-name routing-instances routing-instance-name]
Configuring IPv6 on the Interfaces
You need to configure IPv6 on the PE router interfaces to the CE routers and on the CE router interfaces to the PE routers.
To configure the interface to handle IPv6 routes, include the family inet6 statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces interface-name unit unit-number]
- [edit logical-systems logical-system-name interfaces interface-name unit unit-number]
If you have configured the Layer 3 VPN to handle both IPv4 and IPv6 routes, configure the interface to handle both IPv4 and IPv6 routes by including the unit statement:
You can include this statement at the following hierarchy levels:
- [edit interfaces interface-name]
- [edit logical-systems logical-system-name interfaces interface-name]