Related Documentation
- ACX Series
- Configuring the Ingress Router for MPLS-Signaled LSPs
- Configuring the Intermediate and Egress Routers for MPLS-Signaled LSPs
- M Series
- Configuring the Ingress Router for MPLS-Signaled LSPs
- Configuring the Intermediate and Egress Routers for MPLS-Signaled LSPs
- Minimum RSVP Configuration
- MX Series
- Configuring the Ingress Router for MPLS-Signaled LSPs
- Configuring the Intermediate and Egress Routers for MPLS-Signaled LSPs
- PTX Series
- Configuring the Ingress Router for MPLS-Signaled LSPs
- Configuring the Intermediate and Egress Routers for MPLS-Signaled LSPs
- Minimum RSVP Configuration
- T Series
- Configuring the Ingress Router for MPLS-Signaled LSPs
- Configuring the Intermediate and Egress Routers for MPLS-Signaled LSPs
- Minimum RSVP Configuration
Example: Tunneling Layer 3 VPN IPv6 Islands over an IPv4 Core Using IBGP and Independent Domains
This example shows how to configure Junos OS to tunnel IPv6 over a Layer 3 VPN IPv4 network. Internal BGP (IBGP) is used between the customer edge (CE) and provider edge (PE) devices, as described in Internet draft draft-marques-ppvpn-ibgp-version.txt, RFC2547bis networks using internal BGP as PE-CE protocol, instead of the more typical external BGP (EBGP) PE-CE connections.
Requirements
No special configuration beyond device initialization is required before you configure this example.
All PE routers participating in a Layer 3 VPN with the independent-domain statement in its configuration must be running Junos OS Release 6.3 or later.
Overview
This example shows one method of enabling a router to participate in a customer VPN autonomous-system (AS) domain and to transparently exchange routing information through a Layer 3 VPN without the customer network attributes being visible to the carrier network, and without the carrier network attributes being visible to the customer network.
As an added requirement, the customer network in this example is based on IPv6, while the provider network uses IPv4.
The independent-domain feature is useful when customer route attributes need to be transparently forwarded across the VPN network without even the service-provider (SP) AS path appearing in the routes. In a typical Layer 3 VPN, the route attributes such as the originator ID, cluster list, route metric, and AS path are not transparent from one CE device to another CE device.
For example, suppose you have a customer VRF whose AS is 1. The customer advertises routes to you through BGP (either IBGP or EBGP). Your core network (the primary routing instance) uses AS 3. Without independent-domain configured, if the customer advertises 10.0.0.0/24 to you through BGP, the prefix contains the customer’s AS 1 in the AS path. To transport the advertisement across the core to the other PE devices, your core AS 3 is added to the AS path by multiprotocol BGP (MP-BGP). The AS path is now 3 1. When the prefix is advertised out of the core back into the Layer 3 VPN at a remote PE device, the Layer 3 VPN AS 1 is added again, making the AS Path 1 3 1, which is an AS loop. The independent-domain statement ensures that only the ASs in the routing-instance are checked during loop detection, and the main, primary routing instances (your core’s AS 3) is not considered. This is done by using the attribute 128 (attribute set), which is an optional transitive attribute. The attribute set hides the route’s AS path, local preference, and so on, so that those do not appear during the loop check.
![]() | Note: In Junos OS 10.4 and later, you can specify the no-attrset option of independent-domain so that instead of using attribute 128 (attribute set), Junos OS simply does loop checking on routing-instance ASs without considering your core’s AS used in MP-BGP. This is useful if you are using the local-as feature, and you only want to configure independent domains to maintain the independence of local ASs in the routing instance, and perform BGP loop detection only for the specified local ASs in the routing instance. In this case, you can disable the attribute set message. |
Figure 1 shows the sample network.
Figure 1: Layer 3 VPN IPv6 Islands over an IPv4 Core Using IBGP and Independent Domains

CLI Quick Configuration shows the configuration for all of the devices in Figure 1.
The section Configuring Device PE1 describes the steps on Device PE1.
Configuration
CLI Quick Configuration
To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, and then copy and paste the commands into the CLI at the [edit] hierarchy level.
Device CE1
Device CE2
Device PE1
Device P
Device PE2
Configuring Device PE1
Step-by-Step Procedure
The following example requires you to navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the CLI User Guide.
To configure Device PE1:
- Configure the interfaces.[edit interfaces]user@PE1# set ge-1/2/1 unit 0 family inet6 address ::10.1.1.2/126
user@PE1# set ge-1/2/2 unit 0 family inet address 10.1.1.5/30user@PE1# set ge-1/2/2 unit 0 family mpls
user@PE1# set lo0 unit 0 family inet address 1.1.1.2/32 - Configure MPLS on the interfaces.
- Configure BGP.[edit protocols bgp group toPE2]user@PE1# set type internaluser@PE1# set local-address 1.1.1.2user@PE1# set family inet6-vpn unicastuser@PE1# set neighbor 1.1.1.4
- Configure an interior gateway protocol (IGP).[edit protocols ospf area 0.0.0.0]user@PE1# set interface lo0.0 passiveuser@PE1# set interface ge-1/2/2.0
- Configure a signaling protocol. [edit protocols]user@PE1# set ldp interface ge-1/2/2.0user@PE1# set ldp interface lo0.0
- Configure the routing instance.[edit routing-instances red]user@PE1# set instance-type vrfuser@PE1# set interface ge-1/2/1.0user@PE1# set route-distinguisher 64512:1user@PE1# set vrf-target target:64512:1user@PE1# set routing-options router-id 1.1.1.2user@PE1# set protocols bgp group toCE1 type internaluser@PE1# set protocols bgp group toCE1 family inet6 unicastuser@PE1# set protocols bgp group toCE1 neighbor ::10.1.1.1
- In the routing instance, include the AS number of the
customer network, and include the independent-domain statement.[edit routing-instances red routing-options]user@PE1# set autonomous-system 64510user@PE1# set autonomous-system independent-domain
- In the main instance, configure the router ID and the
provider AS number.[edit routing-options]user@PE1# set router-id 1.1.1.2user@PE1# set autonomous-system 64512
Results
From configuration mode, confirm your configuration by entering the show interfaces, show protocols, show routing-instances, and show routing-options commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.
If you are done configuring the device, enter commit from configuration mode.
Verification
Confirm that the configuration is working properly.
Verifying That the CE Devices Have Connectivity
Purpose
Make sure that the tunnel is operating.
Action
From operational mode, enter the ping command.
user@CE1> ping ::1.1.1.5PING6(56=40+8+8 bytes) ::10.1.1.1 --> ::1.1.1.5 16 bytes from ::1.1.1.5, icmp_seq=0 hlim=63 time=1.943 ms 16 bytes from ::1.1.1.5, icmp_seq=1 hlim=63 time=1.587 ms ^C --- ::1.1.1.5 ping6 statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/std-dev = 1.587/1.765/1.943/0.178 ms
user@CE2> ping ::1.1.1.1PING6(56=40+8+8 bytes) ::10.1.1.14 --> ::1.1.1.1 16 bytes from ::1.1.1.1, icmp_seq=0 hlim=63 time=2.097 ms 16 bytes from ::1.1.1.1, icmp_seq=1 hlim=63 time=1.610 ms ^C --- ::1.1.1.1 ping6 statistics --- 2 packets transmitted, 2 packets received, 0% packet loss round-trip min/avg/max/std-dev = 1.610/1.853/2.097/0.244 ms
Meaning
The IPv6 CE devices can communicate over the core IPv4 network.
Checking the AS Paths
Purpose
Make sure that the provider AS number does not appear in the CE device routing tables.
Action
From operational mode, enter the show route protocol bgp detail command.
user@CE1> show route protocol bgp
detail
inet6.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
::1.1.1.5/128 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect
Address: 0x9514354
Next-hop reference count: 6
Source: ::10.1.1.2
Next hop type: Router, Next hop index: 924
Next hop: ::10.1.1.2 via ge-1/2/1.0, selected
Session Id: 0x500001
Protocol next hop: ::10.1.1.2
Indirect next hop: 0x971c000 262147 INH Session ID: 0x500002
State: <Active Int Ext>
Local AS: 64510 Peer AS: 64510
Age: 50:58 Metric2: 0
Validation State: unverified
Task: BGP_64510.::10.1.1.2+45824
Announcement bits (2): 0-KRT 2-Resolve tree 2
AS path: I
Accepted
Localpref: 100
Router ID: 1.1.1.2
::10.1.1.12/126 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect
Address: 0x9514354
Next-hop reference count: 6
Source: ::10.1.1.2
Next hop type: Router, Next hop index: 924
Next hop: ::10.1.1.2 via ge-1/2/1.0, selected
Session Id: 0x500001
Protocol next hop: ::10.1.1.2
Indirect next hop: 0x971c000 262147 INH Session ID: 0x500002
State: <Active Int Ext>
Local AS: 64510 Peer AS: 64510
Age: 50:58 Metric2: 0
Validation State: unverified
Task: BGP_64510.::10.1.1.2+45824
Announcement bits (2): 0-KRT 2-Resolve tree 2
AS path: I
Accepted
Localpref: 100
Router ID: 1.1.1.2user@CE2> show route protocol bgp detail
inet6.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
::1.1.1.1/128 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect
Address: 0x9514354
Next-hop reference count: 6
Source: ::10.1.1.13
Next hop type: Router, Next hop index: 914
Next hop: ::10.1.1.13 via ge-1/2/4.0, selected
Session Id: 0x400001
Protocol next hop: ::10.1.1.13
Indirect next hop: 0x971c000 262150 INH Session ID: 0x400002
State: <Active Int Ext>
Local AS: 64510 Peer AS: 64510
Age: 50:41 Metric2: 0
Validation State: unverified
Task: BGP_64510.::10.1.1.13+59329
Announcement bits (2): 0-KRT 2-Resolve tree 2
AS path: I
Accepted
Localpref: 100
Router ID: 1.1.1.4
::10.1.1.0/126 (1 entry, 1 announced)
*BGP Preference: 170/-101
Next hop type: Indirect
Address: 0x9514354
Next-hop reference count: 6
Source: ::10.1.1.13
Next hop type: Router, Next hop index: 914
Next hop: ::10.1.1.13 via ge-1/2/4.0, selected
Session Id: 0x400001
Protocol next hop: ::10.1.1.13
Indirect next hop: 0x971c000 262150 INH Session ID: 0x400002
State: <Active Int Ext>
Local AS: 64510 Peer AS: 64510
Age: 50:41 Metric2: 0
Validation State: unverified
Task: BGP_64510.::10.1.1.13+59329
Announcement bits (2): 0-KRT 2-Resolve tree 2
AS path: I
Accepted
Localpref: 100
Router ID: 1.1.1.4
Meaning
The output shows that for the BGP routes on the CE devices, the AS path attribute does not include the provider AS 64512.
Related Documentation
- ACX Series
- Configuring the Ingress Router for MPLS-Signaled LSPs
- Configuring the Intermediate and Egress Routers for MPLS-Signaled LSPs
- M Series
- Configuring the Ingress Router for MPLS-Signaled LSPs
- Configuring the Intermediate and Egress Routers for MPLS-Signaled LSPs
- Minimum RSVP Configuration
- MX Series
- Configuring the Ingress Router for MPLS-Signaled LSPs
- Configuring the Intermediate and Egress Routers for MPLS-Signaled LSPs
- PTX Series
- Configuring the Ingress Router for MPLS-Signaled LSPs
- Configuring the Intermediate and Egress Routers for MPLS-Signaled LSPs
- Minimum RSVP Configuration
- T Series
- Configuring the Ingress Router for MPLS-Signaled LSPs
- Configuring the Intermediate and Egress Routers for MPLS-Signaled LSPs
- Minimum RSVP Configuration
