Sie sind auf Seite 1von 25

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

Configuring Frame-Mode MPLS on


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

Outline
Overview
MPLS Configuration Tasks
Configuring the MPLS id on a router
Configuring MPLS on a Frame-Mode Interface
Configuring Label-Switching MTU
Configuring IP TTL Propagation
Conditional Label Distribution
Configuring Frame-Mode MPLS on Switched
WAN Media
Lesson Summary
2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-3

MPLS Configuration Tasks

Mandatory:
Enable CEF switching.
Configure TDP or LDP on every label-enabled interface.

Optional:

Configure the MPLS ID.


Configure MTU size for labeled packets.
Configure IP TTL propagation.
Configure conditional label advertising.

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-4

Configuring the MPLS ID on a Router


router(config)#

mpls ldp router-id interface [force]

12.0(10)ST

Specifies a preferred interface for determining the


Label Distribution Protocol (LDP) router ID
Parameters:
interface Causes the IP address of the specified interface
to be used as the LDP router ID, provided that the interface
is operational
force Alters the behavior of the mpls ldp router-id command
to force the use of the named interface as the LDP
router ID

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-5

Configuring MPLS on a Frame-Mode


Interface
Router(config-if)#

mpls ip

Enables label switching on a frame-mode interface


Starts LDP on the interface
Router(config-if)#

mpls label protocol [tdp | ldp | both]

Starts selected label distribution protocol on the


specified interface

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-6

Configuring MPLS on a Frame-Mode Interface (Cont.)


Example

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-7

Configuring MPLS on a Frame-Mode Interface (Cont.)


Example

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-8

Configuring a Label-Switching MTU


Router(config-if)#

mpls mtu bytes

Label switching increases the maximum MTU


requirements on an interface, because of additional label
header.
Interface MTU is automatically increased on WAN
interfaces; IP MTU is automatically decreased on LAN
interfaces.
Label-switching MTU can be increased on LAN interfaces
(resulting in jumbo frames) to prevent IP fragmentation.
The jumbo frames are not supported by all LAN switches.
2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-9

Configuring Label-Switching MTU (Cont.)


Example

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-10

Configuring IP TTL Propagation


Router(config)#

no mpls ip propagate-ttl

By default, IP TTL is copied into the MPLS label at


label imposition, and the MPLS label TTL is copied
(back) into the IP TTL at label removal.
This command disables IP TTL and label TTL
propagation.
TTL value of 255 is inserted in the label header.

The TTL propagation has to be disabled on ingress


and egress edge LSRs.

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-11

Configuring IP TTL Propagation (Cont.)


Example

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-12

Configuring IP TTL Propagation (Cont.)


Disabling IP TTL Propagation
Example

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-13

Configuring IP TTL Propagation (Cont.)


Extended Options
Router(config)#

no mpls ip propagate-ttl [forwarded | local]

Selectively disables IP TTL propagation for:


Forwarded traffic (traceroute does not work for
transit traffic labeled by this router)
Local traffic (traceroute does not work from the
router but works for transit traffic labeled by this
router)

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-14

Configuring IP TTL Propagation (Cont.)


Disabling IP TTL Propagation
Example

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-15

Conditional Label Distribution


Configuration
Router(config)#

mpls ldp advertise-labels [for access-list-number [to aln]]

By default, labels for all destinations are announced to all


LDP or TDP neighbors.
This command enables you to selectively advertise some
labels to some LDP or TDP neighbors.
Conditional label advertisement works only over framemode interfaces.
Parameters:
for access-list-numberThe IP access control list (ACL) that selects
the destinations for which the labels will be generated
to access-list-numberThe IP ACL that selects the TDP neighbors
that will receive the labels
2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-16

Conditional Label Distribution Configuration (Cont.)


Example

The customer is already running IP infrastructure.


MPLS is needed only to support MPLS VPN
services;
Labels should be generated only for loopback interfaces
(BGP next hops) of all routers.
All loopback interfaces are in one contiguous address
block (192.168.254.0/24).

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-17

Conditional Label Distribution


Configuration (Cont.)
Step 1Enable CEF and label switching.
ip
ip cef
cef
!
interface
mpls
mpls ip
ip
!
interface
mplsipip
mpls
!
interface
mpls
mplsipip

2003, Cisco Systems, Inc. All rights reserved.

serial 0/0
serial 0/1
ethernet 1/0

MPLS v2.03-18

Conditional Label Distribution


Configuration (Cont.)
Step 2 Enable conditional label advertisement.

!
! Disable default advertisment mechanism
!
no mpls
mpls ldp
ldp advertise-labels
advertise-labels
no
!
! Configure conditional advertisments
!
mpls ldp advertise-labels for 90 to 91
!
access-list 90 permit ip
192.168.254.0
0.0.0.255
192.168.254.0
0.0.0.255
access-list 91 permit ip
anyany

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-19

Configuring Frame-Mode MPLS on


Switched WAN Media

Why:
Run MPLS over ATM networks that do not support MPLS
Potential first phase in ATM network migration

How:
Configure MPLS over ATM point-to-point subinterfaces on
the routers

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-20

Configuring Frame-Mode MPLS on Switched WAN


Media (Cont.)
MPLS over ATM Forum PVCs

Routers view the ATM PVC as a frame-mode MPLS interface.


TDP or LDP is run between the adjacent routers.
Many LSPs can be established over one ATM PVC.
The ATM network is not aware of MPLS between the routers.

2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-21

Configuring Frame-Mode MPLS on Switched WAN


Media (Cont.)
MPLS over ATM Forum PVCs (Cont.)

Create a point-to-point ATM subinterface.


Configure ATM PVC on the subinterface.
Start label switching and LDP or TDP on the interface.
2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-22

Configuring Frame-Mode MPLS on Switched WAN


Media (Cont.)
MPLS over Frame Relay Networks

Create a point-to-point or multipoint Frame Relay subinterface.


Configure Frame Relay DLCI on the subinterface.
Start label switching and LDP or TDP on the interface.
2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-23

Summary
Two mandatory steps are needed to enable MPLS.
Use mpls ip or tag-switching ip to enable MPLS (interface
level).
Label switching increases maximum MTU size on an
interface.
TTL propagation must be disabled on ingress and egress
edge LSRs.
Conditional label advertisement works only on frame-mode
interfaces.
When frame-mode MPLS on an ATM interface is enabled,
LDP relationships are established between the PVC
endpoints and not with the attached ATM switch.
2003, Cisco Systems, Inc. All rights reserved.

MPLS v2.03-24

Das könnte Ihnen auch gefallen