Anda di halaman 1dari 17

2003, Cisco Systems, Inc. All rights reserved.

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-1

Frame-Mode/Cell-Mode MPLS Implementation on


Cisco IOS Platforms

Monitoring Frame-Mode MPLS on


Cisco IOS Platforms
2003, Cisco Systems, Inc. All rights reserved.

Outline

Overview
MPLS Monitoring Commands
LDP Monitoring Commands
Monitoring Label Switching
Debugging MPLS and LDP
Lesson Summary

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-3

MPLS Monitoring Commands


Router#

show mpls ldp parameters

Displays LDP parameters on the local router


Router#

show mpls interfaces

Displays MPLS status on individual interfaces


Router#

show mpls ldp discovery

Displays all discovered LDP neighbors


2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-4

MPLS Monitoring Commands (Cont.)


show mpls ldp parameters
Router#show mpls ldp
parameters
Protocol
Protocol version:
version: 11
Downstream
Downstream label
label pool:
pool: min
min label:
label: 16;
16; max
max label:
label:
100000
100000
[Configured:
[Configured: min
min label:
label: 1000;
1000; max
max label:
label: 1999]
1999]
Session
Session hold
hold time:
time: 180
180 sec;
sec; keep
keep alive
alive interval:
interval: 60
60
sec
sec
Discovery
Discovery hello:
hello: holdtime:
holdtime: 15
15 sec;
sec; interval:
interval: 55 sec
sec
Discovery
Discovery targeted
targeted hello:
hello: holdtime:
holdtime: 180
180 sec;
sec; interval:
interval:
55 sec
sec
Downstream
Downstream on
on Demand
Demand max
max hop
hop count:
count: 255
255
TDP
TDP for
for targeted
targeted sessions
sessions
LDP
LDP initial/maximum
initial/maximum backoff:
backoff: 15/120
15/120 sec
sec
LDP
LDP loop
loop detection:
detection: off
off

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-5

MPLS Monitoring Commands (Cont.)


show mpls interfaces
Router#show
mpls
interfaces
[interface]
[detail]
Router#show
Router#show mpls
mpls interfaces
interfaces [interface]
[interface] [detail]
[detail]
Interface
Interface Serial0/0:
Serial0/0:
IP
labeling
enabled
(ldp)
IP
IP labeling
labeling enabled
enabled (ldp)
(ldp)
LSP
Tunnel
labeling
enabled
LSP Tunnel labeling enabled
Tag
Tag Frame
Frame Relay
Relay Transport
Transport tagging
tagging not
not enabled
enabled
Tagging
operational
Tagging operational
Fast
Fast Switching
Switching Vectors:
Vectors:
IP
IP to
to MPLS
MPLS Fast
Fast Switching
Switching Vector
Vector
MPLS
Turbo
Vector
MPLS Turbo Vector
MTU
MTU == 1500
1500
Interface
Serial0/3:
Interface Serial0/3:
IP labeling
labeling enabled
enabled (ldp)
(ldp)
IP
IP
labeling
enabled
(ldp)
LSP
LSP Tunnel
Tunnel labeling
labeling not
not enabled
enabled
Tag
Frame
Relay
Transport
Tag Frame Relay Transport tagging
tagging not
not enabled
enabled
Tagging
operational
Tagging operational
Fast
Fast Switching
Switching Vectors:
Vectors:
IP
IP to
to MPLS
MPLS Fast
Fast Feature
Feature Switching
Switching Vector
Vector
MPLS
MPLS Feature
Feature Vector
Vector
MTU
=
1500
MTU = 1500

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-6

MPLS Monitoring Commands (Cont.)


show mpls ldp discovery
show mpls
mpls ldp
ldp discovery
Router#show
Router#show
mpls
ldp
discovery
discovery
Local
Identifier:
Local LDP
LDP
Identifier:
192.168.3.102:0
192.168.3.102:0
Discovery
Discovery Sources:
Sources:
Interfaces:
Interfaces:
Serial1/0.1(ldp):
Serial1/0.1(ldp): xmit/recv
xmit/recv
LDP
LDP Id:
Id: 192.168.3.101:0
192.168.3.101:0
Serial1/0.2(ldp):
Serial1/0.2(ldp): xmit/recv
xmit/recv
LDP
LDP Id:
Id: 192.168.3.100:0
192.168.3.100:0

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-7

LDP Monitoring Commands


Router#

show mpls ldp neighbor

Displays individual LDP neighbors


Router#

show mpls ldp neighbor detail

Displays more details about LDP neighbors


Router#

show mpls ldp bindings

Displays label information base (LIB)


2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-8

LDP Monitoring Commands (Cont.)


show mpls ldp neighbor detail
Router#show
show mpls
mpls ldp
ldp neighbor
neighbor detail
detail
Router#show
mpls
ldp
neighbor
detail
Peer
Peer LDP
LDP Ident:
Ident: 192.168.3.100:0;
192.168.3.100:0; Local
Local LDP
LDP Ident
Ident 192.168.3.102:0
192.168.3.102:0
TCP
TCP connection:
connection: 192.168.3.100.646
192.168.3.100.646 192.168.3.102.11000
192.168.3.102.11000
State:
State: Oper;
Oper; Msgs
Msgs sent/rcvd:
sent/rcvd: 3117/3112;
3117/3112; Downstream;
Downstream;
Last
Last TIB
TIB rev
rev sent2
sent2
Up
Up time:
time: 2w4d;
2w4d; UID:
UID: 4;
4; Peer
Peer Id
Id 0;
0;
LDP
LDP discovery
discovery sources:
sources:
Serial0/0;
Serial0/0; Src
Src IP
IP addr:
addr: 130.0.0.2
130.0.0.2
holdtime:
holdtime: 15000
15000 ms,
ms, hello
hello interval:
interval: 5000
5000 ms
ms
Addresses
Addresses bound
bound to
to peer
peer LDP
LDP Ident:
Ident:
192.168.3.10
192.168.3.14
192.168.3.100
192.168.3.10
192.168.3.14
192.168.3.100
Peer
Peer holdtime:
holdtime: 180000
180000 ms;
ms; KA
KA interval:
interval: 60000
60000 ms;
ms; Peer
Peer
state:
state: estab
estab

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-9

LDP Monitoring Commands (Cont.)


show mpls ldp bindings
show mpls
mpls ldp
ldp bindings
bindings
Router#show
Router#show
mpls
ldp
bindings
10.102.0.0/16,
10.102.0.0/16, rev
rev 29
29
local
local binding:
binding:
remote
remote binding:
binding:
10.211.0.7/32,
10.211.0.7/32, rev
rev 32
32
local
local binding:
binding:
remote
remote binding:
binding:
10.220.0.7/32,
10.220.0.7/32, rev
rev 33
33
local
local binding:
binding:
remote
remote binding:
binding:

2003, Cisco Systems, Inc. All rights reserved.

label:
label: 26
26
lsr:
lsr: 172.27.32.29:0,
172.27.32.29:0, label:
label: 26
26
label:
label: 27
27
lsr:
lsr: 172.27.32.29:0,
172.27.32.29:0, label:
label: 28
28
label:
label: 28
28
lsr:
lsr: 172.27.32.29:0,
172.27.32.29:0, label:
label: 29
29

MPLS v2.03-10

Monitoring Label Switching


Router#

show mpls forwarding-table

Displays contents of LFIB

Router#

show ip cef detail

Displays label(s) attached to a packet during label


imposition on edge LSR

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-11

Monitoring Label Switching (Cont.)


show mpls forwarding-table
Router#show
show mpls
mpls forwarding-table
forwarding-table ???
Router#show
mpls
forwarding-table
A.B.C.D
Destination
A.B.C.D
Destination prefix
prefix
detail
Detailed
detail
Detailed information
information
interface
Match
interface
Match outgoing
outgoing interface
interface
labels
Match
labels
Match label
label values
values
lsp-tunnel
lsp-tunnel LSP
LSP Tunnel
Tunnel id
id
next-hop
Match
next-hop
Match next
next hop
hop neighbor
neighbor
vrf
Show
vrf
Show entries
entries for
for aa VPN
VPN
Routing/Forwarding
Routing/Forwarding instance
instance
||
Output
Output modifiers
modifiers
<cr>
<cr>

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-12

Monitoring Label Switching (Cont.)


show mpls forwarding-table detail
show mpls
mpls forwarding-table
forwarding-table detail
detail
Router#show
Router#show
mpls
forwarding-table
detail
Local
Prefix
Bytes
Local Outgoing
Outgoing
Prefix
Bytes tag
tag
tag
tag
or
switched
tag
tag or
or VC
VC
or Tunnel
Tunnel Id
Id
switched
70
Pop
192.168.3.3/32
00
70
Pop tag
tag
192.168.3.3/32
MAC/Encaps=4/4,
MAC/Encaps=4/4, MTU=1504,
MTU=1504, Tag
Tag Stack{}
Stack{}
0F008847
0F008847
No
No output
output feature
feature configured
configured
Per-packet
load-sharing
Per-packet load-sharing
71
Pop
192.168.3.4/32
00
71
Pop tag
tag
192.168.3.4/32
MAC/Encaps=4/4,
MAC/Encaps=4/4, MTU=1504,
MTU=1504, Tag
Tag Stack{}
Stack{}
0F008847
0F008847
No
No output
output feature
feature configured
configured
Per-packet
Per-packet load-sharing
load-sharing

2003, Cisco Systems, Inc. All rights reserved.

Outgoing
Outgoing
interface
interface
Se0/0
Se0/0

Next
Next Hop
Hop

Se0/0
Se0/0

point2point
point2point

point2point
point2point

MPLS v2.03-13

Monitoring Label Switching (Cont.)


show ip cef detail
show ip
ip cef
cef 192.168.20.0
192.168.20.0 detail
detail
Router#show
Router#show
ip
cef
192.168.20.0
detail
192.168.20.0/24,
192.168.20.0/24, version
version 23,
23, cached
cached adjacency
adjacency to
to Serial1/0.2
Serial1/0.2
00 packets,
packets, 00 bytes
bytes
tag
tag information
information set
set
local
local tag:
tag: 33
33
tag
tag rewrite
rewrite with
with Se1/0.2,
Se1/0.2, point2point,
point2point, tags
tags imposed:
imposed: {32}
{32}
via
via 192.168.3.10,
192.168.3.10, Serial1/0.2,
Serial1/0.2, 00 dependencies
dependencies
next
next hop
hop 192.168.3.10,
192.168.3.10, Serial1/0.2
Serial1/0.2
valid
valid adjacency
adjacency
tag
tag rewrite
rewrite with
with Se1/0.2,
Se1/0.2, point2point,
point2point, tags
tags imposed:
imposed: {32}
{32}

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-14

Debugging MPLS and LDP


Router#

debug mpls ldp ...

Debugs TDP adjacencies, session establishment,


and label bindings exchange
Router#

debug mpls lfib

Debugs LFIB events: label creations, removals,


rewrite and so on
Router#

debug mpls packets [ interface ]

Debugs labeled packets switched by the router

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-15

Summary

The show mpls interfaces command will show only


those interfaces that have had mpls enabled.
Use show mpls ldp bindings display the LIB table.
Use show mpls forwarding-table to display the LFIB
table.
Use debug mpls packets with care because it causes
fast and distributed switching to be disabled.

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-16

Anda mungkin juga menyukai