Spedge10 Lab
Spedge10 Lab
Spedge10 Lab
Lab Guide
Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this
URL: www.cisco.com/go/trademarks. Third party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a
partnership relationship between Cisco and any other company. (1110R)
DISCLAIMER WARRANTY: THIS CONTENT IS BEING PROVIDED “AS IS.” CISCO MAKES AND YOU RECEIVE NO WARRANTIES
IN CONNECTION WITH THE CONTENT PROVIDED HEREUNDER, EXPRESS, IMPLIED, STATUTORY OR IN ANY OTHER
PROVISION OF THIS CONTENT OR COMMUNICATION BETWEEN CISCO AND YOU. CISCO SPECIFICALLY DISCLAIMS ALL
IMPLIED WARRANTIES, INCLUDING WARRANTIES OF MERCHANTABILITY, NON-INFRINGEMENT AND FITNESS FOR A
PARTICULAR PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. This learning product
may contain early release content, and while Cisco believes it to be accurate, it falls subject to the disclaimer above.
Lab Guide © 2012 Cisco and/or its affiliates. All rights reserved.
Table of Contents
Lab Guide ........................................................................................................................... 1
Overview ............................................................................................................................................... 1
Outline ............................................................................................................................................ 1
Job Aids................................................................................................................................................. 2
Pod Access Information .................................................................................................................. 2
Device Information .......................................................................................................................... 2
IP Addressing ................................................................................................................................. 4
Lab 2-1: Implement MPLS Layer 3 VPN Backbones ............................................................................ 7
Activity Objective ............................................................................................................................ 7
Visual Objective .............................................................................................................................. 7
VRF Assignments ........................................................................................................................... 8
Required Resources ....................................................................................................................... 8
Command List................................................................................................................................. 9
Task 1: Configure the VRF Tables Necessary to Support the Customer..................................... 11
Task 2: Configure MP-BGP to Establish Routing Between the PE Routers ................................ 13
Lab 2-2: Connect Customers to MPLS Layer 3 VPNs ........................................................................ 17
Activity Objective .......................................................................................................................... 17
Visual Objective ............................................................................................................................ 17
VRF Assignments ......................................................................................................................... 18
Required Resources ..................................................................................................................... 18
Command List............................................................................................................................... 19
Task 1: Configuring Static Routes Between the PE and CE Routers .......................................... 23
Task 2: Configure RIP as the PE-CE Routing Protocol................................................................ 24
Task 3: Configure EIGRP as the PE-CE Routing Protocol .......................................................... 26
Lab 2-3: Connect Advanced Customers to MPLS Layer 3 VPNs ....................................................... 29
Activity Objective .......................................................................................................................... 29
Visual Objective ............................................................................................................................ 29
VRF Assignments ......................................................................................................................... 30
Required Resources ..................................................................................................................... 30
Command List............................................................................................................................... 31
Task 1: Configure EBGP as the PE-CE Routing Protocol ........................................................... 35
Task 2: Configure OSPF as the PE-CE Routing Protocol ............................................................ 37
Lab 3-1: Establish Overlapping and Common Services Layer 3 VPNs .............................................. 40
Activity Objective .......................................................................................................................... 40
Visual Objective ............................................................................................................................ 40
VRF Assignments ......................................................................................................................... 41
Required Resources ..................................................................................................................... 41
Command List............................................................................................................................... 42
Task 1: Enable Overlapping Layer 3 VPNs .................................................................................. 44
Task 2: Enable Common Services Layer 3 VPNs ........................................................................ 46
Lab 3-2: Establish Internet Connectivity with an MPLS Layer 3 VPN................................................. 48
Activity Objective .......................................................................................................................... 48
Visual Objective ............................................................................................................................ 48
VRF Assignments ......................................................................................................................... 49
Required Resources ..................................................................................................................... 49
Command List............................................................................................................................... 50
Task 1: Restore a Simple Customer VPN Configuration.............................................................. 53
Task 2: Establish CE-PE Connectivity for Internet Access .......................................................... 54
Task 3: Establish Internet Connectivity ........................................................................................ 55
Task 4: Establish Central Site Connectivity for Internet Access .................................................. 57
Task 5: Establish Central Site Connectivity for Internet Access Across a Separate MPLS VPN 58
Lab 3-3: Implement CSC .................................................................................................................... 60
Activity Objective .......................................................................................................................... 60
Visual Objective ............................................................................................................................ 60
VRF Assignments ......................................................................................................................... 61
Required Resources ..................................................................................................................... 61
Command List .............................................................................................................................. 62
Task 1: Restore Simple Connectivity Between the PE and CE Routers...................................... 65
Task 2: Simulate Customer Sites ................................................................................................. 66
Task 3: Configure Routing Between the PE and CE Routers ...................................................... 67
Task 4: Establish a BGP Session Between Customer Carrier Routers ....................................... 67
Lab 4-1: Implement Layer 2 VPN (VPWS and VPLS) ........................................................................ 69
Activity Objective .......................................................................................................................... 69
Visual Objective ............................................................................................................................ 69
Command List .............................................................................................................................. 70
Task 1: Remove the CSC Configuration ...................................................................................... 71
Task 2: Configure EoMPLS .......................................................................................................... 71
Task 3: Configure VPLS ............................................................................................................... 73
Task 4: Use a VFI ......................................................................................................................... 76
Answer Key ......................................................................................................................................... 81
Lab 2-1 Answer Key: Implement MPLS Layer 3 VPN Backbones ............................................... 81
Lab 2-2 Answer Key: Connect Customers to MPLS Layer 3 VPNs ............................................. 82
Lab 2-3 Answer Key: Connect Advanced Customers to MPLS Layer 3 VPNs ............................ 86
Lab 3-1 Answer Key: Establish Overlapping and Common Services Layer 3 VPNs ................... 89
Lab 3-2 Answer Key: Establish Internet Connectivity with an MPLS Layer 3 VPN ..................... 90
Lab 3-3 Answer Key: Implement CSC.......................................................................................... 96
Lab 4-1 Answer Key: Implement Layer 2 VPN (VPWS and VPLS) ........................................... 101
ii Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
SPEDGE
Lab Guide
Overview
This guide presents the instructions and other information concerning the lab activities for this
course. You can find the solutions in the lab activity Answer Key.
Outline
This guide includes these activities:
Job Aids
Lab 2-1: Implement MPLS Layer 3 VPN Backbones
Lab 2-2: Connect Customers to MPLS Layer 3 VPNs
Lab 2-3: Connect Advanced Customers to MPLS Layer 3 VPNs
Lab 3-1: Establish Overlapping and Common Services Layer 3 VPNs
Lab 3-2: Establish Internet Connectivity with an MPLS Layer 3 VPN
Lab 3-3: Implement CSC
Lab 4-1: Implement Layer 2 VPN (VPWS and VPLS)
Tear-Out Section
Job Aids
These job aids are available to help you complete lab activities.
Team number z = 1 to 4
Pod number x = 1, 3, 5, 7 or
y = 2, 4, 6, 8
Device Information
This lab topology consists of four (4) teams and eight (8) pods. Two students will work in one
pod and two pods will work in one team. Each pod has one switch and two routers. Two pods
share one additional switch. All teams share the same core routers (P1 and P2).
The CE routers in both pods are running Cisco IOS Software. The first pod within a team (pod
1, 3, 5, or 7) will work on the PE router that is running Cisco IOS XR Software. The second
pod within the same team (pod 2, 4, 6, or 8) will work on the PE router that is running Cisco
IOS XE Software.
Devices in the lab are connected with Fast Ethernet and Gigabit Ethernet connections, and two
teams have a redundant POS connection, as shown in the topology in the figure.
2 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Gi
Fa
OC3 POS
Team 1 Team 2
CE1 Pod 1 SW1 PE1 PE3 SW3 Pod 3 CE3
P1
SW12 SW34
SW56 P2 SW78
Team 3 Team 4
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-4
Device Name Device Role Lo0 IPv4 Address Lo0 IPv6 Address
Team z
CEx Pod x SWx PEx
Gi0/0 Fa0/1 Fa0/2
P1
Gi0/0/0/0
Fa0/23
Gi0/1 Fa0/24 Gi0/0/0/1
Fa0/21 Fa0/21
Fa0/22 Fa0/22
Fa0/1
Fa0/2
Fa0/23
SWxy
Fa0/24
Fa0/21
Fa0/23 Gi0/0/1
Gi0/1 Fa0/22
Fa0/24
P2
Gi0/0 Fa0/1 Fa0/2 Gi0/0/0
POS0/2/0
CEy Pod y SWy PEy
POS0/2/1
Gi POS0/2/0
Fa POS0/2/1
OC3 POS Connections to
PE(y+2)
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-5
IP Addressing
The figure illustrates the IP addressing schemes that are used in this lab setup.
Team z 10.0.1.1
CEx Pod x SWx PEx
192.168.10x.0/24 192.168.10x.0/24 192.168.x1.0/24
P1
.x1 .x0 .x0 .1
10.xy.0.1 .x0 .1 .1
.x0 .1
10.x.10.1
10.x.0.1 10.x.1.1
192.168.1.0/24
192.168.2.0/24
172.16.x.1
192.168.1xy.0/24
172.16.y.1
SWxy 10.y.0.1 10.y.1.1
10.y.10.1 .2
.y0 .y0 .2
.2
.y1 .y0 .y0 .2
P2
192.168.10y.0/24 192.168.10y.0/24 192.168.y2.0/24
.y0
CEy Pod y SWy PEy .y0
10.0.2.1
z = 1,2,3,4
Gi 172.16.100.100
x = 1,3,5,7 192.168.2w2.0/24
Fa y = 2,4,6,8 192.168.2w1.0/24
OC3 POS w = 1 (for teams 1 and 2) Connections to
Loopback 2 (for teams 3 and 4) PE(y+2)
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-6
4 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
The following figure illustrates the management IP addresses that are used in this lab setup.
Team 1 Team 2
CE1 Pod 1 SW1 PE1 PE3 SW3 Pod 3 CE3
10.10.10.14 10.10.10.11 10.10.10.17 10.10.10.25 10.10.10.19 10.10.10.22
P1
SW12 SW34
10.10.10.15 10.10.10.12 10.10.10.16 10.10.10.24 10.10.10.20 10.10.10.23
CE2 Pod 2 SW2 PE2 PE4 SW4 Pod 4 CE4
SW56 P2 SW78
10.10.10.31 10.10.10.28 10.10.10.32 10.10.10.39 10.10.10.35 10.10.10.38
CE6 Pod 6 SW6 PE6 PE8 SW8 Pod 8 CE8
Team 3 Team 4
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-7
Note Replace the x or y with your pod number to get the IP addresses within your pod (x is for
odd-numbered pods 1, 3, 5, and 7; y is for even-numbered pods 2, 4, 6, and 8). Replace the
xy (where x < y) with the numbers of the pods within the same team (for example, 12, 34,
56, or 78) to get the IP addresses of the links between those pods.
Pod IP Addressing
P1 192.168.x1.1/24 2001:db8:192:168:x1::1/80
192.168.y1.1/24 2001:db8:192:168:y1::1/80
P2 192.168.x2.2/24 2001:db8:192:168:x2::2/80
192.168.y2.2/24 2001:db8:192:168:y2::2/80
Lo500 172.16.100.100 /
Core IP Addressing
P1 192.168.1.1/24 P2 192.168.1.2/24
2001:db8:192:168:1::1/80 2001:db8:192:168:1::2/80
192.168.2.1/24 192.168.2.2/24
2001:db8:192:168:2::1/80 2001:db8:192:168:2::2/80
6 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Lab 2-1: Implement MPLS Layer 3 VPN Backbones
Complete this lab activity to practice what you learned in the related module.
Activity Objective
In this lab activity, you will establish simple MPLS Layer 3 VPNs to support customer needs.
Each pod is responsible for CE and PE router configurations that are related to the customer.
This division of work between pods applies to all subsequent exercises in this course.
Note Students from two pods will work in a team. The CE routers in both pods are running Cisco
IOS Software. The first pod in the team will work on the PE router that is running Cisco IOS
XR Software, and the second pod in the team will work on the PE router that is running
Cisco IOS XE Software. Students in the same team should coordinate their lab activities.
You will work on different Cisco routers that are running Cisco IOS (c2900), Cisco IOS XE
(asr1001), and Cisco IOS XR (asr9k) Software. After completing this activity, you will be able
to meet these objectives:
Enable LDP on your PE and P routers
Configure the VRF tables that are necessary to support your customer
Configure MP-BGP to establish routing between the PE routers
Visual Objective
The figure illustrates what you will accomplish in this activity.
P1 P2
CE3 PE3 PE4 CE4
MPLS
Core
Pod 5 Pod 6
Team 3
CE5 PE5 Customer C PE6 CE6
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-8
This activity contains tasks that enable you to configure your core MPLS VPN infrastructure.
Required Resources
These resources and equipment are required to complete this activity:
A PC with access to the Internet
An SSH client that is installed on the PC
8 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Command List
The table describes the commands that are used in this lab activity.
Cisco IOS and IOS XE Commands
Command Description
mpls label protocol {ldp | tdp | both } Specifies the label distribution protocol to be used
on a given interface or globally
neighbor next-hop-self Configures the router as the next hop for a BGP-
speaking neighbor or peer group (in router
configuration mode)
neighbor update-source Has Cisco IOS Software allow IBGP sessions to use
any operational interface for TCP connections (in
router configuration mode)
Command Description
router-id [type number | ip-address] Specifies the router ID of the local node.
In Cisco IOS XR, the router ID is specified as an
interface name or IP address.
interface type number Enters interface configuration mode for LDP (LDP
mode)
ipv4 | ipv6 address ip_address/len Sets the IPv4 or IPv6 address for an interface and
the subnet mask using the prefix length format
neighbor next-hop-self Configures the router as the next hop for a BGP-
speaking neighbor or peer group (in router
configuration mode)
10 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Task 1: Configure the VRF Tables Necessary to Support the
Customer
In this task and the following tasks, you will first enable LDP on the PE routers and then
establish simple VPNs for the customer. Each pod is responsible for all PE router
configurations that are related to the customer. This division of work between pods applies to
all subsequent exercises in this course. All P routers are preconfigured.
Activity Procedure
Complete these steps to prepare the configuration for the routers in your pod. You will work
with students from other pods to finish this task.
Step 1 Enable LDP on the interface that is facing the P router.
Step 2 Create a VRF instance on the PE router. Use the “VRF Details” table for reference.
Step 3 Associate the PE-CE interface with the configured VRF. Use the details from the
“VRF Details” table.
Activity Verification
Complete the verification of the lab activity:
On each of your routers, verify that the interfaces to the P routers have been configured to
use LDP.
RP/0/RSP0/CPU0:PEx# show mpls interface
Interface LDP Tunnel Enabled
-------------------------- -------- -------- --------
GigabitEthernet0/0/0/2 Yes No Yes
On each of your routers, verify that the interface is up and has established an LDP neighbor
relationship.
RP/0/RSP0/CPU0:PEx#show mpls ldp neighbor
Peer LDP Identifier: 10.0.1.1:0
TCP connection: 10.0.1.1:646 - 10.3.1.1:43457
Graceful Restart: Yes (Reconnect Timeout: 120 sec, Recovery: 0 sec)
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 9891/9906; Downstream-Unsolicited
Up time: 5d22h
LDP Discovery Sources:
GigabitEthernet0/0/0/2
Targeted Hello (10.3.1.1 -> 10.0.1.1, active)
Addresses bound to this peer:
10.0.1.1 10.10.10.18 192.168.2.1 192.168.11.1
192.168.31.1 192.168.51.1 192.168.61.1 192.168.71.1
Targeted Hellos:
10.3.1.1 -> 10.0.1.1 (active), xmit/recv
LDP Id: 10.0.1.1:0
Hold time: 90 sec (local:90 sec, peer:90 sec)
Verify that you have properly configured your VRF tables by using the show ip vrf detail
command. Your output should be similar to this example:
RP/0/RSP0/CPU0:PEX#show vrf all detail
VRF Customer_1; RD not set; VPN ID not set
Description not set
Interfaces:
GigabitEthernet0/0/0/0
Address family IPV4 Unicast
Import VPN route-target communities:
RT:1:210
Export VPN route-target communities:
RT:1:210
No import route policy
No export route policy
Address family IPV6 Unicast
No import VPN route-target communities
No export VPN route-target communities
No import route policy
No export route policy
12 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Task 2: Configure MP-BGP to Establish Routing Between the
PE Routers
In this task, you will configure MP-BGP between the PE routers in your pod. You will
configure an IBGP session with a route reflector with the IP address 10.0.1.1.
Pod x will configure MP-BGP on PEx (Cisco IOS XR Software), and Pod y will perform the
same task on PEy (Cisco IOS XE Software).
Activity Procedure
Complete these steps:
Step 1 Activate the BGP process on your assigned router, using AS 64500 as the AS
number. Configure an IBGP neighbor relationship with a route reflector router
(10.0.1.1). Use Loopback0 as the source interface for the BGP session.
Step 2 Enable vpnv4 unicast address-family and activate the configured neighbor for that
address family. Configure next-hop-self functionality. On the routers with the Cisco
IOS XE operating system, configure the router to send standard and extended
communities with route updates.
Step 3 Wait for the other pod to finish configuration and then run the verification steps.
Activity Verification
Complete the verification of the lab activity:
Display the BGP neighbor information and ensure that BGP sessions have been established
between the two PE routers.
RP/0/RSP0/CPU0:PE1#sh bgp vpnv4 unicast summary
BGP router identifier 10.1.1.1, local AS number 64500
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0x0 RD version: 3889240856
BGP main routing table version 1
BGP scan interval 60 secs
RP/0/RSP0/CPU0:PE3#
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 2 6
Keepalives: 29 26
14 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Route Refresh: 0 0
Total: 32 33
Default minimum time between advertisement runs is 0 seconds
Outbound Inbound
Local Policy Denied Prefixes: -------- -------
Bestpath from this peer: 4 n/a
Total: 4 0
Number of NLRIs in the update sent: max 0, min 0
Last detected as dynamic slow peer: never
Dynamic slow peer recovered: never
Outbound Inbound
Local Policy Denied Prefixes: -------- -------
Total: 0 0
Number of NLRIs in the update sent: max 0, min 0
Last detected as dynamic slow peer: never
Dynamic slow peer recovered: never
16 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Lab 2-2: Connect Customers to MPLS Layer 3
VPNs
Complete this lab activity to practice what you learned in the related module.
Activity Objective
In this activity, you will deploy various routing protocols as the PE-CE routing protocol in the
VPN of your customer.
Note Students from two pods will work in a team. The CE routers in both pods are running Cisco
IOS Software. The first pod in the team will work on the PE router that is running Cisco IOS
XR Software, and the second pod in the team will work on the PE router that is running
Cisco IOS XE Software. Students in the same team should coordinate their lab activities.
You will work on different Cisco routers that are running Cisco IOS (c2900), Cisco IOS XE
(asr1001), and Cisco IOS XR (asr9k) Software. After completing this activity, you will be able
to meet these objectives:
Establish VPN routing using static routes between the PE and CE routers
Establish VPN routing using RIP as the PE-CE routing protocol
Establish VPN routing using EIGRP as the PE-CE routing protocol
Visual Objective
The figure illustrates what you will accomplish in this activity.
Team z
Pod x
CEx Lo0 PEx
Static
Gi0/0 Gi0/0/0/0
RIP
EIGRP
Lo0
Lo1
Pod y
Lo1 Lo1
Static
Gi0/0 RIP Gi0/0/0
EIGRP
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-9
This activity contains tasks that enable you to configure a simple any-to-any VPN service for a
customer.
You will test various simple PE-CE routing protocols between the PE and the CE routers.
© 2012 Cisco Systems, Inc. Lab Guide 17
VRF Assignments
This table gives the VRF RDs for VRFs that are used in this lab.
VRF Details
Required Resources
These resources and equipment are required to complete this activity:
A PC with access to the Internet
An SSH client that is installed on the PC
18 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Command List
The table describes the commands that are used in this lab activity.
Cisco IOS and IOS XE Commands
Command Description
neighbor next-hop-self Configures the router as the next hop for a BGP-
speaking neighbor or peer group (in router
configuration mode)
neighbor update-source Has Cisco IOS software allow IBGP sessions to use
any operational interface for TCP connections (in
router configuration mode)
neighbor next-hop-self Configures the router as the next hop for a BGP-
speaking neighbor or peer group (in router
configuration mode)
neighbor update-source Has Cisco IOS software allow IBGP sessions to use
any operational interface for TCP connections (in
router configuration mode)
redistribute protocol [process-id] {level-1 | Redistribute BGP into the EIGRP. The AS number
level-1-2 | level-2} [as-number] [metric and metric of the BGP network are configured in this
metric-value] [metric-type type-value] [route- step. BGP must be redistributed into EIGRP for the
map map-name][match {internal | external 1 CE site to accept the BGP routes that carry the
| external 2}] EIGRP information. A metric must also be specified
[tag tag-value] [route-map map-tag] for the BGP network and is configured in this step.
[subnets]
show ip eigrp vrf vrf-name interfaces Displays EIGRP interfaces that are defined under
the specified VRF. If an interface is specified, only
that interface is displayed. Otherwise, all interfaces
on which EIGRP is running as part of the specified
VRF are displayed
show ip eigrp vrf vrf-name neighbors Displays when VRF neighbors become active and
inactive. This command can be used to help debug
transport problems.
show ip eigrp vrf vrf-name topology Displays VRF entries in the EIGRP topology table.
This command can be used to determine DUAL
states and to debug possible DUAL problems.
router ospf process vrf vrf-name Starts an OSPF process within the specified VRF
show ip bgp vpnv4 vrf vrf-name Displays VPNv4 routes associated with the specified
VRF
set metric value Sets the BGP MED attribute in a route map
show ip bgp vpnv4 vrf vrf-name Displays VPNv4 routes associated with the specified
VRF
20 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Cisco IOS XR Commands
Command Description
router-id [type number | ip-address] Specifies the router ID of the local node. In
Cisco IOS XR Software, the router ID is specified as
an interface name or IP address.
interface type number Enters interface configuration mode for LDP (LDP
mode)
ipv4 | ipv6 address ip_address/len Sets the IPv4 or IPv6 address for an interface and
the subnet mask using the prefix length format
neighbor next-hop-self Configures the router as the next hop for a BGP-
speaking neighbor or peer group (in router
configuration mode)
show ip eigrp vrf vrf-name interfaces Displays EIGRP interfaces that are defined under
the specified VRF. If an interface is specified, only
that interface is displayed. Otherwise, all interfaces
on which EIGRP is running as part of the specified
VRF are displayed.
show ip bgp vpnv4 vrf vrf-name Displays VPNv4 routes associated with the specified
VRF
set metric value Sets the BGP MED attribute in a route map
show ip bgp vpnv4 vrf vrf-name Displays VPNv4 routes associated with the specified
VRF
22 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Task 1: Configuring Static Routes Between the PE and CE
Routers
In this task, you will configure static routes between the PE and CE routers in your pod.
Activity Procedure
Complete these steps to prepare the configuration for the routers in your pod. You will work
with students from other pods to finish this task.
Step 1 On the CE router, configure the loopback interface (Loopback1) with IP address
172.16.x.1/24 for Pod x and 172.16.y.1/24 for Pod y. The loopback interface will be
used for customer network simulation.
Step 2 On the CE router, configure a default route with forwarding address 192.168.10x.x0
for Pod x and 192.168.10y.y0 for Pod y.
Step 3 On the PE router, configure a static route for the customer network. The interface
that is facing the customer router is in VRF Customer_z, so you have to associate
the static route with this VRF.
Step 4 In BGP processes, configure route redistribution under ipv4 unicast address-family
(in VRF Customer_z). Redistribute the static and directly connected routes.
Activity Verification
Complete the verification of the lab activity:
Verify the routing table on the CE router. A static default route should have been inserted
into the routing table.
CE3#show ip route
<--- text omitted --->
Verify the routing table on the PE router. Static and BGP routes should have been inserted
into the VRF routing table.
RP/0/RSP0/CPU0:PE3#sh route vrf Customer_2
<--- text omitted --->
Verify connectivity between customer sites. Use the ping command on both CE routers.
CE3#ping 172.16.4.1 source loopback1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.4.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.3.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE3#
CE4#ping 172.16.3.1 source loopback1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.4.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE4#
Trace the packet path between customer sites. Use the traceroute tool. You should see that
different labels are assigned to IP packets.
CE3#traceroute 172.16.4.1 source loopback 1
Type escape sequence to abort.
Tracing the route to 172.16.4.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.103.30 0 msec 0 msec 0 msec
2 192.168.31.1 [MPLS: Labels 16014/42 Exp 0] 0 msec 0 msec 0 msec
3 192.168.1.2 [MPLS: Labels 16017/42 Exp 0] 4 msec 0 msec 0 msec
4 192.168.104.40 [MPLS: Label 42 Exp 0] 0 msec 0 msec 0 msec
5 192.168.104.41 0 msec 0 msec *
CE3#
CE4#trace 172.16.3.1 source loopback 1
Type escape sequence to abort.
Tracing the route to 172.16.3.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.104.40 0 msec 0 msec 0 msec
2 192.168.42.2 [MPLS: Labels 16029/16026 Exp 0] 0 msec 0 msec 0 msec
3 192.168.1.1 [MPLS: Labels 16004/16026 Exp 0] 4 msec 0 msec 0 msec
4 192.168.31.30 [MPLS: Label 16026 Exp 0] 4 msec 0 msec 0 msec
5 192.168.103.31 0 msec 0 msec *
CE4#
Activity Procedure
Complete these steps:
Step 1 Remove static routes on the PE and CE routers.
Step 2 Configure RIP between the CE and PE routers. Advertise the customer network and
the network of the segment between the PE and CE routers.
Step 3 Configure redistribution of RIP routes into BGP. Remove static route redistribution.
Step 4 Configure route redistribution of the customer BGP routes into RIP.
24 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Activity Verification
Complete the verification of the lab activity:
Verify the routing table on the CE router. RIP routes should have been inserted into the
routing table.
CE3#show ip route
<--- text omitted --->
Verify the routing table on the PE router. RIP and BGP routes should have been inserted
into the VRF routing table.
RP/0/RSP0/CPU0:PE3#sh route vrf Customer_2
<--- text omitted --->
Trace the packet path between customer sites. Use the traceroute tool. You should see that
different labels are assigned to IP packets.
CE3#traceroute 172.16.4.1 source loopback 1
Type escape sequence to abort.
Tracing the route to 172.16.4.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.103.30 0 msec 0 msec 0 msec
2 192.168.31.1 [MPLS: Labels 16014/42 Exp 0] 0 msec 0 msec 0 msec
3 192.168.1.2 [MPLS: Labels 16017/42 Exp 0] 4 msec 0 msec 0 msec
4 192.168.104.40 [MPLS: Label 42 Exp 0] 0 msec 0 msec 0 msec
5 192.168.104.41 0 msec 0 msec *
CE3#
CE4#trace 172.16.3.1 source loopback 1
Type escape sequence to abort.
Tracing the route to 172.16.3.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.104.40 0 msec 0 msec 0 msec
2 192.168.42.2 [MPLS: Labels 16029/16026 Exp 0] 0 msec 0 msec 0 msec
3 192.168.1.1 [MPLS: Labels 16004/16026 Exp 0] 4 msec 0 msec 0 msec
4 192.168.31.30 [MPLS: Label 16026 Exp 0] 4 msec 0 msec 0 msec
5 192.168.103.31 0 msec 0 msec *
CE4#
Activity Procedure
Complete these steps:
Step 1 Remove the RIP configuration and configure EIGRP between the PE and CE
routers. Use 1 for the EIGRP process number. Advertise the customer network and
the network of the segment between the PE and CE routers.
Step 2 On your assigned PE router, configure redistribution of EIGRP routes into BGP.
Remove redistribution of RIP routes.
Step 3 On your assigned PE router, configure redistribution of BGP routes into EIGRP. For
the default metric, use these values:
Bandwidth: 10000
Delay: 100
Reliability: 255
26 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Loading: 1
MTU: 1500
Activity Verification
Complete the verification of the lab activity:
Verify that EIGRP adjacencies have been established between the CE and PE routers.
RP/0/RSP0/CPU0:PE3#show eigrp vrf Customer_2 neighbors
Thu Dec 8 14:13:54.276 UTC
RP/0/RSP0/CPU0:PE3#
RP/0/RSP0/CPU0:PE3#
Verify the routing table on the CE router. EIGRP routes should have been inserted into the
routing table.
CE3#show ip route
<--- text omitted --->
Gateway of last resort is not set
Verify the routing table on the PE router. EIGRP and BGP routes should have been inserted
into the VRF routing table.
RP/0/RSP0/CPU0:PE3#sh route vrf Customer_2
<--- text omitted --->
Verify connectivity between customer sites. Use the ping command on both CE routers.
CE3#ping 172.16.4.1 source loopback1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.4.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.3.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE3#
CE4#ping 172.16.3.1 source loopback1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.4.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE4#
Trace the packet path between customer sites. Use the traceroute tool. You should see that
different labels are assigned to IP packets.
CE3#traceroute 172.16.4.1 source loopback 1
Type escape sequence to abort.
Tracing the route to 172.16.4.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.103.30 0 msec 0 msec 0 msec
2 192.168.31.1 [MPLS: Labels 16014/42 Exp 0] 0 msec 0 msec 0 msec
3 192.168.1.2 [MPLS: Labels 16017/42 Exp 0] 4 msec 0 msec 0 msec
4 192.168.104.40 [MPLS: Label 42 Exp 0] 0 msec 0 msec 0 msec
5 192.168.104.41 0 msec 0 msec *
CE3#
CE4#trace 172.16.3.1 source loopback 1
Type escape sequence to abort.
Tracing the route to 172.16.3.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.104.40 0 msec 0 msec 0 msec
2 192.168.42.2 [MPLS: Labels 16029/16026 Exp 0] 0 msec 0 msec 0 msec
3 192.168.1.1 [MPLS: Labels 16004/16026 Exp 0] 4 msec 0 msec 0 msec
4 192.168.31.30 [MPLS: Label 16026 Exp 0] 4 msec 0 msec 0 msec
5 192.168.103.31 0 msec 0 msec *
CE4#
28 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Lab 2-3: Connect Advanced Customers to MPLS
Layer 3 VPNs
Complete this lab activity to practice what you learned in the related module.
Activity Objective
In this activity, you will deploy various advanced routing protocols as the PE-CE routing
protocol in the VPN of your customer.
Note Students from two pods will work in a team. The CE routers in both pods are running Cisco
IOS Software. The first pod in the team will work on the PE router that is running Cisco IOS
XR Software, and the second pod in the team will work on the PE router that is running
Cisco IOS XE Software. Students in the same team should coordinate their lab activities.
You will work on different Cisco routers that are running Cisco IOS (c2900), Cisco IOS XE
(asr1001), and Cisco IOS XR (asr9k) Software. After completing this activity, you will be able
to meet these objectives:
Establish VPN routing using BGP as the PE-CE routing protocol
Establish VPN routing using OSPF as the PE-CE routing protocol
Visual Objective
The figure illustrates what you will accomplish in this activity.
Team z
CEx Pod x Lo0 PEx
Gi0/0 EBGP Gi0/0/0/0
OSPF
Lo0
Lo1
Pod y
Lo1 Lo1
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-10
This activity contains tasks that enable you to configure a simple any-to-any VPN service for a
customer.
You will test various PE-CE routing protocols between the PE and the CE routers.
Required Resources
These resources and equipment are required to complete this activity:
A PC with access to the Internet
An SSH client that is installed on the PC
30 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Command List
The table describes the commands that are used in this lab activity.
Cisco IOS and IOS XE Commands
Command Description
neighbor next-hop-self Configures the router as the next hop for a BGP-
speaking neighbor or peer group (in router
configuration mode)
neighbor update-source Has Cisco IOS software allow IBGP sessions to use
any operational interface for TCP connections (in
router configuration mode)
neighbor next-hop-self Configures the router as the next hop for a BGP-
speaking neighbor or peer group (in router
configuration mode)
neighbor update-source Has Cisco IOS software allow IBGP sessions to use
any operational interface for TCP connections (in
router configuration mode)
redistribute protocol [process-id] {level-1 | Redistributes BGP into the EIGRP. The AS number
level-1-2 | level-2} [as-number] [metric and metric of the BGP network are configured in this
metric-value] [metric-type type-value] [route- step. BGP must be redistributed into EIGRP for the
map map-name][match {internal | external 1 CE site to accept the BGP routes that carry the
| external 2}] EIGRP information. A metric must also be specified
[tag tag-value] [route-map map-tag] for the BGP network and is configured in this step.
[subnets]
show ip eigrp vrf vrf-name interfaces Displays EIGRP interfaces that are defined under
the specified VRF. If an interface is specified, only
that interface is displayed. Otherwise, all interfaces
on which EIGRP is running as part of the specified
VRF are displayed.
show ip eigrp vrf vrf-name neighbors Displays when VRF neighbors become active and
inactive. This command can be used to help debug
transport problems.
show ip eigrp vrf vrf-name topology Displays VRF entries in the EIGRP topology table.
This command can be used to determine DUAL
states and to debug possible DUAL problems.
router ospf process vrf vrf-name Starts an OSPF process within the specified VRF
show ip bgp vpnv4 vrf vrf-name Displays VPNv4 routes associated with the specified
VRF
set metric value Sets the BGP MED attribute in a route map
show ip bgp vpnv4 vrf vrf-name Displays VPNv4 routes associated with the specified
VRF
32 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Cisco IOS XR Commands
Command Description
router-id [type number | ip-address] Specifies the router ID of the local node. In
Cisco IOS XR, the router ID is specified as an
interface name or IP address.
interface type number Enters interface configuration mode for LDP (LDP
mode)
ipv4 | ipv6 address ip_address/len Sets the IPv4 or IPv6 address for an interface and
the subnet mask using the prefix length format
neighbor next-hop-self Configures the router as the next hop for a BGP-
speaking neighbor or peer group (in router
configuration mode).
show ip eigrp vrf vrf-name interfaces Displays EIGRP interfaces that are defined under
the specified VRF. If an interface is specified, only
that interface is displayed. Otherwise, all interfaces
on which EIGRP is running as part of the specified
VRF are displayed.
show ip bgp vpnv4 vrf vrf-name Displays VPNv4 routes associated with the specified
VRF
set metric value Sets the BGP MED attribute in a route map
show ip bgp vpnv4 vrf vrf-name Displays VPNv4 routes associated with the specified
VRF
34 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Task 1: Configure EBGP as the PE-CE Routing Protocol
In this task, you will convert the CE-PE routing protocol of your customer from EIGRP to
BGP.
Activity Procedure
Complete these steps:
Step 1 Remove the EIGRP configuration from all routers in your pod. Activate the BGP
routing process on the CE routers in your pod. Use 6450x for the AS number, where
x is your pod number.
Step 2 Configure the route-policy pass command on the PEx router that will pass all
routing updates.
Step 3 Activate the BGP neighbor relationship between the PE and CE routers in your pod.
Use the CE-PE interface IP address as the source and destination IP addresses for
the BGP session. Configure the next-hop-self command.
Step 4 Configure the CE router to advertise the customer network. On the PEx router
(Cisco IOS XR Software) use the route-policy pass command to accept and send all
routing updates to neighbors.
Activity Verification
Complete the verification of the lab activity:
Verify the BGP table and BGP neighbor on the PE router.
RP/0/RSP0/CPU0:PE3#sh bgp vrf Customer_2 ipv4 unicast
Thu Dec 8 15:20:14.812 UTC
BGP VRF Customer_2, state: Active
BGP Route Distinguisher: 1:220
VRF ID: 0x60000012
BGP router identifier 10.3.1.1, local AS number 64500
BGP table state: Active
Table ID: 0xe0000012 RD version: 30
BGP main routing table version 30
RP/0/RSP0/CPU0:PE3#
Verify the routing table on the CE router. BGP routes should have been inserted into the
routing table.
CE3#show ip route
<--- text omitted --->
Verify the routing table on the PE router. BGP routes should have been inserted into the
VRF routing table.
RP/0/RSP0/CPU0:PE3#sh route vrf Customer_2
<--- text omitted --->
Gateway of last resort is not set
Verify connectivity between customer sites. Use the ping command on both CE routers.
CE3#ping 172.16.4.1 source loopback1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.4.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.3.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE3#
CE4#ping 172.16.3.1 source loopback1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.4.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE4#
36 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Trace the packet path between customer sites. Use the traceroute tool. You should see that
different labels are assigned to IP packets.
CE3#traceroute 172.16.4.1 source loopback 1
Type escape sequence to abort.
Tracing the route to 172.16.4.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.103.30 0 msec 0 msec 0 msec
2 192.168.31.1 [MPLS: Labels 16014/42 Exp 0] 0 msec 0 msec 0 msec
3 192.168.1.2 [MPLS: Labels 16017/42 Exp 0] 4 msec 0 msec 0 msec
4 192.168.104.40 [MPLS: Label 42 Exp 0] 0 msec 0 msec 0 msec
5 192.168.104.41 0 msec 0 msec *
CE3#
CE4#trace 172.16.3.1 source loopback 1
Type escape sequence to abort.
Tracing the route to 172.16.3.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.104.40 0 msec 0 msec 0 msec
2 192.168.42.2 [MPLS: Labels 16029/16026 Exp 0] 0 msec 0 msec 0 msec
3 192.168.1.1 [MPLS: Labels 16004/16026 Exp 0] 4 msec 0 msec 0 msec
4 192.168.31.30 [MPLS: Label 16026 Exp 0] 4 msec 0 msec 0 msec
5 192.168.103.31 0 msec 0 msec *
CE4#
Activity Procedure
Complete these steps:
Step 1 Remove the EBGP configuration from the PE and CE routers. Configure OSPF
between the CE and PE routers in your pod. Use an OSPF process ID of 2z0 (where
z is your team number).
Step 2 On the CE router, configure the OSPF network type of the Loopback1 interface to
point-to-point. Using the OSPF process, advertise the networks of Loopback1 and
the PE-CE interfaces. All networks should be in OSPF Area 0.
Step 3 Configure redistribution from OSPF to MP-BGP by using the redistribute ospf
command in VRF address-family configuration mode.
Step 4 Configure redistribution from MP-BGP to OSPF by using the redistribute bgp
subnets command in OSPF router configuration mode.
Activity Verification
Complete the verification of the lab activity:
Verify the OSPF database and all OSPF neighbors on the PE router.
RP/0/RSP0/CPU0:PE3#sh ospf vrf Customer_2 neighbor
Fri Dec 9 10:07:25.273 UTC
Verify the OSPF database and all OSPF neighbors on the CE router.
CE3#sh ip ospf neighbor
Verify the routing table on the CE router. BGP routes should have been inserted into the
routing table.
CE3#show ip route
<--- text omitted --->
Gateway of last resort is not set
38 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
L 172.16.3.1/32 is directly connected, Loopback1
O E2 172.16.4.0/24
[110/2] via 192.168.103.30, 00:43:49, GigabitEthernet0/1
192.168.103.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.103.0/24 is directly connected, GigabitEthernet0/1
L 192.168.103.31/32 is directly connected, GigabitEthernet0/1
O E2 192.168.104.0/24
[110/1] via 192.168.103.30, 00:46:13, GigabitEthernet0/1
CE3#
Verify the routing table on the PE router. BGP routes should have been inserted into the
VRF routing table.
RP/0/RSP0/CPU0:PE3#sh route vrf Customer_2
<--- text omitted --->
Gateway of last resort is not set
Verify connectivity between customer sites. Use the ping command on both CE routers.
CE3#ping 172.16.4.1 source loopback1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.4.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.3.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE3#
CE4#ping 172.16.3.1 source loopback1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 172.16.3.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.4.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE4#
Trace the packet path between customer sites. Use the traceroute tool. You should see that
different labels are assigned to IP packets.
CE3#traceroute 172.16.4.1 source loopback 1
Type escape sequence to abort.
Tracing the route to 172.16.4.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.103.30 0 msec 0 msec 0 msec
2 192.168.31.1 [MPLS: Labels 16014/42 Exp 0] 0 msec 0 msec 0 msec
3 192.168.1.2 [MPLS: Labels 16017/42 Exp 0] 4 msec 0 msec 0 msec
4 192.168.104.40 [MPLS: Label 42 Exp 0] 0 msec 0 msec 0 msec
5 192.168.104.41 0 msec 0 msec *
CE3#
CE4#trace 172.16.3.1 source loopback 1
Type escape sequence to abort.
Tracing the route to 172.16.3.1
VRF info: (vrf in name/id, vrf out name/id)
1 192.168.104.40 0 msec 0 msec 0 msec
2 192.168.42.2 [MPLS: Labels 16029/16026 Exp 0] 0 msec 0 msec 0 msec
3 192.168.1.1 [MPLS: Labels 16004/16026 Exp 0] 4 msec 0 msec 0 msec
4 192.168.31.30 [MPLS: Label 16026 Exp 0] 4 msec 0 msec 0 msec
5 192.168.103.31 0 msec 0 msec *
CE4#
Activity Objective
In this lab activity, you will establish overlapping and common services Layer 3 VPNs to
support customer needs.
Note Students from two pods will work in a team. The CE routers in both pods are running Cisco
IOS Software. The first pod in the team will work on the PE router that is running Cisco IOS
XR Software, and the second pod in the team will work on the PE router that is running
Cisco IOS XE Software. Students in the same team should coordinate their lab activities.
You will work on different Cisco routers that are running Cisco IOS (c2900), Cisco IOS XE
(asr1001), and Cisco IOS XR (asr9k) Software. After completing this activity, you will be able
to meet these objectives:
Enable overlapping Layer 3 VPNs
Enable common services Layer 3 VPNs
Visual Objective
The figure illustrates what you will accomplish in this activity.
Central Remote
Location Location
Team 1
Pod 1 Pod 2
Customer A
Team 2
Pod 3 Pod 4
Customer B
Overlapping VPN
P1 P2
CE3 PE3 PE4 CE4
Common
Pod 5 Pod 6
Services
Team 3
CE5 PE5 Customer C PE6 CE6
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-11
In the first task, you will establish overlapping VPNs that have the following connectivity
goals:
Simple VPN communication between the branch and central CE router (customer VPN)
inside one team
40 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
An overlapping VPN between central sites
There are also some common services that service providers offer. You will enable access to
these services in Task 2.
VRF Assignments
This table gives the VRF RDs for VRFs that are used in this lab.
VRF Details
/ Common 1:1100
Required Resources
These resources and equipment are required to complete this activity:
A PC with access to the Internet
An SSH client that is installed on the PC
Command Description
ip | ipv6 address ip_address subnet_mask Sets a IPv4 or IPv6 address and the subnet mask
on the interface
network prefix wildcard_mask area area Enables OSPF routing on the network and places
the network into an OSPF area (in router
configuration mode)
show ip interface brief Displays the interface status and IPv4 addresses
configured
show ip | ipv6 ospf database Displays the contents of the OSPF database
show ip | ipv6 protocols Displays IPv4 or IPv6 protocols that are running on
the router.
show ip | ipv6 route Displays the current routes in the routing table
show ip | ipv6 route vrf vrf Displays the current routes in the VRF routing table
neighbor neighbor update-source Interface Sets the source interface for BGP updates
neighbor neighbor next-hop-self Updates the next-hop parameter for routing updates
42 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Cisco IOS XR Commands
Command Description
ipv4 | ipv6 address ip_address/len Sets the IPv4 or IPv6 address for an interface and
the subnet mask using the prefix length format
network prefix wildcard_mask area area Enables OSPF routing on the network and places
the network into an OSPF area (in router
configuration mode)
show ipv4 interface brief Displays the interface status and IPv4 addresses
that are configured
show ospf | ospfv3 database Displays the contents of the OSPF database
show route vrf vrf Displays the current routes in the VRF routing table
neighbor neighbor update-source Interface Sets the source interface for BGP updates
neighbor neighbor address-family address- Enters neighbor address family configuration mode
family
Activity Procedure
Complete these steps to prepare the configuration for the routers in your pod:
Note You will work with students from other pods and teams to finish this task. Students from
different teams should coordinate their activities.
Step 1 You have to exchange BGP information with devices from other teams. Establish a
BGP session with BGP route reflector P1 on address 10.0.1.1 and delete the
neighbor relationship with the second PE router from your team. Use the BGP
parameters that were used for the session with the second PE router. Check that the
neighbor relationship is properly established.
Note Most of the work in this task is performed by students in Pod x. Students from Pod y should
help them.
Step 2 On the PEx router (only on that router), create new VRF called Customer_z_C
(where z is your team number). Under the ipv4 unicast address family command,
configure the router to export and import routes with RT 1:1000 and the RT of your
team (1:2z0). Route target 1:1000 is used to exchange routes between the central
sites.
Step 3 Reconfigure the OSPF process between the PEx and CEx routers. Replace
Customer_z vrf with Customer_z_C vrf.
Step 4 Put the interface that is facing the CEx router into the Customer_z_C VRF. You will
have to remove the IP address from the interface before you can change the VRF.
Check connectivity with the CEx router. Check the OSPF neighbor relationship and
routing table for VRF Customer_z_C.
Step 5 Reconfigure the BGP VRF section on router PEx. Replace Customer_z vrf with
Customer_z_C vrf.
Activity Verification
Complete the verification of the lab activity:
On the PE router in your pod, verify the BGP neighbors. On the PEx routers, verify the
VRF Customer_z_C vrf routing table. On the PEy routers, verify the Customer_z VRF
routing table. The PEx routers should also see routes from the central sites of other teams.
44 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
B 192.168.104.0/24 [200/0] via 10.4.1.1 (nexthop in vrf default), 02:09:03
RP/0/RSP0/CPU0:PE3#
On the CE router in your pod, verify the OSPF neighbors and routing table. There should
be one OSPF neighbor, and you should get a default route by the OSPF process. Your
output should be similar to the following:
CE1#sh ip route
<--- text omitted --->
Verify connectivity between the central and branch site inside each team. Then verify
connectivity to the central sites of other teams.
CE3#ping 172.16.4.1
Activity Procedure
Complete this step:
Step 1 Reconfigure your customer VRF instance to exchange routes with the central
services router. Import routes with RT 1:1102. Export routes with RT 1:1101.
Activity Verification
Complete the verification of the lab activity:
Verify the VRF routing table on your PE router. You should see a route to network
172.16.100.100/32.
RP/0/RSP0/CPU0:PE3#sh route vrf Customer_2_C
<--- text omitted --->
46 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
172.16.0.0/32 is subnetted, 3 subnets
B 172.16.3.1 [200/2] via 10.3.1.1, 00:36:50
O 172.16.4.1 [110/2] via 192.168.104.41, 22:17:27, GigabitEthernet0/0/0
B 172.16.100.100 [200/0] via 10.0.2.1, 00:02:39
B 192.168.103.0/24 [200/0] via 10.3.1.1, 00:36:50
192.168.104.0/24 is variably subnetted, 2 subnets, 2 masks
C 192.168.104.0/24 is directly connected, GigabitEthernet0/0/0
L 192.168.104.40/32 is directly connected, GigabitEthernet0/0/0
PE4#
Activity Objective
In this lab activity, you will establish Internet connectivity for a customer that also has an
MPLS VPN tunnel established.
Note Students from two pods will work in a team. The CE routers in both pods are running Cisco
IOS Software. The first pod in the team will work on the PE router that is running Cisco IOS
XR Software, and the second pod in the team will work on the PE router that is running
Cisco IOS XE Software. Students in the same team should coordinate their lab activities.
You will work on different Cisco routers that are running Cisco IOS (c2900), Cisco IOS XE
(asr1001), and Cisco IOS XR (asr9k) Software. After completing this activity, you will be able
to meet these objectives:
Establish PE-CE connectivity using subinterfaces
Establish Internet connectivity
Establish central site Internet connectivity
Establish central site Internet connectivity across a separate MPLS VPN
Visual Objective
The figure illustrates what you will accomplish in this activity.
Team z
CEx Pod x SWx 192.168.20x.x0 PEx
Fa0/2 Gi0/0/0/0.x1
Gi0/1.x0 P1
VLAN:x0,x1 Gi0/0/0/0.x0
192.168.10x.x1
192.168.10x.x0
Gi0/1.x1
192.168.20x.x1 VLAN:x0,x1,y2,y1
Fa0/1
Fa0/2
SWxy
VLAN:x0,x1,y2,y1
192.168.10y.y1
Gi0/1.y0 192.168.20y.y0
Gi0/1.y1 VLAN:y0,y1 Gi0/0/0.y1
192.168.20y.y1
P2
Fa0/2 Gi0/0/0.y0
192.168.10y.y0
CEy Pod y SWy PEy
Internet
209.165.201.1
209.165.202.129
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-12
48 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
You will clear part of the configuration from the previous lab and configure two subinterfaces
between the CE and PE routers. Using BGP, you will establish Internet connectivity for your
site. In the next task, you will establish centralized Internet connectivity for remote sites
through the central site. In the last task, you will use a separate MPLS VPN tunnel for Internet
access.
The Internet is simulated on the P2 router. Two IP addresses are accessible for testing purposes
(209.165.201.1 and 209.165.202.129). Routes are advertised in the global routing table and in
the Internet VRF.
VRF Assignments
This table gives the VRF RDs for the VRFs that are used in this lab.
VRF Details
Required Resources
These resources and equipment are required to complete this activity:
A PC with access to the Internet
An SSH client that is installed on the PC
Command Description
ip | ipv6 address ip_address Sets a IPv4 or IPv6 address and the subnet mask on
subnet_mask the interface
network prefix wildcard_mask area Enables OSPF routing on the network and places the
area network into an OSPF area (in router configuration
mode)
ping dest_IP source source_IP Verifies connectivity between source IP and destination
IP
show ip interface brief Displays the interface status and IPv4 addresses
configured
show ip | ipv6 ospf database Displays the contents of the OSPF database
show ip | ipv6 protocols Displays the IPv4 or IPv6 protocols that are running on
the router.
show ip | ipv6 route Displays the current routes in the routing table
show ip | ipv6 route vrf vrf Displays the current routes in the VRF routing table
neighbor neighbor update-source Sets the source interface for BGP updates
Interface
neighbor neighbor next-hop-self Updates the next-hop parameter for routing updates
50 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Command Description
switchport trunk allowed vlan vlan Allows setting of VLANs across a trunk link
Command Description
interface interface Defines the interfaces on which OSPF runs (in router
configuration mode)
ipv4 | ipv6 address ip_address/len Sets the IPv4 or IPv6 address for an interface and
the subnet mask using the prefix length format
network prefix wildcard_mask area area Enables OSPF routing on the network and places
the network into an OSPF area (in router
configuration mode)
show ipv4 interface brief Displays the interface status and IPv4 addresses
that are configured
show ospf | ospfv3 database Displays the contents of the OSPF database
show route vrf vrf Displays the current routes in the VRF routing table
neighbor neighbor update-source Interface Sets the source interface for BGP updates
neighbor neighbor address-family address- Enters neighbor address family configuration mode
family
52 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Task 1: Restore a Simple Customer VPN Configuration
In this task, you will restore a simple customer VPN configuration for a site in your pod.
Activity Procedure
Complete these steps to prepare the configuration for the routers in your pod.
Note You will work with students from other pods and teams to finish this task. Students from
different teams should coordinate their activities.
Step 1 Reconfigure the CE-PE link on the PEx router. Set the link back to the Customer_z
VRF, where z is your team number. VRF Customer_z should have the proper export
and import targets configured (defined in the “VRF Details” table).
Step 2 Test connectivity between the sites. Connectivity between the central site and the
remote site should work.
Activity Verification
Complete the verification of the lab activity:
On the PE router in your pod, verify the BGP neighbors. On the PE routers, verify the
Customer_z VRF routing table.
PE4#sh ip bgp summary
BGP router identifier 10.4.1.1, local AS number 64500
BGP table version is 7, main routing table version 7
2 network entries using 448 bytes of memory
2 path entries using 176 bytes of memory
2/2 BGP path/bestpath attribute entries using 416 bytes of memory
1 BGP community entries using 24 bytes of memory
1 BGP extended community entries using 60 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1124 total bytes of memory
BGP activity 9/5 prefixes, 12/8 paths, scan interval 60 secs
On the CE router in your pod, verify the OSPF neighbors and routing table. There should
be one OSPF neighbor, and you should get routes from other sites by the OSPF process.
Your output should be similar to the following:
CE3#sh ip route
<--- text omitted --->
Verify connectivity between the central site and branch site inside each team.
CE3#ping 172.16.4.1
Activity Procedure
Complete these steps:
Step 1 Reconfigure the PE-CE connecting interface on the PE and CE routers in your pod.
Remove the IP parameters from the interface configuration.
Step 2 Create two subinterfaces, one for MPLS VPN access and one for Internet access.
Use the parameters shown in the table for the subinterface configuration.
54 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Step 3 Configure VLAN x1 and VLAN y1 on all metro switches in your team. Allow
VLANs x1 and y1 on all trunk links. Work together with the students from the other
pod when configuring switch SWxy.
Step 4 The switch ports on the metro switches are now configured as access ports.
Configure the ports that are facing your PE and CE routers as trunk ports. VLANs
x0 and x1 should be allowed on the trunk links that are facing the Pod x routers.
VLANs y0 and y1 should be allowed on the trunk links that are facing the Pod y
routers. Work together with students from other pod when configuring switch
SWxy.
Step 5 Reconfigure the OSPF process on PEx. Add interface GigabitEthernet0/0/0/0.30 in
the Area 0 section of the OSPF process.
Step 6 Verify connectivity between the PE and CE routers over both subinterfaces. Verify
that OSPF is established between the PE and CE routers.
Activity Verification
Complete the verification of the lab activity:
Verify connectivity between the PE and CE routers over both subinterfaces using ping.
CE4#ping 192.168.104.40
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.40, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE4#ping 192.168.204.40
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.104.40, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE3#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
10.3.1.1 1 FULL/BDR 00:00:38 192.168.103.30 GigabitEthernet0/1.30
CE3#
Activity Procedure
Complete these steps:
Step 1 Reconfigure the BGP routing process on the PE router. Enable ipv4 unicast
address-family globally for the BGP routing process. Enable ipv4 unicast address-
family under neighbor 10.0.1.1 and configure the next-hop-self feature for this
neighbor.
Step 2 On the PE router, configure a new BGP neighbor to establish an EBGP session with
the CE router. On the PEx router, set 192.168.20x.x1 as the neighbor IP address,
6450x as the AS number, and interface GigabitEthernet0/0/0/0.x1 as the update-
source interface. On the PEy router, set 192.168.20y.y1 as the neighbor IP address,
6450y as the AS number, and interface GigabitEthernet0/0/0/0.y1 as the update-
source interface. Enable ipv4 unicast address-family and configure the next-hop-
self feature for this neighbor.
Step 3 On the PE router, advertise the default route. Block all other specific routes to be
sent to this neighbor.
Note Local network 172.16.x.0 has to be advertised in this example, because you do not use NAT
to translate addresses in a public address space. In real situations, you usually use NAT.
Step 6 Verify the IPv4 routing table on the PE router. List all BGP routes.
Step 7 Verify Internet connectivity by pinging IP addresses 209.165.201.1 and
209.165.202.129. Pinging should be successful.
Activity Verification
Complete the verification of the lab activity:
Verify the IPv4 routing table on the PE router. List all BGP routes. You should see all
Internet routes and routes from BGP-enabled sites.
RP/0/RSP0/CPU0:PE3#sh ip route bgp
Tue Nov 22 13:03:11.781 UTC
56 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Task 4: Establish Central Site Connectivity for Internet Access
In this task, you will establish central site Internet connectivity in your team. The Pod x router
is the central router that provides Internet connectivity. The Pod y router is the branch router
that uses the central site Internet connection to access the Internet.
Activity Procedure
Complete these steps:
Step 1 On the CEy router, shut down the GigabitEthernet0/1.y1 subinterface that is used
for Internet access.
Step 2 On the CEx router, reconfigure the OSPF process to advertise the default route to the
other neighbors.
Step 3 On the CEx router, advertise the local network of remote sites (172.16.y.0/24) to the
BGP process so that return traffic from the Internet router can be routable. You
usually use NAT on a firewall to translate local addresses to public IP addresses, but
in this exercise, local networks will be advertised to BGP.
Step 4 On the PEx router, advertise the default route in the BGP process under the
Customer_z VRF configuration. Use the network command under the address-
family area.
Step 5 Reconfigure the OSPF process on the PEy router that runs in the Customer_z VRF.
Enable default route origination.
Step 6 Verify the routing tables on all routers in your pod. Verify Internet connectivity
using the ping command.
Activity Verification
Complete the verification of the lab activity:
Verify the routing tables on all routers. The default route should be in the routing table.
CE3#sh ip route
<--- text omitted --->
Verify Internet access using the ping command. Loopback1 should be the source interface
for ping traffic.
CE4#ping 209.165.201.1 source loopback1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 209.165.201.1, timeout is 2 seconds:
Packet sent with a source address of 172.16.4.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE4#
CE4#ping 209.165.202.129 source loopback1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 209.165.202.129, timeout is 2 seconds:
Packet sent with a source address of 172.16.4.1
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE4#
Activity Procedure
Complete these steps:
Step 1 Create a new VRF instance called Internet on the PEx router. Under ipv4 unicast
address-family, import and export routes with RT 1:2000.
58 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Step 2 Under the BGP process, configure a new VRF called Internet with RD 1:2000.
Under the Internet VRF, enable ipv4 unicast address-family.
Step 3 Reconfigure the interface that is facing the CEx router that is used for Internet
access. Assign the interface to the Internet VRF.
Step 4 Delete the neighbor that is facing the CEx router and configure a new neighbor with
the same parameters under the VRF Internet area.
Step 5 Verify the routing tables on the PEx and CEx routers in your pod. Verify Internet
connectivity using the ping command.
Activity Verification
Complete the verification of the lab activity:
Verify the routing tables on all routers.
CE3#sh ip route
<--- text omitted --->
Activity Objective
In this lab, you will implement the CSC feature using MP-BGP labels and route distribution.
Note Students from two pods will work in a team. The CE routers in both pods are running Cisco
IOS Software. The first pod in the team will work on the PE router that is running Cisco IOS
XR Software, and the second pod in the team will work on the PE router that is running
Cisco IOS XE Software. Students in the same team should coordinate their lab activities.
You will work on different Cisco routers that are running Cisco IOS (c2900), Cisco IOS XE
(asr1001), and Cisco IOS XR (asr9k) Software. After completing this activity, you will be able
to meet these objectives:
Restore simple connectivity between the PE and CE routers
Configure the CSC feature using MP-BGP
Visual Objective
The figure illustrates what you will accomplish in this activity.
AS 6451z AS 64500
Lo0: 10.0.1.1/32
Lo101: Lo0: 10.x.1.1/32 IBGP
172.17.x.1/32 EBGP
CEx LDP PEx RR
EC1
Pod X
Lo102: IBGP
172.17.x.2/32 P1
Lo1: 172.16.x.1/24
EC2
Team z
Lo101:
Lo1: 172.16.y.1/24
172.17.y.1/32
P2
EC1 IBGP
Pod Y
Lo102: EBGP
172.17.y.2/32 CEy PEy
EC2 Lo0: 10.y.1.1/32 IBGP
Customer
Backbone Carrier
Carrier
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-13
You will clear part of the configuration from the previous lab and restore a simple customer
VPN configuration. Your new customer is a small service provider (customer carrier) that will
use MPLS VPN service for interconnecting its point of presence (POP) sites.
The customer carrier has two customers, EC1 and EC2, that will be simulated using the
Loopback101 and Loopback102 interfaces. Your goal is to establish MPLS VPN connectivity
for customers EC1 and EC2 using the backbone carrier as the transport provider for the
customer carrier.
60 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
VRF Assignments
This table gives the VRF RDs for the VRFs that are used in this lab.
Required Resources
These resources and equipment are required to complete this activity:
A PC with access to the Internet
An SSH client that is installed on the PC
Command Description
ip | ipv6 address ip_address subnet_mask Sets a IPv4 or IPv6 address and the subnet mask
on the interface
network prefix wildcard_mask area area Enables OSPF routing on the network and places a
network into an OSPF area (in router configuration
mode)
show ip interface brief Displays the interface status and IPv4 addresses
configured
show ip | ipv6 ospf database Displays the contents of the OSPF database
show ip | ipv6 protocols Displays IPv4 or IPv6 protocols that are running on
the router
show ip | ipv6 route Displays the current routes in the routing table
show ip | ipv6 route vrf vrf Displays the current routes in the VRF routing table
neighbor neighbor update-source Interface Sets the source interface for BGP updates
neighbor neighbor next-hop-self Updates the next-hop parameter for routing updates
62 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Command Description
switchport trunk allowed vlan vlan Allows setting of VLANs across a trunk link
ipv4 | ipv6 address ip_address/len Sets the IPv4 or IPv6 address for an interface and
the subnet mask using the prefix length format
network prefix wildcard_mask area area Enables OSPF routing on the network and places
the network into an OSPF area (in router
configuration mode)
show ipv4 interface brief Displays the interface status and IPv4 addresses
configured
show ospf | ospfv3 database Displays the contents of the OSPF database
show route vrf vrf Displays the current routes in the VRF routing table
neighbor neighbor update-source Interface Sets a source interface for BGP updates
neighbor neighbor address-family address- Enters neighbor address family configuration mode
family
64 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Task 1: Restore Simple Connectivity Between the PE and CE
Routers
In this task, you will restore a simple customer VPN configuration for a site in your pod.
Activity Procedure
Complete these steps to prepare the configuration for the routers in your pod:
Note You will work with students from other pods and teams to finish this task. Students from
different teams should coordinate their activities.
Step 1 On all metro switches in your team, reconfigure all ports that are facing the PE and
CE routers. Reconfigure the access ports and assign the proper VLAN to each port.
Use the parameters in the table for port configuration.
Step 2 Reconfigure the configuration of the interfaces between the PE and CE routers.
Remove the subinterfaces and reconfigure the interfaces using the parameters that
are shown in the table.
Step 3 Test connectivity between the PE and CE routers using the ping command.
Activity Verification
Complete the verification of the lab activity:
Test connectivity between the PE and CE routers using the ping command.
CE3#ping 192.168.103.30
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.103.30, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/2/4 ms
Activity Procedure
Complete these steps:
Step 1 Configure two VRF instances on the CE routers. Use the parameters that are shown
in the table for the VRF configuration.
Customer VRF Description Import and RD
Export Target
Step 2 Create two loopback interfaces on the CE router that will be used for end-customer
simulation. Use the parameters that are shown in the table for the subinterface
configuration.
Activity Verification
Complete the verification of the lab activity:
Verify the VRF EC1 and EC2 routing tables. Only directly connected routes should be
present.
CE3#sh ip route vrf EC1
<--- text omitted --->
66 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Task 3: Configure Routing Between the PE and CE Routers
In this task, you will configure routing between the PE and CE routers using the BGP routing
protocol. You will also use BGP for label distribution.
Activity Procedure
Complete these steps:
Step 1 Remove all BGP configuration on the CE router. Configure the BGP process with
AS number 6451z, where z is your team number. Establish an EBGP neighbor
relationship between the PE and CE routers. Use the physical interface IP address
for the source and destination of the BGP session. Use the next-hop-self command
to change the next-hop parameter for routing updates.
Step 2 Change the subnet mask of the Loopback1 IP address on the CE routers to /32.
Step 3 On the CE router, advertise the network of the Loopback1 interface. This interface
will be used to establish an IBGP session between the CE (customer carrier) routers.
Reconfigure the PE routers to send labels with routing updates to both BGP
neighbors. Use the allocate-label command to allocate labels for advertised
prefixes.
Step 4 On Cisco IOS XR routers, an additional /32 static route to the CE router physical
interface IP address (192.168.10x.x1) is required.
Activity Procedure
Complete these steps:
Step 1 Establish an IBGP session between the Loopback1 interfaces on the CE routers in
your team. Use the Loopback1 interface IP addresses for the BGP source and
destination addresses. Newly configured neighbors should be activated only under
the VPNv4 address family.
Step 2 Configure the PE routers to override the AS number in the AS path for routing
updates.
Step 3 Redistribute connected routes from VRF EC1 and VRF EC2.
Step 4 Verify connectivity between customer loopback addresses.
Activity Verification
Complete the verification of the lab activity:
Verify the VRF EC1 and EC2 routing tables. Directly connected and BGP routes should be
in the routing tables.
CE3#sh ip route vrf EC1
<--- text omitted --->
172.17.0.0/32 is subnetted, 2 subnets
C 172.17.3.1 is directly connected, Loopback101
B 172.17.4.1 [200/0] via 172.16.4.1, 00:29:40
CE3#
68 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Lab 4-1: Implement Layer 2 VPN (VPWS and VPLS)
Complete this lab activity to practice what you learned in the related module.
Activity Objective
In this lab activity, you will configure an EoMPLS Layer 2 VPN tunnel between the CE routers
in your team. You will use a pseudowire to interconnect two CE routers. Then you will
configure a bridge group on one PE router and establish connectivity between CE routers in
different teams.
Note Students from two pods will work in a team. The CE routers in both pods are running Cisco
IOS Software. The first pod in the team will work on the PE router that is running Cisco IOS
XR Software, and the second pod in the team will work on the PE router that is running
Cisco IOS XE Software. Students in the same team should coordinate their lab activities.
You will work on different Cisco routers that are running Cisco IOS (c2900), Cisco IOS XE
(asr1001), and Cisco IOS XR (asr9k) Software. After completing this activity, you will be able
to meet these objectives:
Configure and monitor an xconnect on Cisco IOS XR Software
Configure and monitor an xconnect on Cisco IOS XE Software
Configure and monitor a bridge group and bridge domain
Visual Objective
The figure illustrates what you will accomplish in this activity.
Team 1 Team 2
CE1 PE1 PE3 CE3
BG1 BG2
AC pw AC
192.168.200.1 192.168.200.3
Pod 1 Pod 4
Pod 2 pw pw Pod 4
192.168.200.2 192.168.200.4
192.168.200.5 192.168.200.7
Pod 5 Pod 7
Pod 6 pw pw
Pod 8
192.168.200.6 192.168.200.8
Team 3 Team 4
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-14
Command Description
interface interface-id l2transport Enables an interface for the Layer 2 VPN transport
service
show l2vpn xconnect detail Displays the xconnect parameters for the VPWS
70 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Cisco IOS XE Commands
Command Description
show xconnect all detail Displays the xconnect parameters for the VPWS
Activity Procedure
Complete these steps:
Step 1 Remove the BGP configuration on the CE routers.
Step 2 Set the configuration of the interface between the CE and PE routers to the default
values. Leave the speed and duplex configuration unchanged.
Activity Verification
Complete the verification of the lab activity:
Verify that there is no BGP configuration on the CE routers. The PE-CE connecting
interfaces should have the default configuration.
Activity Procedure
Complete these steps:
Step 1 Configure the IP address of the PE-facing interface on the CE router. Use the IP
address 192.168.200.x, where x is your pod number. Use /24 for the subnet mask.
Step 2 On the PE that is running Cisco IOS XR Software, configure the CE-facing interface
for Layer 2 transport.
Step 3 On the PE running Cisco IOS XR Software, configure EoMPLS with these
parameters:
Suggested name for xconnect group: podX-group (where x is your pod number)
Suggested name for point-to-point service: podX-eompls (where x is your pod
number)
Interface: the interface that is enabled for Layer 2 transport
Neighbor: the Loopback0 address of the PE router in the neighbor pod
Pseudowire ID: 12 (Team 1), 34 (Team 2), 56 (Team 3), 78 (Team 4)
Activity Verification
Complete the verification of the lab activity:
Check the status of the Layer 2 VPN session. Examine its parameters. The xconnect status
should be Up.
RP/0/RSP0/CPU0:PE3#sh l2vpn xconnect
Wed Feb 1 12:52:57.427 UTC
Legend: ST = State, UP = Up, DN = Down, AD = Admin Down, UR = Unresolved,
SB = Standby, SR = Standby Ready
72 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
PE4#sh xconnect all detail
Legend: XC ST=Xconnect State S1=Segment1 State S2=Segment2 State
UP=Up DN=Down AD=Admin Down IA=Inactive
SB=Standby HS=Hot Standby RV=Recovering NH=No Hardware
XC ST Segment 1 S1 Segment 2
S2
------+---------------------------------+--+--------------------------------
UP ac Gi0/0/0(Ethernet) UP mpls 10.3.1.1:1
UP
Interworking: none Local VC label 41
Remote VC label 16024
pw-class: pw-class1
From your CE router, ping the CE router in the partner pod. The ping should work if the
pseudowire was established successfully.
CE3#ping 192.168.200.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE3#
Activity Procedure
Complete these steps:
Step 1 Reconfigure the PE router running the Cisco IOS XR operating system. Remove the
xconnect group and configure a new bridge group named BG1. Under BG1,
configure a new bridge domain named BD1.
Step 2 Configure interface GigabitEthernet0/0/0/0 as a member of BD1.
Step 3 Under BD1, configure two pseudowires. Use the parameters from the table.
Activity Verification
Complete the verification of the lab activity:
Check the bridge-domain parameters.
RP/0/RSP0/CPU0:PE1#sh l2vpn bridge-domain summary
Thu Feb 2 23:55:45.524 PST
Number of groups: 1, bridge-domains: 1, Up: 1, Shutdown: 0
Default: 1, pbb-edge: 0, pbb-core: 0
Number of ACs: 1 Up: 1, Down: 0
74 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Label 16026 44
Group ID 0x0 0x0
InterfaceAccess PW unknown
MTU 1500 1500
Control word
disabled disabled
PW type Ethernet Ethernet
VCCV CV type
0x2 0x2
(LSP ping verification) (LSP ping verification)
VCCV CC type 0x6 0x6
(router alert label) (router alert label)
(TTL expiry) (TTL expiry)
------------ ------------------------------ --------------------------
MIB cpwVcIndex: 0
Create time: 02/02/2012 23:55:09 (00:04:47 ago)
Last time status changed: 02/02/2012 23:55:14 (00:04:42 ago)
MAC withdraw message: send 0 receive 0
Static MAC addresses:
Statistics:
packets: received 45, sent 153
bytes: received 6864, sent 12085
Storm control drop counters:
packets: broadcast 0, multicast 0, unknown unicast 0
bytes: broadcast 0, multicast 0, unknown unicast 0
MAC learning: enabled
Flooding:
Broadcast & Multicast: enabled
Unknown unicast: enabled
MAC aging time: 300 s, Type: inactivity
MAC limit: 4000, Action: none, Notification: syslog
MAC limit reached: no
MAC port down flush: enabled
MAC Secure: disabled, Logging: disabled
Split Horizon Group: none
DHCPv4 snooping: disabled
IGMP Snooping profile: none
Storm Control: disabled
PW: neighbor 10.3.1.1, PW ID 13, state is up ( established )
PW class pod1-pw-class, XC ID 0xfffc0003
Encapsulation MPLS, protocol LDP
PW type Ethernet, control word disabled, interworking none
PW backup disable delay 0 sec
Sequencing not set
Check connectivity between the CE routers. You should ping all the CE routers in both
teams.
CE1#ping 192.168.200.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE1#
CE1#ping 192.168.200.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE1#
CE1#ping 192.168.200.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.4, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE1#
Activity Procedure
Complete these steps:
Step 1 Under bridge domain BD1, configure a VFI named vfi1.
Step 2 Move all pseudowire configuration under the VFI area.
76 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Activity Verification
Because a full mesh of pseudowires is not established within Team 1 and 2 nor within Team 3
and 4 in this exercise to illustrate VFI split-horizon operations, after successful completion of
the VFI configurations, you should see these results:
CE1 pings to CE2 and to CE3 should be successful. Pings from CE1 to CE4 should fail, for
these reasons:
— PE1 has pseudowires only to PE2 and PE3.
— PE1 does not have a pseudowire to PE4.
CE2 pings to CE1 should be successful. Pings from CE2 to CE3 and to CE4 should fail, for
these reasons:
— PE2 has a pseudowire only to PE1.
— PE2 does not have a pseudowire to PE3 or to PE4.
As with CE1 and CE2, you should see the same ping behavior on CE3 to CE8.
78 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
VCCV CV type 0x2 0x2
(LSP ping verification) (LSP ping verification)
VCCV CC type 0x6 0x6
(router alert label) (router alert label)
(TTL expiry) (TTL expiry)
------------ ------------------------------ ------------------------
MIB cpwVcIndex: 4294705155
Create time: 02/02/2012 01:59:34 (21:41:27 ago)
Last time status changed: 02/02/2012 02:01:44 (21:39:18 ago)
MAC withdraw message: send 0 receive 0
Static MAC addresses:
Statistics:
packets: received 1475, sent 40241
bytes: received 507754, sent 2833022
DHCPv4 snooping: disabled
IGMP Snooping profile: none
VFI Statistics:
drops: illegal VLAN 0, illegal length 0
RP/0/RSP0/CPU0:PE1#
Check connectivity between the CE routers. Where the split-horizon rule is applied,
pinging fails.
CE1#ping 192.168.200.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE1#
CE1#
CE1#ping 192.168.200.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE1#
CE1#ping 192.168.200.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.4, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
CE1#
CE2#ping 192.168.200.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/4 ms
CE2#
CE2#
CE2#ping 192.168.200.3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.3, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
CE2#
CE2#
CE2#ping 192.168.200.4
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 192.168.200.4, timeout is 2 seconds:
.....
Success rate is 0 percent (0/5)
CE2#
80 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Answer Key
The correct answers and expected solutions for the lab activities that are described in this guide
appear here.
82 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
!
PEy (Cisco IOS XE):
ip route vrf Customer_2 172.16.4.0 255.255.255.0 192.168.104.41
!
Step 4 Configure route redistribution:
PEx (Cisco IOS XR):
router bgp 64500
vrf Customer_2
rd 1:220
address-family ipv4 unicast
redistribute connected
redistribute static
!
PEy (Cisco IOS XE):
router bgp 64500
address-family ipv4 vrf Customer_2
redistribute connected
redistribute static
exit-address-family
!
84 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
network 172.16.4.0 0.0.0.255
network 192.168.104.0
!
PEx (Cisco IOS XR):
no router rip
!
router eigrp 1
vrf Customer_2
address-family ipv4
autonomous-system 1
interface GigabitEthernet0/0/0/0
!
!
PEy (Cisco IOS XE):
no router rip
!
router eigrp 1
!
address-family ipv4 vrf Customer_2 autonomous-system 1
network 192.168.104.0
exit-address-family
!
Step 2 Redistribute EIGRP routes:
PEx (Cisco IOS XR):
router bgp 64500
vrf Customer_2
address-family ipv4 unicast
no redistribute rip
redistribute eigrp 1
!
!
PEy (Cisco IOS XE):
router bgp 64500
address-family ipv4 vrf Customer_2
no redistribute rip
redistribute eigrp 1
exit-address-family
!
86 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
neighbor 192.168.103.31
remote-as 64503
update-source GigabitEthernet0/0/0/0
address-family ipv4 unicast
next-hop-self
!
88 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Lab 3-1 Answer Key: Establish Overlapping and Common
Services Layer 3 VPNs
When you complete this lab activity, the device configuration and device outputs will be
similar to the results shown here, with differences that are specific to your pod.
90 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
!
export route-target
1:220
!
maximum prefix 1000
!
!
92 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
!
interface FastEthernet0/2
switchport trunk allowed vlan 40,41
switchport mode trunk
!
94 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
default-information originate
Task 5: Establish Central Site Connectivity for Internet Access Across a Separate
MPLS VPN
Step 1 Create a new VRF instance:
PE3 (Cisco IOS XR):
vrf Internet
description Internet Simulation
address-family ipv4 unicast
import route-target
1:2000
!
export route-target
1:2000
!
SW2:
interface FastEthernet0/2
port-type nni
switchport access vlan 20
switchport mode access
SW12:
interface FastEthernet0/1
port-type nni
switchport access vlan 10
switchport mode access
!
interface FastEthernet0/2
port-type nni
switchport access vlan 20
switchport mode access
96 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
!
interface GigabitEthernet0/1
ip address 192.168.101.11 255.255.255.0
98 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
ip address 172.16.2.1 255.255.255.255
!
address-family ipv4
no neighbor 172.16.2.1 activate
!
exit-address-family
!
address-family vpnv4
neighbor 172.16.2.1 activate
neighbor 172.16.2.1 send-community both
exit-address-family
address-family ipv4
no neighbor 172.16.1.1 activate
!
exit-address-family
!
address-family vpnv4
neighbor 172.16.1.1 activate
neighbor 172.16.1.1 send-community both
exit-address-family
100 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Lab 4-1 Answer Key: Implement Layer 2 VPN (VPWS and VPLS)
When you complete this lab activity, the device configuration and device outputs will be
similar to the results shown here, with differences that are specific to your pod.
102 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Task 4: Use a VFI
Team 1 Team 2
CE1 Pod 1 SW1 PE1 PE3 SW3 Pod 3 CE3
P1
SW12 SW34
SW56 P2 SW78
Team 3 Team 4
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-4
104 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Team z
CEx Pod x SWx PEx
Gi0/0 Fa0/1 Fa0/2
P1
Gi0/0/0/0
Fa0/23
Gi0/1 Fa0/24 Gi0/0/0/1
Fa0/21 Fa0/21
Fa0/22 Fa0/22
Fa0/1
Fa0/2
Fa0/23
SWxy
Fa0/24
Fa0/21
Fa0/23 Gi0/0/1
Gi0/1 Fa0/22
Fa0/24
P2
Gi0/0 Fa0/1 Fa0/2 Gi0/0/0
POS0/2/0
CEy Pod y SWy PEy
POS0/2/1
Gi POS0/2/0
Fa POS0/2/1
OC3 POS Connections to
PE(y+2)
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-5
10.xy.0.1 .x0 .1 .1
.x0 .1
10.x.10.1
10.x.0.1 10.x.1.1
172.16.x.1
192.168.1xy.0/24
172.16.y.1
SWxy 10.y.0.1 10.y.1.1
192.168.1.0/24
192.168.2.0/24
10.y.10.1 .2
.y0 .y0 .2
.2
.y1 .y0 .y0 .2
P2
192.168.10y.0/24 192.168.10y.0/24 192.168.y2.0/24
.y0
CEy Pod y SWy PEy .y0
10.0.2.1
z = 1,2,3,4
Gi 172.16.100.100
x = 1,3,5,7 192.168.2w2.0/24
Fa y = 2,4,6,8 192.168.2w1.0/24
OC3 POS w = 1 (for teams 1 and 2) Connections to
Loopback 2 (for teams 3 and 4) PE(y+2)
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-6
106 Implementing Cisco Service Provider Next-Generation Edge Network Services (SPEDGE) v1.0 © 2012 Cisco Systems, Inc.
Team 1 Team 2
CE1 Pod 1 SW1 PE1 PE3 SW3 Pod 3 CE3
10.10.10.14 10.10.10.11 10.10.10.17 10.10.10.25 10.10.10.19 10.10.10.22
P1
SW12 SW34
10.10.10.15 10.10.10.12 10.10.10.16 10.10.10.24 10.10.10.20 10.10.10.23
CE2 Pod 2 SW2 PE2 PE4 SW4 Pod 4 CE4
SW56 P2 SW78
10.10.10.31 10.10.10.28 10.10.10.32 10.10.10.39 10.10.10.35 10.10.10.38
CE6 Pod 6 SW6 PE6 PE8 SW8 Pod 8 CE8
Team 3 Team 4
© 2012 Cisco and/or its affiliates. All rights reserved. SPEDGE v1.0-7