!
! On PE1, configure a loopback interface, and assign an IP address and mask to
! the interface.
host1:pe1(config)#
interface loopback 0
host1:pe1(config-if)#
ip address 11.11.11.11 255.255.255.255
!
! Assign the router ID using the IP address you configured for the loopback
! interface.
host1:pe1(config)#
ip router-id 11.11.11.11
!
! Create an IEEE 802.3ad LAG bundle, lag2, and add the Gigabit Ethernet physical
! interfaces to lag2. Specify VLAN as the encapsulation method for the member
! interfaces.
host1:pe1(config)#
interface lag 2
host1:pe1(config-if)#
member-interface gigabitEthernet 2/1/1
host1:pe1(config-if)#
member-interface gigabitEthernet 2/1/2
host1:pe1(config-if)#
encapsulation vlan
!
! Specify a subinterface by adding a unique subinterface number to the LAG bundle
! name. Assign an S-VLAN ID and a VLAN ID for the subinterface. Also, configure
! MPLS tunneling.
host1:pe1(config-if)#
interface lag 2.1
host1:pe1(config-subif)#
svlan id 1 1
host1:pe1(config-subif)#
mpls-relay 22.22.22.22 1
!
! Create another Gigabit Ethernet interface on PE1, specify VLAN as the
! encapsulation method, and configure another subinterface. For this subinterface,
! assign a VLAN ID, specify the encapsulation method as VLAN, configure MPLS,
! and assign an IP address and mask. Also, enable LDP and topology-driven LSP, as
! does any LDP-related command, using an implicit default profile, on this Gigabit
! Ethernet subinterface.
host1:pe1(config)#
interface gigabitEthernet 2/1/4
host1:pe1(config-if)#
encapsulation vlan
host1:pe1(config-if)#
interface gigabitEthernet 2/1/4.1
host1:pe1(config-subif)#
vlan id 20
host1:pe1(config-subif)#
ip address 2.0.0.1 255.255.255.0
host1:pe1(config-subif)#
mpls
host1:pe1(config-subif)#
mpls ldp
!
! Configure a static route with the destination IP address, mask, and IP address of
! the next hop that can be used to reach the destination network.
host1:pe1(config)#
ip route 22.22.22.22 255.255.255.255 2.0.0.2
!
! Configure LDP to advertise a non-null label for the egress routes.
host1:pe1(config)#
mpls ldp egress-label non-null
Configuration on PE2 (Remote PE Router)
Use the following commands on the remote PE router (PE2) to configure the MPLS
L2VPN tunnel shown inFigure 122 on page 548.
! Configure a virtual router PE2.
host1(config)#
virtual-router pe1
!
! Enable MPLS on a virtual router in Global Configuration mode.
MPLS L2VPN Tunnel over VLAN over LAG Configuration Example
■
549
Chapter 7: Configuring Layer 2 Services over MPLS
Summary of Contents for BGP
Page 6: ...vi ...
Page 8: ...viii JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 37: ...Part 1 Border Gateway Protocol Configuring BGP Routing on page 3 Border Gateway Protocol 1 ...
Page 38: ...2 Border Gateway Protocol JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 234: ...198 Monitoring BGP JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 236: ...200 Multiprotocol Layer Switching JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 542: ...506 Monitoring BGP MPLS VPNs JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 544: ...508 Layer 2 Services Over MPLS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 610: ...574 Virtual Private LAN Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 624: ...588 VPLS References JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 680: ...644 Virtual Private Wire Service JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 724: ...688 Monitoring MPLS Forwarding Table for VPWS JUNOSe 11 1 x BGP and MPLS Configuration Guide ...
Page 725: ...Part 6 Index Index on page 691 Index 689 ...
Page 726: ...690 Index JUNOSe 11 1 x BGP and MPLS Configuration Guide ...