MPLSin IPv 6

You might also like

Download as pps, pdf, or txt
Download as pps, pdf, or txt
You are on page 1of 38

IPv6 Support in MPLS

© 2011 Juniper Networks, Inc. All rights reserved. | www.juniper.net


MPLS and IPv6
 Originally designed to make routers faster
 As routers became faster and performance improved, the
need to use MPLS as an efficiency improvement technique
gradually disappeared
 The current value of MPLS is now in traffic engineering and
provisioning of new services, such as routing IPv6
 Service providers want to offer new revenue-generating
services without having to make major modifications to their
infrastructure
 RFC 4798—Connecting IPv6 Domains across IPv4 Clouds
with BGP defines a technique to announce IPv6 between
network edges and to carry IPv6 traffic across MPLS while
avoiding significant modifications of the underlying IPv4

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 2


MPLS Operations
 MPLS combines Layer 3 routing with label swapping
and forwarding as follows:
• Labels are imposed at the ingress router
• Forwarding decisions made within the core are made using
only the label
• Label table lookups are used instead of routing table lookups
• Labels are stripped at the egress router

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 3


Label Distribution Protocol Terminology

Transit:
Ingress: - Perform label swap operations
- LSP’s entrance point - Forward traffic to next hop in LSP
- Forwards packets based on IP address
- Performs label push function
Penultimate Router:
- Normally pops the label stack
- Unlabeled packets sent to
egress

PE1 P1 P2 PE2

CE1
LSP
User
Traffic

CE2
Egress:
PE2
PE3 - LSP’s exit point
Customer - Forwards packets
routers based on IP address

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 4


Label Distribution Protocol Control Plane:
(LDP/RSVP, IGP, BGP)

IGP = OSP/IS-IS

LSP configuration

PE1 P1 P2 PE2

CE1
EBGP

IBGP

CE2
Signaling PE3
=LDP/RSVP

CE3

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 5


Label Distribution Protocol Data Plane:
(LDP/RSVP, IGP, BGP)

inet.0 mpls.0 mpls.0 inet.0

172.16.1/24 => 100 => fe-0/0/2.0 200 => fe-0/0/1.0 172.16.1/24=>


fe-0/0/0.0 push 100 swap 200 pop so-0/0/0.0 nh = CE2

PE1 P1 P2 PE2
DA
CE1 =1
Label=100 Label=200 DA=172.16.1.1 72
.16
1.1    .1.
. 16.  1
= 172
DA

CE2

172.16.1/24

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 6


IPv6 over MPLS Deployment Scenarios
 There are a number of methods to provision IPv6 over
an MPLS network
• IPv6 tunnels configured on the CE
• L2 VPNs, VPLS
• 6PE

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 7


IPv6 Tunnels Configured on CE

Manually configure tunnel


CE1-to-CE2

PE1 P1 P2 PE2

CE1

LSPx2
CE2

Dual-Stack
Router
Dual-Stack
Router

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 8


IPv6 over L2 VPN

Incoming traffic can be anything the customer needs to


send to the other CE router, including IPv6
The service provider forwards traffic coming in
through interface fe-0/0/2.0 to PE1.

PE1 P1 P2 PE2

CE1

LSPx2 fe-0/0/2.0
CE2

Dual-Stack
Logical circuit over
Router
MPLS: ATM VC, FR Dual-Stack
PVC, Ethernet
Router

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 9


L2 VPN Configuration Sample Topology
AS 64512
172.16.0/24 .1
.2 .1 AS 64513
fdcd:10:0:1::/64 ::1
::2 ::1
fe-0/0/0
fe-0/0/0 fe-0/0/1
10.0.4.0/24
Tokyo-CE1 London-PE1 fdcd:10:0:4::/64
lo0: 192.168.5.1 lo0: 192.168.16.1/32 .2
lo0: fd5b:192:168:5::1/128 Amsterdam-P1
lo0: fdcd:192:168:16::1/128 ::2
fe-0/0/0 lo0: 192.168.20.1/32
static: 2001:240:160:2000::/52 .2 lo0: fdcd:192:168:20::1/128
::2

.2
::2
IS-IS fe-0/0/2

CE-CE Routing
(No Service Provider
Involvement) 10.0.3.0/24
static: 2001:240:160:1000:/52 fdcd:10:0:3::/64
172.16.0/24 fe-0/0/0
AS 64512 .1
fdcd:10:0:1::/64
.1
::1 ::1 .1
New York–CE2 ::1
lo0: 192.168.24.1/32 No Routing
lo0: fdcd:192:168:24::1/128 Sao Paulo-PE2
Protocol
PE-CE lo0: 192.168.8.1/32
lo0: fdcd:192:168:8::1/128
© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 10
CE Configuration [edit protocols]
lab@Tokyo# show | display set relative
[edit routing-options rib inet6.0] set ospf3 export static
lab@TOKYO-ISIS# show | display set relative set ospf3 area 0.0.0.0 interface all
set static route 2001:240:160:1000::/52 reject
[edit policy-options policy-statement static]
lab@Tokyo# show | display set relative
[edit interfaces] set term 1 from protocol static
lab@Tokyo# show | display set relative set term 1 from family inet6
set ge-0/0/0 vlan-tagging set term 1 then accept
set ge-0/0/0 unit 0 vlan-id 520
set ge-0/0/0 unit 0 family inet address 172.16.0.2/24 Same configuration
set ge-0/0/0 unit 0 family inet6 address fdcd:172:16:0::2/64 in New York
set lo0 unit 0 family inet address 192.168.1.1/32
set lo0 unit 0 family inet6 address fdcd:192:168:1::1/128

[edit routing-options rib inet6.0]


lab@NewYork# show | display set relative
set static route 2001:240:160:2000::/52 reject Same IPv4 and
IPv6 subnets
[edit interfaces]
lab@NewYork# show | display set relative
set ge-0/0/0 vlan-tagging
set ge-0/0/0 unit 0 vlan-id 520
set ge-0/0/0 unit 0 family inet address 172.16.0.1/24
set ge-0/0/0 unit 0 family inet6 address fdcd:172:16:0::1/64
set lo0 unit 0 family inet address 192.168.24.1/32
set lo0 unit 0 family inet6 address fdcd:192:168:24::1/128

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 11


CE Routing Verification (1 of 2)
[edit]
lab@Tokyo# run show ospf3 neighbor
ID Interface State Pri Dead
192.168.24.1 ge-0/0/0.0 Full 128 32
Neighbor-address fe80::21d:b502:880:f980

[edit policy-options policy-statement static]


lab@Tokyo# run show route protocol ospf table inet6
inet6.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2001:240:160:2000::/52 *[OSPF/150] 00:47:22, metric 0, tag 0


(New York static route) > to fe80::21d:b502:880:f980 via ge-0/0/0.0
fdcd:192:168:24::1/128 *[OSPF/10] 00:52:34, metric 1
> to fe80::21d:b502:880:f980 via ge-0/0/0.0

[edit routing-options rib inet6.0]


lab@NewYork# run show route protocol ospf table inet6

inet6.0: 10 destinations, 10 routes (10 active, 0 holddown, 0 hidden)


+ = Active Route, - = Last Active, * = Both

2001:240:160:1000::/52 *[OSPF/150] 00:50:06, metric 0, tag 0


(Tokyo static route) > to fe80::21f:1202:81b:af80 via ge-0/0/0.0
fdcd:192:168:1::1/128 *[OSPF/10] 00:53:54, metric 1
© 2011 Juniper Networks, Inc. All rights reserved. > to fe80::21f:1202:81b:af80 via ge-0/0/0.0 www.juniper.net | 12
CE Routing Verification (2 of 2)
[edit policy-options policy-statement static]
lab@TOKYO-ISIS# run ping 172.16.0.1 rapid
PING 172.16.0.1 (172.16.0.1): 56 data bytes
!!!!!
--- 172.16.0.1 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 3.230/15.857/29.276/10.164 ms

[edit policy-options policy-statement static]


lab@TOKYO-ISIS# run ping fdcd:172:16:0::1 rapid
PING6(56=40+8+8 bytes) fdcd:172:16::2 --> fdcd:172:16::1
!!!!!
--- fdcd:172:16:0::1 ping6 statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
Both IPv4 and IPv6
round-trip min/avg/max/std-dev = 8.390/13.642/30.086/8.244 ms traffic are going through
[edit interfaces ge-0/0/0]
lab@NEWYORK# run ping 172.16.0.2 rapid
the VPN.
PING 172.16.0.2 (172.16.0.2): 56 data bytes
!!!!!
--- 172.16.0.2 ping statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/stddev = 1.974/9.598/29.625/10.199 ms

[edit interfaces ge-0/0/0]


lab@NEWYORK# run ping fdcd:172:16:0::2 rapid
PING6(56=40+8+8 bytes) fdcd:172:16::1 --> fdcd:172:16::2
!!!!!
--- fdcd:172:16:0::2 ping6 statistics ---
5 packets transmitted, 5 packets received, 0% packet loss
round-trip min/avg/max/std-dev = 19.740/27.269/37.032/7.879 ms

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 13


PE L2 VPN Configuration
[edit routing-instances l2vpn-for-ipv6]
lab@PE2# show | display set relative
set instance-type l2vpn
set interface fe-0/0/1.0
set route-distinguisher 64513:100
set vrf-target target:64513:100
set protocols l2vpn encapsulation-type ethernet-vlan
set protocols l2vpn site PE2 site-identifier 2
set protocols l2vpn site PE2 interface fe-0/0/1.0 remote-site-id 1

[edit interfaces fe-0/0/1 unit 0]


lab@PE2# show | display set relative
set vlan-tagging
set encapsulation vlan-ccc
set unit 0 encapsulation vlan-ccc
set unit 0 vlan-id 520

[edit protocols bgp]


lab@SAOPAULO-ISIS# show | display set relative Customer-facing interface:
set group PE2-PE1 type internal
set group PE2-PE1 local-address 192.168.8.1 - No IP or IPv6 addressing required
set group PE2-PE1 family l2vpn signaling
set group PE2-PE1 neighbor 192.168.16.1 - No IGP running on this interface
[edit protocols mpls]
lab@SAOPAULO-ISIS# show | display set relative
set label-switched-path PE2-PE1 to 192.168.16.1
set interface all
set interface fxp0.0 disable

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 14


IPv6 Edge Router (6PE) over MPLS

IPv6 Unaware
No Core Upgrade
Dual-Stack
MP-iBGP Dual-Stack
Router Session Router
over IPv4

6PE1 P1 P2 6PE2

CE1
LSPx2
EBGP EBGP CE2
Session Session
over IPv6 over IPv6
IPv6-only or
Dual-Stack
Router IPv6-only or
Dual-Stack
Router

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 15


6PE Operation—Control Plane: IGP
[edit]
lab@6PE1# run show route 192.168.16.1
inet.0: 8 destinations, 8 routes (8 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

192.168.16.1/32 * [IS-IS/18] 1d 15:10:24, metric 20


> to 10.0.3.2 via fe-0/0/0.0

MP-iBGP
Session
over IPv4 lo0.0 192.168.16.1

6PE1 P1 P2 6PE2

CE1
LSPx2
EBGP EBGP CE2
Session session
over IPv6 over IPv6
IPv6-only or
Dual-Stack
Router IPv6-only or
Dual-Stack
Router

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 16


6PE Operation—Control Plane: MPLS LSP
[edit]
lab@6PE1S# run show rsvp session ingress
Ingress RSVP: 1 sessions
To From State Rt Style Labelin Labelout LSPname
192.168.16.1 192.168.8.1 Up 0 1 FF - 100000 6PE1-6PE2
Total 1 displayed, Up 1, Down 0
MP-iBGP
Session

lo0.0 192.168.16.1

6PE1 P1 P2 6PE2

CE1
LSPx2
EBGP
EBGP Session CE2
Session
IPv6-only or
Dual-Stack
Router IPv6-only or
Dual-Stack
Router

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 17


6PE Operation—Control Plane: EBGP
[edit]
lab@6PE2# run show route protocol bgp
inet6.0: 6 destinations, 6 routes (6 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both

2001:123:123::/48 *[BGP/170] 00:00:13, localpref 100


AS path: 64512 I
> to 2001:10:0:8::2 via fe-0/0/1.0
MP-iBGP
Session
over IPv4
lo0.0 192.168.16.1

6PE1 P1 P2 6PE2

CE1
2001:123:123::/48
LSPx2
EBGP
AS 64513
EBGP CE2
Session Session
over IPv6 over IPv6
IPv6-only or
Dual-Stack
Router IPv6-only or
Dual-Stack
Router
AS 64512

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 18


6PE Operation—Control Plane: MP-BGP
[edit protocols bgp]
lab@6PE1# run show route 2001:123:123::/48

inet6.0: 1 destinations, 1 routes (1 active, 0 holddown, 0 hidden)


+ = Active Route, - = Last Active, * = Both

2001:123:123::/48 *[BGP/170] 00:03:47, localpref 100, from 192.168.8.1


AS path: 64512 I
> to 10.0.4.2 via fe-0/0/0.0, label-switched-path 6PE1-6PE2

lo0.0 192.168.16.1
2001:123:123::/48
6PE1 P1 P2 6PE2

CE1
LSPx2
AS 64513
EBGP EBGP CE2
Session Session
over IPv6 over IPv6
IPv6-only or
Dual-Stack
Router IPv6-only or
Dual-Stack
Router
AS 64512

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 19


6PE Operation—Control Plane: EBGP

lo0.0 192.168.16.1
2001:123:123::/48

6PE1 P1 P2 6PE2

CE1

LSPx2
EBGP AS 64513
session EBGP CE2
over IPv6 Session
over IPv6

[edit protocols bgp]


lab@CE1S# run show route 2001:123:123::/48 IPv6-only or
Dual-Stack
inet6.0: 9 destinations, 9 routes (9 active, 0 holddown, 0 hidden)
+ = Active Route, - = Last Active, * = Both Router
AS 64512
2001:123:123::/48 *[BGP/170] 00:00:34, localpref 100
AS path: 64513 64512 I
> to fdcd:10:0:1::1 via ge-0/0/0.0

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 20


6PE Operation—Data Plane (1 of 5)

6PE1 P1 P2 6PE2

CE1

LSPx2
AS 64513
CE2
IPv6 packet
DA =
2001:123:123::1

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 21


6PE Operation—Data Plane (2 of 5)

IPv6 packet IPv6 explicit 6PE2 label =


DA = 2001:123:123::1 Null = 2 100,000

P1 P2
6PE1 6PE2

CE1

LSPx2
AS 64513
CE2

AS 64512

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 22


6PE Operation—Data Plane (3 of 5)

IPv6 packet IPv6 explicit 6PE2 label =


DA = 2001:123:123::1 Null = 2 100,001

P1 P2 6PE2
6PE1

CE1

LSPx2
AS 64513
CE2

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 23


6PE Operation—Data Plane (4 of 5)

IPv6 packet IPv6 explicit


DA = 2001:123:123::1 Null = 2
6PE2 label =
100,001

P1 P2
6PE1 6PE2

CE1
LSPx2
AS 64513
CE2

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 24


6PE Operation—Data Plane (5 of 5)

IPv6 explicit
Null = 2 IPv6 packet
P1 P2 6PE2
6PE1 DA = 2001:123:123::1
CE1
LSPx2
AS 64513
CE2

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 25


Junos OS 6PE Configuration Steps

1. Configure IPv6 on the customer routers.


2. Configure IPv6 on the 6PE routers.
3. Configure MPLS and RSVP on the 6PE and P routers.
4. Configure MPLS LSPs and IPv6 tunneling between the
PE routers.
5. Enable an IPv4 IGP on the 6PE and P routers.
6. Configure MBGP on the 6PE routers.

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 26


Step 1:
Configure IPv6 on the Customer Router
A) Addressing (CE routers):

[edit interfaces]
lab@CE1# show | display set
set interfaces ge-0/0/0 vlan-tagging
set interfaces ge-0/0/0 unit 0 vlan-id 100
set interfaces ge-0/0/0 unit 0 family inet6 address fdcd:10:0:1::2/64
set interfaces ge-0/0/0 unit 0 family inet address 10:0:1::2/24

B) Routing (CE routers):

[edit protocols bgp]


lab@CE1# show | display set
set protocols bgp group v6-peer type external
set protocols bgp group v6-peer peer-as 64513
set protocols bgp group v6-peer neighbor fdcd:10:0:1::1

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 27


Step 2: Configure IPv6 on the 6PE Routers
A) Addressing (6PE routers):

[edit interfaces]
lab@6PE1# show | display set
set interfaces fe-0/0/1 vlan-tagging
set interfaces fe-0/0/1 unit 0 vlan-id 100
set interfaces fe-0/0/1 unit 0 family inet6 address fdcd:10:0:1::1/64
set interfaces fe-0/0/1 unit 0 family inet address 10:0:1::1/24

B) Routing (6PE routers):

[edit protocols bgp]


lab@6PE1# show | display set
set protocols bgp group v6-peer type external
set protocols bgp group v6-peer peer-as 64511
set protocols bgp group v6-peer neighbor fdcd:10:0:1::2

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 28


Step 3:
Configure MPLS on CE and PE Routers
A) Protocols RSVP and MPLS on interfaces (all PE and CE routers)

[edit protocols]
lab@AMSTERDAM-ISIS# show mpls | display set
set protocols mpls interface all
set protocols mpls interface fxp0.0 disable

[edit protocols]
lab@AMSTERDAM-ISIS# show rsvp | display set
set protocols rsvp interface all
set protocols rsvp interface fxp0.0 disable

B) Family mpls on interfaces (all PE and CE routers)

[edit groups]
lab@AMSTERDAM-ISIS# show | display set
set groups mpls interfaces <*> unit <*> family mpls
[edit groups]
lab@AMSTERDAM-ISIS# top show interfaces | display set
set interfaces apply-groups mpls
set interfaces lo0 unit 0 apply-groups-except mpls

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 29


Step 4: Configure MPLS LSPs and IPv6 Tunneling
on 6PE Routers
A) MPLS LSPs (6PE routers only):

[edit protocols mpls]


lab@LONDON-ISIS# show | display set
set protocols mpls label-switched-path PE1-PE2 to 192.168.8.1

B) IPv6 MPLS tunneling (6PE routers only)

[edit protocols mpls]


lab@LONDON-ISIS# show | display set
set protocols mpls ipv6-tunneling <<< very important!!! Easy to forget!!!

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 30


Step 5: Configuring an IPv4 IGP on CE and PE
Routers

[edit protocols isis]


lab@LONDON-ISIS# show | display set
set protocols isis level 1 disable
set protocols isis interface fe-0/0/0.0
set protocols isis interface lo0.0

or

[edit protocols ospf]


lab@LONDON-ISIS# show | display set
set protocols ospf area 0 interface fe-0/0/0.0
set protocols ospf area 0 interface lo0.0

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 31


Step 6: Configuring Multiprotocol BGP on 6PE
Routers
[edit protocols bgp]
lab@LONDON-ISIS# show | display set
set protocols bgp group mp-bgp type internal
set protocols bgp group mp-bgp local-address 192.168.16.1
set protocols bgp group mp-bgp family inet6 labeled-unicast explicit-null
set protocols bgp group mp-bgp neighbor 192.168.8.1

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 32


Example

2001:400:234:CE2::1/64
2001:400:234:CE1::1/64
EBGP MP-BGP EBGP
over TCPv6 over TCPv4 over TCPv6

8001::2/126

8002::2/126
8001::1/126

8002::1/126
ge-0/0/0
OSPF(IPv4)

ge-0/0/0

ge-0/0/0
ge-0/0/0
fe-0/0/0

fe-0/0/0
MPLS LSP

2001:400:234:CE1::/64 2001:400:234:CE2::/64

100.255.2.1
ge-0/0/1

ge-0/0/0
100.255.2.2

ge-0/0/1
100.255.3.1

ge-0/0/1
100.255.3.2
CE1 6PE1 P 6PE2 CE2
AS100 AS300
CE1
AS200
[edit]
user@CE1#Set interfaces fe-0/0/0.0 family inet 6 address 2001:400:234:CE1::1/64
user@CE1#Set interfaces ge-0/0/0.0 family inet 6 address 8001::2/126

user@CE1#Set routing options autonomous–system 100

user@CE1#Set protocols bgp group to_PE1 type external


user@CE1#Set protocols bgp group to_PE1 local-address 8001::2
user@CE1#Set protocols bgp group to_PE1 family inet6 unicast
user@CE1#Set protocols bgp export policy1
user@CE1#Set protocols bgp peer-as 200
user@CE1#Set protocols bgp neighbor 8001::1

user@CE1#Set policy-options policy-statement policy1 term 1 from family inet6


user@CE1#Set policy-options policy-statement policy1 term 1 from route-filter 2001:400:234:CE1::/64
user@CE1#Set policy-options policy-statement policy1 term 1 then accept
user@CE1#Set policy-options policy-statement policy1 term 2 then reject

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 33


Example

2001:400:234:CE1::1/64

2001:400:234:CE2::1/64
EBGP MP-BGP EBGP
over TCPv6 over TCPv4 over TCPv6

8002::1/126
8001::2/126

8002::2/126
8001::1/126
OSPF(IPv4)

ge-0/0/0
ge-0/0/0

ge-0/0/0
ge-0/0/0
fe-0/0/0

fe-0/0/0
MPLS LSP

100.255.2.1

ge-0/0/1
100.255.3.1
ge-0/0/1

ge-0/0/0
100.255.2.2

ge-0/0/1
100.255.3.2
2001:400:234:CE1::/64 2001:400:234:CE2::/64
CE1 6PE1 P 6PE2 CE2
AS100 AS300
CE2
AS200
[edit]
user@CE2#Set interfaces fe-0/0/0.0 family inet 6 address 2001:400:234:CE2::1/64
user@CE2#Set interfaces ge-0/0/0.0 family inet 6 address 8002::2/126

user@CE2#Set routing options autonomous–system 300

user@CE2#Set protocols bgp group to_PE1 type external


user@CE2#Set protocols bgp group to_PE1 local-address 8002::2
user@CE2#Set protocols bgp group to_PE1 family inet6 unicast
user@CE2#Set protocols bgp export policy1
user@CE2#Set protocols bgp peer-as 200
user@CE2#Set protocols bgp neighbor 8002::1

user@CE2#Set policy-options policy-statement policy1 term 1 from family inet6


user@CE2#Set policy-options policy-statement policy1 term 1 from route-filter 2001:400:234:CE2::/64
user@CE2#Set policy-options policy-statement policy1 term 1 then accept
user@CE2#Set policy-options policy-statement policy1 term 2 then reject

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 34


Example

2001:400:234:CE1::1/64

2001:400:234:CE2::1/64
EBGP MP-BGP EBGP
over TCPv6 over TCPv4 over TCPv6

8001::2/126

8001::1/126

8002::2/126
8002::1/126
OSPF(IPv4)
fe-0/0/0

fe-0/0/0
ge-0/0/0

ge-0/0/0
ge-0/0/0

ge-0/0/0
MPLS LSP

2001:400:234:CE1::/64 2001:400:234:CE2::/64

ge-0/0/1
100.255.2.1

ge-0/0/0

ge-0/0/1

ge-0/0/1
100.255.2.2

100.255.3.1

100.255.3.2
CE1 6PE1 P 6PE2 CE2
AS100 AS300
P:
AS200
[edit]
user@P#Set interfaces ge-0/0/0.0 family inet address 100.255.2.2/24
user@P#set interfaces ge-0/0/1.0 family inet address 100.255.3.2/24

user@P#Set interfaces ge-0/0/0.0 family mpls


user@P#Set interfaces ge-0/0/1.0 family mpls

user@P#Set routing-options autonomous-system 300

user@P#Set protocols rsvp interface ge-0/0/0.0


user@P#Set protocols rsvp interface ge-0/0/1.0

user@P#Set protocols mpls interface ge-0/0/0.0


user@P#Set protocols mpls interface ge-0/0/1.0

user@P#Set protocols ospf traffic-engineering


user@P#Set protocols ospf area 0.0.0.0 interface ge-0/0/0.0
user@P#Set protocols ospf area 0.0.0.0 interface ge-0/0/1.0
© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 35
Example
PE1:

[edit]
user@PE1#Set interfaces ge-0/0/1.0 family inet address 100.255.2.1/24
user@PE1#Set interfaces ge-0/0/1.0 family inet6
user@PE1#Set interfaces ge-0/0/1.0 family mpls

user@PE1#Set interfaces ge-0/0/0.0 family inet6 address 8001::1/126

user@PE1#Set interfaces lo0.0 family inet address 100.255.255.1/24


user@PE1#Set interfaces lo0.0 family mpls

user@PE1#Set routing-options autonomous-system 200

user@PE1#Set protocols rsvp interface ge-0/0/1.0

user@PE1#Set protocols mpls ipv6-tunneling


user@PE1#Set protocols mpls label-switched-path to_PE2 to 100.255.255.2
user@PE1#Set protocols mpls interface ge-0/0/1.0

user@PE1#Set protocols bgp group to_PE2 type internal


user@PE1#Set protocols bgp group to_PE2 local-address 100.255.255.1
user@PE1#Set protocols bgp group to_PE2 family inet6 labeled-unicast explicit-null
user@PE1#Set protocols bgp group to_PE2 export red-export
user@PE1#Set protocols bgp group to_PE2 neighbor 100.255.255.2

user@PE1#Set protocols bgp group group to_CE1 local-address 8001::1


user@PE1#Set protocols bgp group group to_CE1 family inet6 unicast
user@PE1#Set protocols bgp group group to_CE1 peer-as 100
user@PE1#Set protocols bgp group group to_CE1 neighbor 8001::2

user@PE1#Set protocols ospf traffic-engineering


user@PE1#Set protocols ospf area 0.0.0.0
user@PE1#Set protocols ospf area 0.0.0.0 interface ge-0/0/1
user@PE1#Set protocols ospf area 0.0.0.0 interface lo0.0 passive

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 36


Example
PE2:

[edit]
user@PE2#Set interfaces ge-0/0/1.0 family inet address 100.255.3.1/24
user@PE2#Set interfaces ge-0/0/1.0 family inet6
user@PE2#Set interfaces ge-0/0/1.0 family mpls

user@PE2#Set interfaces ge-0/0/0.0 family inet6 address 8002::1/126

user@PE2#Set interfaces lo0.0 family inet address 100.255.255.2/24


user@PE2#Set interfaces lo0.0 family mpls

user@PE2#Set routing-options autonomous-system 200

user@PE2#Set protocols rsvp interface ge-0/0/1.0

user@PE2#Set protocols mpls ipv6-tunneling


user@PE2#Set protocols mpls label-switched-path to_PE1 to 100.255.255.1
user@PE2#Set protocols mpls interface ge-0/0/1.0

user@PE2#Set protocols bgp group to_PE1 type internal


user@PE2#Set protocols bgp group to_PE1 local-address 100.255.255.2
user@PE2#Set protocols bgp group to_PE1 family inet6 labeled-unicast explicit-null
user@PE2#Set protocols bgp group to_PE1 export red-export
user@PE2#Set protocols bgp group to_PE1 neighbor 100.255.255.1

user@PE2#Set protocols bgp group group to_CE2 local-address 8002::1


user@PE2#Set protocols bgp group group to_CE2 family inet6 unicast
user@PE2#Set protocols bgp group group to_CE2 peer-as 200
user@PE2#Set protocols bgp group group to_CE2 neighbor 8002::2

user@PE2#Set protocols ospf traffic-engineering


user@PE2#Set protocols ospf area 0.0.0.0
user@PE2#Set protocols ospf area 0.0.0.0 interface ge-0/0/1
user@PE2#Set protocols ospf area 0.0.0.0 interface lo0.0 passive

© 2011 Juniper Networks, Inc. All rights reserved. www.juniper.net | 37

You might also like