[Contents] [Prev] [Next] [Index] [Report an Error]

# VPWS Configuration Example

The example in this section shows how to configure the VPWS topology illustrated in Figure 134. The example includes procedures for configuring VPWS on both the local E Series router (PE 1) and the remote E Series router (PE 2).

Figure 134: Topology for VPWS Configuration Example

## Topology Overview

The sample topology in Figure 134 includes two L2VPNs, L2VPN A and L2VPN B. L2VPN A connects CE 1, at the edge of Customer A’s Boston site, with CE 3, at the edge of Customer A’s Chicago site. Similarly, L2VPN B connects CE 2, at the edge Customer B’s Boston site, with CE 4, at the edge of Customer B’s Chicago site.

The E Series routers in the topology, PE 1 and PE 2, each participate in both L2VPN A and L2VPN B. The example configures a total of four separate L2VPN instances, one for each L2VPN on each PE router. The instances for L2VPN A are named l2vpnA, and the instances for L2VPN B are named l2vpnB.

For each VPWS instance, an Ethernet network interface provides a connection to the associated CE device.

Each PE router in the sample topology also has an ATM core-facing interface that connects it to the provider (P) router in the service provider core. You must configure MPLS LSPs on the core-facing interfaces to connect PE 1 and PE 2 through the P router across the service provider core. Finally, you must configure BGP on both PE 1 and PE 2 to provide signaling for both L2VPNs.

## Configuration on PE 1 (Local PE Router)

Use the following commands on the local PE router (PE 1) to configure the VPWS topology shown in Figure 134.

`

! Configure VPWS instance l2vpnA.
host1(config)#l2vpn l2vpnA encapsulation-type ethernet
host1(config)#l2vpn l2vpnA site-range 10
host1(config)#l2vpn l2vpnA site-name boston site-id 1
host1(config)#l2vpn l2vpnA rd 100:11
host1(config)#l2vpn l2vpnA route-target both 100:1
host1(config)#l2vpn l2vpnA control-word
host1(config)#l2vpn l2vpnA sequencing
!
! Configure VPWS instance l2vpnB.
host1(config)#l2vpn l2vpnB encapsulation-type atm
host1(config)#l2vpn l2vpnB site-range 20
host1(config)#l2vpn l2vpnB site-name boston site-id 2
host1(config)#l2vpn l2vpnB rd 100:12
host1(config)#l2vpn l2vpnB route-target both 100:2
host1(config)#l2vpn l2vpnB control-word
host1(config)#l2vpn l2vpnB sequencing
!
! Configure the customer-facing interface between PE 1 and CE 1
! in L2VPN instance l2vpnA.
host1(config)#interface fastEthernet 4/0
host1(config-if)#l2vpn l2vpnA local-site-id 1 remote-site-id 3
host1(config-if)#exit
!
! Configure the customer-facing interface between PE 1 and CE 2
! in L2VPN instance l2vpnB.
host1(config)#interface gigabitEthernet 1/1
host1(config-subif)#l2vpn l2vpnB local-site-id 2 remote-site-id 4
host1(config-if)#exit
!
! Configure a loopback interface on PE 1 and assign it an IP address.
host1(config)#interface loopback 0
host1(config-if)#ip address 10.1.1.1 255.255.255.255
host1(config-if)#exit
!
! Assign the router ID for PE 1 using the IP address of the loopback interface.
host1(config)#ip router-id 10.3.3.3
!
! Configure BGP signaling.
host1(config)#router bgp 738
host1(config-router)#neighbor 10.1.1.1 remote-as 738
host1(config-router)#neighbor 10.1.1.1 update-source loopback 0
host1(config-router)#neighbor 10.1.1.1 next-hop-self
host1(config-router)#address-family l2vpn signaling
host1(config-router-af)#neighbor 10.1.1.1 activate
host1(config-router-af)#neighbor 10.1.1.1 next-hop-self
host1(config-router-af)#exit-address-family
host1(config-router)#address-family vpws l2vpnA
host1(config-router-af)#exit-address-family
host1(config-router)#address-family vpws l2vpnB
host1(config-router-af)#exit-address-family
!
! Enable MPLS on the default virtual router.
host1(config)#mpls
! Configure ATM core-facing interface 2/0.100 between PE 1 and the P router,
host1(config)#interface atm 2/0.100
host1(config-subif)#atm pvc 100 1 100 aal5snap 0 0 0
! and assign it an IP address.
host1(config-subif)#ip address 192.168.5.5 255.255.255.0
!
! Enable MPLS, LDP, and topology-driven LSPs on the core-facing interface.
host1(config-subif)#mpls
host1(config-subif)#mpls ldp
host1(config-subif)#exit

`

## Configuration on PE 2 (Remote PE Router)

Use the following commands on the remote PE router (PE 2) to configure the VPWS topology shown in Figure 134.

`

! Configure VPWS instance l2vpnA. The route target (100:1)
! matches the route target configured for l2vpnA on PE 1.
host2(config)#l2vpn l2vpnA encapsulation-type ethernet
host2(config)#l2vpn l2vpnA site-range 10
host2(config)#l2vpn l2vpnA site-name chicago site-id 3
host2(config)#l2vpn l2vpnA rd 100:11
host2(config)#l2vpn l2vpnA route-target both 100:1
host2(config)#l2vpn l2vpnA control-word
host2(config)#l2vpn l2vpnA sequencing
!
! Configure VPWS instance l2vpnB. The route target (100:2)
! matches the route target configured for l2vpnB on PE 1.
host2(config)#l2vpn l2vpnB encapsulation-type ethernet
host2(config)#l2vpn l2vpnB site-range 20
host2(config)#l2vpn l2vpnB site-name chicago site-id 4
host2(config)#l2vpn l2vpnB rd 100:12
host2(config)#l2vpn l2vpnB route-target both 100:2
host2(config)#l2vpn l2vpnB control-word
host2(config)#l2vpn l2vpnB sequencing
!
! Configure the customer-facing interface between PE 2 and CE 3
! in L2VPN instance l2vpnA.
host2(config)#interface fastEthernet 3/5
host2(config-if)#l2vpn l2vpnA local-site-id 3 remote-site-id 1
host2(config-if)#exit
!
! Configure the customer-facing interface between PE 2 and CE 4
! in L2VPN instance l2vpnB.
host2(config)#interface gigabitEthernet 0/1
host2(config-subif)#l2vpn l2vpnB local-site-id 4 remote-site-id 2
host2(config-if)#exit
!
! Configure a loopback interface on PE 2 and assign it an IP address.
host2(config)#interface loopback 0
host2(config-if)#ip address 10.2.2.2 255.255.255.255
host2(config-if)#exit
!
! Assign the router ID for PE 2 using the IP address of the loopback interface.
host2(config)#ip router-id 10.2.2.2
!
! Configure BGP signaling.
host2(config)#router bgp 738
host2(config-router)#neighbor 10.2.2.2 remote-as 738
host2(config-router)#neighbor 10.2.2.2 update-source loopback 0
host2(config-router)#neighbor 10.2.2.2 next-hop-self
host2(config-router)#address-family l2vpn signaling
host2(config-router-af)#neighbor 10.2.2.2 activate
host2(config-router-af)#neighbor 10.2.2.2 next-hop-self
host2(config-router)#address-family vpws l2vpnA
host2(config-router-af)#exit-address-family
host2(config-router)#address-family vpws l2vpnB
host2(config-router-af)#exit-address-family
!
! Enable MPLS on the default virtual router.
host2(config)#mpls
!
! Configure ATM core-facing interface 3/1.100 between PE 2 and the P router,
! and assign it an IP address.
host2(config)#interface atm 3/1.100 point-to-point
host2(config-subif)#atm pvc 100 1 100 aal5snap 0 0 0
host2(config-subif)#ip address 192.168.4.4 255.255.255.0
!
! Enable MPLS, LDP, and topology-driven LSPs on the on the core-facing interface.
host2(config-subif)#mpls
host2(config-subif)#mpls ldp
host2(config-subif)#exit
!
! Enable MPLS, LDP, and topology-driven LSPs on the core-facing interface.
host1(config-subif)#mpls
host1(config-subif)#mpls ldp
host1(config-subif)#exit

`

[Contents] [Prev] [Next] [Index] [Report an Error]