You are on page 1of 8

Cours IP/MPLS :

Lab 1 : Protole LDP

1)

Routeur PE1:
R1(config)#HOStname PE1

PE1(config)#INTErface Ethernet 1/0

PE1(config-if)#IP ADDress 1.1.1.1 255.255.255.252

PE1(config-if)#NO SHUtdown

PE1(config)# INTErface LOOpback 0

PE1(config-if)#IP ADDress 192.168.1.1 255.255.255.252

Routeur P1:
R2(config)#HOStname P1

P1(config)#INTErface Ethernet 1/0

P1(config-if)#IP ADDress 1.1.1.2 255.255.255.252

P1(config-if)#NO Shutdown

P1(config)#INTERface Ethernet 1/1

P1(config-if)#IP ADDress 2.2.2.1 255.255.255.252

P1(config-if)#NO SHUtdown

Routeur P2:
P2(config)#INterface Ethernet 1/1

P2(config-if)#IP ADDress 2.2.2.2 255.255.255.252

P2(config-if)#NO SHUtdown

P2(config)#INTErface Ethernet 1/2

P2(config-if)#IP ADDress 3.3.3.1 255.255.255.252

P2(config-if)#NO SHUtdown

Routeur PE2:
PE2 (config)INTE Ethernet 1/2
P2(config-if)#IP ADDress 3.3.3.2 255.255.255.252
P2(config-if)#NO SHU
PE2(config)#INTE LOOpback 0
PE2(config-if)#IP ADDress 192.168.2.1 255.255.255.0
Test de Connectivité :
P1#PING 2.2.2.2
Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 20/28/36 ms

P2#PING 3.3.3.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 3.3.3.2, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 12/32/44 ms

2) Activer le routage OSPF :

PE1(config)#router ospf 1

PE1(config-router)#NETwork 192.168.1.0 0.0.0.255 AREa 0

PE1(config-router)#NETwork 1.1.1.0 0.0.0.3 AREa 0

P1(config)#ROUTER OSpf 1

P1(config-router)#NETwork 1.1.1.0 0.0.0.3 AREa 0

P1(config-router)#NETwork 2.2.2.0 0.0.0.3 AREa 0

P2(config)#ROUTER OSpf 1

P2(config-router)#NETwork 2.2.2.0 0.0.0.3 AREa 0

P2(config-router)#NETwork 3.3.3.0 0.0.0.3 AREa 0


PE2(config)#ROUTER OSpf 1

PE2(config-router)#NETwork 3.3.3.0 0.0.0.3 AREa 0

PE2(config-router)#NETwork 192.168.2.0 0.0.0.3 AREa 0

PE1#SH IP ROUTE

1.0.0.0/8 is variably subnetted, 2 subnets, 2 masks

C 1.1.1.0/30 is directly connected, Ethernet1/0

L 1.1.1.1/32 is directly connected, Ethernet1/0

2.0.0.0/30 is subnetted, 1 subnets

O 2.2.2.0 [110/20] via 1.1.1.2, 00:12:39, Ethernet1/0

3.0.0.0/30 is subnetted, 1 subnets

O 3.3.3.0 [110/30] via 1.1.1.2, 00:08:29, Ethernet1/0

192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks

C 192.168.1.0/30 is directly connected, Loopback0

L 192.168.1.1/32 is directly connected, Loopback0

192.168.2.0/32 is subnetted, 1 subnets

O 192.168.2.1 [110/31] via 1.1.1.2, 00:01:17, Ethernet1/0

PE1#PING 192.168.2.1

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.2.1, timeout is 2 seconds:

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 20/45/76 ms


PE1#TRACERoute 192.168.2.1
Tracing the route to 192.168.2.1
1 1.1.1.2 88 msec 20 msec 8 msec
2 2.2.2.2 16 msec 16 msec 24 msec
3 3.3.3.2 140 msec 40 msec 36 msec

3) Activer le Protocole LDP:


PE1(config)#INterface Ethernet 1/0
PE1(config-if)#MPLs IP

P1(config)#INTErface Ethernet 1/0


P1(config-if)#MPLs IP
P1(config)#INTErface Ethernet 1/1
P1(config-if)#MPLs IP

P1(config)#INTERface Ethernet 1/1


P1(config-if)#MPLs IP
P1(config)#INTERface Ethernet 1/2
P1(config-if)#MPLs IP

PE2(config)#INterface Ethernet 1/2


PE2(config-if)#MPLs IP
PE1#SHow MPLs LDp DIscovery

Local LDP Identifier:

192.168.1.1:0

Discovery Sources:

Interfaces:

Ethernet1/0 (ldp): xmit/recv

LDP Id: 2.2.2.1:0; no host route

PE1#SHow MPLs LDp NEighbor

Peer LDP Ident: 2.2.2.1:0; Local LDP Ident 192.168.1.1:0

TCP connection: 2.2.2.1.646 - 192.168.1.1.23109

State: Oper; Msgs sent/rcvd: 17/17; Downstream

Up time: 00:07:52

LDP discovery sources:

Ethernet1/0, Src IP addr: 1.1.1.2

Addresses bound to peer LDP Ident:

1.1.1.2 2.2.2.1

PE1#SHow MPLs LDp BINdings

lib entry: 1.1.1.0/30, rev 2

local binding: label: imp-null

remote binding: lsr: 2.2.2.1:0, label: imp-null

lib entry: 2.2.2.0/30, rev 4

local binding: label: 16

remote binding: lsr: 2.2.2.1:0, label: imp-null

lib entry: 3.3.3.0/30, rev 6


local binding: label: 17

remote binding: lsr: 2.2.2.1:0, label: 16

lib entry: 192.168.1.0/30, rev 8

local binding: label: imp-null

lib entry: 192.168.1.1/32, rev 11

remote binding: lsr: 2.2.2.1:0, label: 17

lib entry: 192.168.2.1/32, rev 10

local binding: label: 18

remote binding: lsr: 2.2.2.1:0, label: 18

LFIB TABLE :

PE1#SHow MPLs FOrwarding-table

P1#SHow MPLs FOrwarding-table

You might also like