Anda di halaman 1dari 16

Cisco IOS XR

MPLS Introduction Training

XR Training / lwigley

2005 Cisco Systems, Inc. All rights reserved.

Cisco Public

MPLS Big Picture / Agenda


Functionality Similar to IOS
No TDP
Traffic Engineering supported (not covered)

L3 VPN support in release 3.3


L2 VPN support in release 3.4

XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

LDP Configuration
Basic configuration

mpls ldp
router-id
!
interface
interface
interface
interface

XR Training / lwigley

6.6.6.6
GigabitEthernet0/4/0/0
GigabitEthernet0/4/0/1
GigabitEthernet0/4/0/2
GigabitEthernet0/4/0/3

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

LDP Monitoring
Monitor LDP neighbors

RP/0/7/CPU0:GSR1#show mpls ldp neighbor


Peer LDP Identifier: 7.7.7.7:0
TCP connection: 7.7.7.7:50744 - 1.1.1.1:646
Graceful Restart: No
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 6969/6974
Up time: 4d05h
LDP Discovery Sources:
GigabitEthernet0/4/0/3
Addresses bound to this peer:
11.1.1.7
11.1.2.7
11.1.3.7
11.1.4.7
11.1.5.7
11.1.6.7
7.7.7.7
50.1.1.7

XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

LDP Monitoring
Monitor LDP bindings

RP/0/7/CPU0:GSR1#show mpls ldp bindings


1.1.1.1/32 , rev 36
local binding: label:IMP-NULL
remote bindings :
lsr:7.7.7.7:0, label:19
2.2.2.2/32 , rev 51
local binding: label:32
remote bindings :
lsr:7.7.7.7:0, label:16
3.3.3.3/32 , rev 2
local binding: label:16
remote bindings :
lsr:7.7.7.7:0, label:21
4.4.4.4/32 , rev 4
local binding: label:17
remote bindings :
lsr:7.7.7.7:0, label:22
XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

LDP Monitoring
Other show commands

RP/0/7/CPU0:GSR1#show mpls ldp ?


backoff
Session Backoff table information
bindings
Label Information Base (LIB) information
discovery
LDP Discovery Hello Information
forwarding
Forwarding entries information
graceful-restart Graceful Restart feature information
igp
IGP related information
neighbor
Neighbor information
parameters
Configuration parameter information
statistics
Statistics information
summary
Summarized information
tech-support
Output show commands of interest for
MPLS LDP debugging

XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

Basic L3 VPN Configuration


vrf <NAME>
address-family ipv4 unicast
import route-target
<A:B>
export route-target
<C:D>
import route-policy <name>
export route-policy <name>

Create VRF

Attach to interface

interface <INT>
vrf <NAME>
ipv4 address <ADDR/MASK> (note: must remove old address)
router bgp <AS>
address-family vpnv4 unicast
neighbor <neighbor>
address-family vpnv4 unicast

Initialize
address family

Advertise Local
Route

vrf <NAME>
rd <E:F>
address-family ipv4 unicast
redistribute connected
XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

L3 VPN Monitoring
Prefixes from VPN neighbor

RP/0/7/CPU0:GSR1#show bgp vpnv4 unicast summary


BGP router identifier 1.1.1.1, local AS number 7
BGP generic scan interval 60 secs
BGP table state: Active
BGP main routing table version 4
BGP scan interval 60 secs
BGP is operating in STANDALONE mode.
Process
Speaker

RecvTblVer
4

Neighbor
2.2.2.2
3.3.3.3
4.4.4.4
5.5.5.5
7.7.7.7

Spk
0
0
0
0
0

XR Training / lwigley

bRIB/RIB
4

LabelVer
4

AS MsgRcvd MsgSent
7
0
0
7
6089
6091
7
0
0
7
6110
6111
7
6117
6110

2006 Cisco Systems, Inc. All rights reserved.

TblVer
0
4
0
0
0

Route received

ImportVer
4

SendTblVer
4

InQ OutQ Up/Down St/PfxRcd


0
0 00:00:00
Idle
0
0
4d05h
1
0
0 00:00:00
Idle
0
0
4d05h
0
0
0
4d05h
0

Cisco Public

L3 VPN Monitoring
Import/Export parameters

RP/0/7/CPU0:GSR1#show vrf <NAME>


VRF
<NAME>

XR Training / lwigley

RD
1:3

RT
import
export

2006 Cisco Systems, Inc. All rights reserved.

1:3
1:3

AFI
IPV4
IPV4

SAFI
Unicast
Unicast

Cisco Public

Basic L2 MPLS VPN Configuration

l2vpn
pw-class [class-name]
encapsulation mpls
protocol ldp

Reusable template for VPN


type (MPLS or L2TPv3)

Tunnel Parameters

xconnect group [group-name]


p2p [circuit-name]
interface GigabitEthernet0/1/0/0
neighbor 12.12.12.12 pw-id 100
pw-class [class-name]
interface GigabitEthernet0/1/0/0
l2transport
Put interface into
L2VPN mode
XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

10

L2 VPN Monitoring
Check Targeted LDP Session
RP/0/0/CPU0:L2VPN-PE1#sh mpls ldp neighbor 12.12.12.12 detail
Peer LDP Identifier: 12.12.12.12:0
TCP connection: 12.12.12.12:38367 - 10.10.10.10:646
Graceful Restart: Yes (Reconnect Timeout: 120 sec,Recovery: 180 sec)
Session Holdtime: 180 sec
State: Oper; Msgs sent/rcvd: 4247/14253
Up time: 1d01h
LDP Discovery Sources:
Targeted Hello (10.10.10.10 -> 12.12.12.12, active)
Addresses bound to this peer:
5.36.19.85
12.12.12.12
185.40.8.2
185.40.9.2
185.30.1.2
185.30.6.2
185.10.10.2
185.23.10.1
192.3.1.1
185.40.101.1
185.30.7.2
185.30.8.2
Peer holdtime: 180 sec; KA interval: 60 sec; Peer state: Estab
Clients: AToM

XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

11

L2 VPN Monitoring
Verify XConnect Status

RP/0/0/CPU0:L2VPN-PE1# sh l2vpn xconnect


Legend: ST = State, UP = Up, DN = Down, AD = Admin Down, UR = Unresolved,
LU = Local Up, RU = Remote Up, CO = Connected
XConnect
Segment 1
Segment 2
Group
Name
ST
Description
ST
Description
ST
-----------------------------------------------------------------------G1
ToPE1
UP
Gi0/6/0/0
UP
12.12.12.12
1
UP
--------------------------------------------------------------------------------

XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

12

L2 VPN Monitoring
Detailed View of XConnect

RP/0/0/CPU0:L2VPN-PE1# sh l2vpn xconnect detail


Group VLAN100-VLAN200, XC 100, state is up
AC: GigabitEthernet0/0/0/2.100, state is up
Type VLAN; Tags: outer 100, inner 0; MTU 1500; XC ID 7
Statistics:
packet totals: send 2107000
byte totals: send 126420000
drops: illegal VLAN 0, illegal length 0
PW: neighbor 222.255.100.2, PW ID 100, state is up ( established )
PW class VLAN
Encapsulation MPLS, protocol LDP
PW type Ethernet VLAN, control word enabled, interworking none
Sequencing not set
MPLS
Local
Remote
------------ ------------------------------ -----------------------------Label
16002
16009
Group ID
0x1000700
0x1000500
Interface
GigabitEthernet0/0/0/2.100
GigabitEthernet0/0/0/2.200
MTU
1500
1500
Control word enabled
enabled
PW type
Ethernet VLAN
Ethernet VLAN
VCCV CV type 0x2
0x2
(LSP ping verification)
(LSP ping verification)
VCCV CC type 0x3
0x3
(control word)
(control word)
(router alert label)
(router alert label)
------------ ------------------------------ -----------------------------Create time: 04/04/2007 02:55:04 (1d11h ago)
Last time status changed: 04/04/2007 03:14:25 (1d11h ago)
Statistics:
packet totals: receive 2107000
byte totals: receive 143276000
XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

13

L2 VPN Monitoring
Pseudowire Ping

RP/0/RP0/CPU0:L2VPN-PE2#ping pseudowire 10.10.10.10 1 reply mode control-channel


Sending 5, 100-byte MPLS Echos to 10.10.10.10 VC: 1,
timeout is 2 seconds, send interval is 0 msec:
Codes: '!' - success, 'Q' - request not sent, '.' - timeout,
'L' - labeled output interface, 'B' - unlabeled output interface,
'D' - DS Map mismatch, 'F' - no FEC mapping, 'f' - FEC mismatch,
'M' - malformed request, 'm' - unsupported tlvs, 'N' - no rx label,
'P' - no rx intf label prot, 'p' - premature termination of LSP,
'R' - transit router, 'I' - unknown upstream index,
'X' - unknown return code, 'x' - return code 0
Type escape sequence to abort.
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 15/17/23 ms
RP/0/RP0/CPU0:L2VPN-PE2#

XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

14

Q and A

XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

15

XR Training / lwigley

2006 Cisco Systems, Inc. All rights reserved.

Cisco Public

16

Anda mungkin juga menyukai