28.06.2014 Views

Discussion

Discussion

Discussion

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

As a first step, set up the routing protocols necessary for the Layer 3 VPN. The PE<br />

and P routers must be running an IGP (this recipe uses OSPF). Following is the configuration<br />

for one of the PE routers, RouterG:<br />

[edit protocols]<br />

aviva@RouterG# set ospf area 0.0.0.0 interface t1-4/0/0<br />

aviva@RouterG# set ospf area 0.0.0.0 interface lo0.0 passive<br />

aviva@RouterG# set ospf area 0.0.0.0 interface fe-0/0/0 disable<br />

aviva@RouterG# set ospf traffic-engineering<br />

On the PE router, enable MPLS and RSVP on the interfaces that connect to the P<br />

router:<br />

aviva@RouterG# set mpls interface t1-4/0/0<br />

aviva@RouterG# set rsvp interface t1-4/0/0<br />

Also, remember to configure family mpls on all interfaces between the PE and P<br />

router that carry MPLS and RSVP:<br />

[edit interfaces]<br />

aviva@RouterG# set t1-4/0/0 unit 0 family mpls<br />

The IGP, MPLS, and RSVP configuration for the other PE router, RouterF, and for<br />

the P router, RouterJ, is the same, substituting the appropriate interface names.<br />

On each PE router, set up an IBGP session to the other PE router. For PE RouterG,<br />

the following commands set up the session:<br />

[edit protocols bgp group RouterG-PE-to-RouterF-PE]<br />

aviva@RouterG# set type internal<br />

aviva@RouterG# set local-address 192.168.19.1<br />

aviva@RouterG# set neighbor 192.168.16.1<br />

aviva@RouterG# set family inet-vpn unicast<br />

Include the equivalent configuration on the other PE router, RouterF:<br />

[edit protocols bgp group RouterF-PE-to-RouterG-PE]<br />

aviva@RouterF# set type internal<br />

aviva@RouterF# set local-address 192.168.16.1<br />

aviva@RouterF# set neighbor 192.168.19.1<br />

aviva@RouterF# set family inet-vpn unicast<br />

The second step is to create an MPLS LSP between the two PE routers to carry the<br />

VPN traffic. On RouterG, configure the LSP to RouterF:<br />

[edit protocols mpls]<br />

aviva@RouterG# set label-switched-path RouterG-PE-to-RouterF-PE to 192.168.16.1<br />

Remember that LSPs are unidirectional, so on RouterF, which is the far-end PE<br />

router, configure a return LSP to RouterG:<br />

[edit protocols]<br />

aviva@RouterF# set label-switched-path RouterF-PE-to-RouterG-PE to 192.168.19.1<br />

556 | Chapter 15: VPNs<br />

This is the Title of the Book, eMatter Edition<br />

Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!