Sunteți pe pagina 1din 17

APNIC MPLS Workshop Lab

Module 9 MPLS LDP Configuration Lab


Objective: All the routers are pre-configured with basic interface, OSPF and BGP configuration
according to the following topology diagram. Need to configure MPLS LDP on all relevant
interface of infrastructure routers. After finishing the configuration please ensure that required
LSP has been built for all the infrastructure prefixes and you can do LSP ping and LSP
traceroute from PE routers to the other PE routers within the Lab.
Prerequisites: Knowledge of IGP, EGP, MPLS, LDP is required.
The following will be the common topology and IP address plan used for the labs.
Infra
11
fa0/0

e1/3

e1/1
e1/1

e1/1

fa0/1

fa0/5

172.16.10.4/30
2406:6400:e:1::/64

e1/0

e1/3
11

172.16.10.0/30
2406:6400:e::/64

e1/1

172.16.10.8/30
2406:6400:e:2::/64

e1/0

fa0/1

e1/1

fa0/8

e1/1

e1/3

e1/3

11

lo 0
172.16.15.8/32
2406:6400::8/128

e1/1

44

fa0/0

e1/1

172.16.10.72/30
2406:6400:e:30::/64

e1/0
e1/1

172.16.10.76/30
2406:6400:e:31::/64

AS17821
lo 0
172.16.15.11/32
2406:6400::11/128

DNS MAIL WWW

r18-CBR3

R9
2 54

172.16.4.0/27
2406:6400:c00::/48

lo 0
172.16.15.9/32
2406:6400::9/128

2 58

fa0/1
2 162
172.16.11.160/30
2406:6400:24::/64

11

fa0/0

e1/0

172.16.6.0/27
2406:6400:e00::/48

lo 0
172.16.15.7/32
2406:6400::7/128

fa0/0

161 1

Infra

CPE

172.16.26.0/24
2406:6400:d800::/48

e1/1

1 53

e1/0
78 2

Infra

1 57

1 49

fa0/0

77 1

R12

2 50

33

44

fa0/1

fa0/0

172.16.11.128/30
2406:6400:20::/64 r17-CAR3
129 1
2 130
11
fa0/1
fa0/0
fa0/0

172.16.10.56/30
2406:6400:e:22::/64

R8

e1/0

172.16.10.52/30
2406:6400:e:21::/64

CPE

82 2

fa0/1
fa0/0
1 225
226 2
172.16.11.224/30
2406:6400:2c::/64

R11

73 1

11

r20-CBR4
11
fa0/0

33

lo 0
172.16.15.10/32
2406:6400::10/128

172.16.10.80/30
2406:6400:e:32::/64

172.16.18.0/24
2406:6400:9800::/48

e1/1

e1/0
74 2

11

fa0/8
R7

81 1

r16-CBR2

fa0/1
2 98
97 1
172.16.11.96/30
2406:6400:1c::/64
fa0/0

172.16.24.0/24
2406:6400:c000::/48

1 193
fa0/0

lo 0
172.16.15.6/32
2406:6400::6/128

fa0/5

SW2

172.16.10.48/30
2406:6400:e:20::/64

fa0/0

194 2
fa0/1

11
fa0/0

lo 0
172.16.15.4/32
2406:6400::4/128

R6

2 30

R10

r19-CAR4
11

SW1

2 34
e1/0

fa0/11

172.16.28.0/24
2406:6400:e000::/48

fa0/2
fa0/11

172.16.11.192/30
2406:6400:28::/64

lo 0
172.16.15.12/32
2406:6400::12/128
172.16.30.0/24
2406:6400:f800::/48

e1/0

2 66
fa0/1

172.16.22.0/24
2406:6400:b800::/48

62

172.16.12.0/24
2406:6400:2::/48

172.16.10.28/30
2406:6400:e:11::/64

R3

10 2

fa0/1
fa0/0
34 2
1 33
172.16.11.32/30
2406:6400:14::/64

1 29
22

fa0/0

r15-CAR2

1 33

1 25

fa0/0

11

e1/0
2 26

172.16.10.32/30
2406:6400:e:12::/64

51

R5

172.16.13.0/24
2406:6400:3::/48

fa0/1

fa0/2

r14-CBR1
11
fa0/0

R2

11

22

lo 0
172.16.15.3/32
2406:6400::3/128

lo 0
172.16.15.5/32
2406:6400::5/128

lo 0
172.16.15.2/32
2406:6400::2/128

11

lo 0
172.16.15.1/32
2406:6400::1/128

CPE
172.16.11.64/30
2406:6400:18::/64

65 1
e1/0
22
91

11

fa0/1

Infra
R4

e1/0

22

172.16.2.0/27
2406:6400:a00::/48

fa0/0

11
fa0/0

172.16.0.0/27
2406:6400:800::/48

R1

e1/1

r13-CAR1

172.16.20.0/24
2406:6400:a000::/48

172.16.11.0/30
2406:6400:10::/64

DNS MAIL WWW

172.16.10.24/30
2406:6400:e:10::/64

172.16.16.0/24
2406:6400:8000::/48

CPE

DNS MAIL WWW

DNS MAIL WWW

Figure 1 ISP Lab Basic Configuration

Lab Notes
Out of all 20 routers on the above lab topology R1, R3, R4, R6, R7, R9, R10, R12 are PE (LER)
routers. R2, R5, R8, R11 are P (LSR) routers and R13-20 are CE routers. On all PE and P routers
interfaces connecting to other PE or P routers we need to configure LDP protocol.
Please spend some time to be familiar with the network topology and addressing plan before you start
building the configuration on the routers.
1

APNIC
Created: 24 June 2014
Updated: 24 June 2014

Tuesday, September 09, 2014

In module 1 all required configurations are done in 3 steps.


1. LDP protocol configuration.
After the LDP configuration there will be 26 LSP build for the 26 IGP prefix according the table
below:
Loopback
R1=> 172.16.15.1/32
R2=> 172.16.15.2/32
R3=> 172.16.15.3/32
R4=> 172.16.15.4/32
R5=> 172.16.15.5/32
R6=> 172.16.15.6/32
R7=> 172.16.15.7/32
R8=> 172.16.15.8/32
R9=> 172.16.15.9/32
R10=> 172.16.15.10/32
R11=> 172.16.15.11/32
R12=> 172.16.15.12/32

Point-to-point
R2-R1=> 172.16.10.0/30
R2-R3=> 172.16.10.4/30
R1-R3=> 172.16.10.8/30
R5-R4=> 172.16.10.24/30
R5-R6=> 172.16.10.28/30
R4-R6=> 172.16.10.32/30
R8-R7=> 172.16.10.48/30
R8-R9=> 172.16.10.52/30
R7-R9=> 172.16.10.56/30
R11-R10=> 172.16.10.72/30
R11-R12=> 172.16.10.76/30
R11-R12=> 172.16.10.80/30

Transport
Purple=> 172.16.12.0/24
Green=> 172.16.13.0/24

2. Disabling the TTL propagation on the PE routers.


TTL propagation can be disabled to hide the core routers from the end users. Disabling TTL
propagation causes routers to set the value 255 into the TTL field of the label when an IP
packet is labelled.
3. Conditional Label binding for loopback prefixes only
To scale MPLS in a large environment we will optimize our LFIB table to build LSP for loopback
prefixes only, which will be used as nexthop for all external prefix. Those LSP for loopback prefixes
will also be used as VPN LSP in our next module when we will do L3 VPN lab. After configuration of
conditional LDP LSP will build for following IGP prefix only.
Loopback
R1=> 172.16.15.1/32
R2=> 172.16.15.2/32
R3=> 172.16.15.3/32
R4=> 172.16.15.4/32
R5=> 172.16.15.5/32
R6=> 172.16.15.6/32
R7=> 172.16.15.7/32
R8=> 172.16.15.8/32
R9=> 172.16.15.9/32
R10=> 172.16.15.10/32
R11=> 172.16.15.11/32
R12=> 172.16.15.12/32

APNIC MPLS Workshop Lab

Lab Exercise
1. LDP Configuration:
Here is an example configuration for R1
config t
ip cef

CEF (Cisco Express Forwarding), which enhanced the previous process switching mechanism. For
MPLS to work CEF switching is mandatory.
mpls label range 100 199

Specifying the label range for this router start from 100 to 199. It will help us to identify and
analyse the label allocation during troubleshooting and debugging purpose.
mpls ldp router-id loopback 0 force

Forcing LDP router ID to be loopback address


int e1/0
mpls ip

IP MPLS is enabled on the interface


mpls label protocol ldp

Label distribution protocol is LDP


mpls mtu override 1512

MPLS MTU size will be changed to 1512 considering 3 stack of 32 bit MPLS label including main
label, VPN and Traffic engineering
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verify your LDP configuration:


Command to show all the interfaces configured with MPLS and relevant protocol:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router13, router14, router15..router20]

APNIC
Created: 24 June 2014
Updated: 24 June 2014

Tuesday, September 09, 2014

MPLS LDP Debugging


debug mpls ldp messages sent/received all
debug mpls packet

[Ping from CPE routers]

2. Disabling the TTL propagation on the PE routers


Here is an example configuration for R9
config t
no mpls ip propagate-ttl forwarded

The TTL functionality in MPLS is equivalent to that of traditional IP forwarding. Furthermore,


when an IP packet is labeled, the TTL value from the IP header is copied into the TTL field in the
label. This is called TTL propagation. This command will disable copying TTL field from the IP
packet to the LDP label and set a default value 255 and it will hide the ISP backbone routers from
the traceroute perform from CE routers.
exit
wr

3. Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32

This prefix list will match all loopback prefix belongs to subnet 172.16.15.0/24 and from range 24
to 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK

From the global IGP table filter all prefixes other then those match by prefix list ALLLOOPBACK then allocate local label and advertise to LDP neighbour.
exit
exit
wr

APNIC MPLS Workshop Lab

Workshop templates for reference purpose only:


LDP protocol configuration
R1
config t
ip cef
mpls label range 100 199
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]
5

APNIC
Created: 24 June 2014
Updated: 24 June 2014

Tuesday, September 09, 2014

LDP protocol configuration


R2
config t
ip cef
mpls label range 200 299
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int fa0/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int fa0/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

APNIC MPLS Workshop Lab

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

LDP protocol configuration


R3
config t
ip cef
mpls label range 300 399
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

APNIC
Created: 24 June 2014
Updated: 24 June 2014

Tuesday, September 09, 2014

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

LDP protocol configuration


R4
config t
ip cef
mpls label range 400 499
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

APNIC MPLS Workshop Lab

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

LDP protocol configuration


R5
config t
ip cef
mpls label range 500 599
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int fa0/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int fa0/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

APNIC
Created: 24 June 2014
Updated: 24 June 2014

Tuesday, September 09, 2014

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

LDP protocol configuration


R6
config t
ip cef
mpls label range 600 699
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

10

APNIC MPLS Workshop Lab

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

LDP protocol configuration


R7
config t
ip cef
mpls label range 700 799
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

11

APNIC
Created: 24 June 2014
Updated: 24 June 2014

Tuesday, September 09, 2014

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

LDP protocol configuration


R8
config t
ip cef
mpls label range 800 899
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int fa0/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int fa0/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

12

APNIC MPLS Workshop Lab

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

LDP protocol configuration


R9
config t
ip cef
mpls label range 900 999
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

13

APNIC
Created: 24 June 2014
Updated: 24 June 2014

Tuesday, September 09, 2014

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

LDP protocol configuration


R10
config t
ip cef
mpls label range 1000 1099
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

14

APNIC MPLS Workshop Lab

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

LDP protocol configuration


R11
config t
ip cef
mpls label range 1100 1199
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int fa0/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int fa0/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

15

APNIC
Created: 24 June 2014
Updated: 24 June 2014

Tuesday, September 09, 2014

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

LDP protocol configuration


R12
config t
ip cef
mpls label range 1200 1299
mpls ldp router-id loopback 0 force
int e1/0
mpls ip
mpls label protocol ldp
mpls mtu override 1512
int e1/1
mpls ip
mpls label protocol ldp
mpls mtu override 1512
exit
exit
wr

16

APNIC MPLS Workshop Lab

Verification Command:
sh mpls ldp discovery [LDP ID]
sh mpls ldp parameters [LDP version, different LDP timers etc]
sh mpls ldp neighbor [LDP neighbor status etc]
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

Disabling the TTL propagation on the PE routers


config t
no mpls ip propagate-ttl forwarded
exit
wr

Verification Command:
traceroute [router1, router2, router3..router12]

Conditional Label binding for loopback prefixes only


config t
ip prefix-list ALL-LOOPBACK seq 15 permit 172.16.15.0/24 le 32
mpls ldp label
allocate global prefix-list ALL-LOOPBACK
exit
exit
wr

Verification Command:
sh mpls ldp bindings [LDP label binding etc]
sh mpls forwarding-table [MPLS forwarding table]
traceroute [router1, router2, router3..router12]

17

APNIC
Created: 24 June 2014
Updated: 24 June 2014

S-ar putea să vă placă și