Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
Cisco CCIP MPLS Study Guide - James Reagan.pdf
Скачиваний:
250
Добавлен:
24.05.2014
Размер:
6.47 Mб
Скачать

394 Appendix A Challenge Labs

Challenge Lab 4

The following challenge lab tests your ability to configure a VRF, a route distinguisher, a route target, OSPF as a PE-CE routing protocol, and OSPF redistribution into MP-BGP. Note that the network is already set up with MPLS and MP-BGP (AS 65000).

 

 

Serial

0

Serial

0/1

Serial

0/0

Serial

0/1

Serial

0/0

Serial

0/3

Serial

0/1

Serial

0

 

 

 

 

 

 

 

 

 

 

 

 

 

Peer 1

 

Atlanta

 

 

Core

 

 

Raleigh

 

 

Peer 2

 

 

You need to know all the interfaces and IP addressing contained in the

 

 

following two tables:

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Customer Addressing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Device

 

 

 

Loopback 0

 

 

 

 

Serial 0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Peer1

 

 

 

192.168.1.1/32

 

 

 

192.168.3.5/30

 

 

 

Peer2

 

 

 

192.168.2.1/32

 

 

 

192.168.3.10/30

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Service Provider Addressing

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Device

Loopback 0

 

Serial 0/0

 

 

 

Serial 0/1

 

 

Serial 0/3

 

 

 

 

 

 

 

 

 

 

Atlanta

204.134.83.1/32

204.134.83.5/30

 

192.168.3.6/30

N/A

 

 

 

Core

204.134.83.2/32

204.134.83.9/30

 

204.134.83.6/30

N/A

 

 

 

Raleigh

204.134.83.3/32

N/A

 

 

 

192.168.3.9/30

204.134.83.10/30

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

VRF Configuration

This section includes the following lab exercise:

Lab 4.1: Configure a VRF, a route distinguisher, and a route target

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

Challenge Lab 4 395

L A B 4 . 1

Configure a VRF, a route distinguisher, and a route target

1.On the Atlanta POP router, create a VRF called peer_vpn.

2.On the Atlanta POP router, assign a route distinguisher of 50:1.

3.On the Atlanta POP router, configure an import route target and an export route target of 50:1.

4.On the Atlanta POP router, associate the PE-CE interface with the VRF and assign the appropriate address from the table.

5.On the Raleigh POP router, create a VRF called peer_vpn.

6.On the Raleigh POP router, assign a route distinguisher of 50:1.

7.On the Raleigh POP router, configure an import route target and an export route target of 50:1.

8.On the Raleigh POP router, associate the PE-CE interface with the VRF and assign the appropriate address from the table.

OSPF

This section includes the following lab exercise:

Lab 4.2: Configure OSPF on peer and PE devices

L A B 4 . 2

Configure OSPF on peer and PE devices

1.Configure OSPF Area 0 on the Peer 1 Serial 0 interface.

2.Configure OSPF Area 1 on the Peer 1 Loopback 0 interface.

3.Configure OSPF Area 0 on the Peer 2 Serial 0 interface.

4.Configure OSPF Area 1 on the Peer 2 Loopback 0 interface.

5.Configure OSPF on the Atlanta POP router for the VRF.

6.Configure OSPF on the Raleigh POP router for the VRF.

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

396 Appendix A Challenge Labs

Redistribution

This section includes the following lab exercise:

Lab 4.3: Configure redistribution

L A B 4 . 3

Configure redistribution

1.Configure redistribution between MP-BGP and the OSPF on the Atlanta POP router.

2.Configure redistribution between MP-BGP and the OSPF on the Raleigh POP router.

Answer to Lab 4.1

Atlanta#conf t

Enter configuration commands, one per line. End with CNTL/Z. Atlanta(config)#ip vrf peer_vpn

Atlanta(config-vrf)#rd 50:1 Atlanta(config-vrf)#route-target both 50:1 Atlanta(config-vrf)#exit Atlanta(config)#int s 0/1

Atlanta(config-if)#ip vrf forwarding peer_vpn

%Interface Serial0/1 IP address 192.168.3.6 removed due to enabling VRF peer_vpn

Atlanta(config-if)#ip address 192.168.3.6 255.255.255.252

Raleigh#conf t

Enter configuration commands, one per line. End with CNTL/Z. Raleigh(config)#ip vrf peer_vpn

Raleigh(config-vrf)#rd 50:1 Raleigh(config-vrf)#route-target both 50:1 Raleigh(config-vrf)#exit Raleigh(config)#int s 0/1

Raleigh(config-if)#ip vrf forwarding peer_vpn

%Interface Serial0/1 IP address 192.168.3.9 removed due to enabling VRF peer_vpn

Raleigh(config-if)#ip address 192.168.3.9 255.255.255.252

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

Challenge Lab 4 397

Answer to Lab 4.2

Peer1#conf t

Enter configuration commands, one per line. End with CNTL/Z. Peer1(config)#router ospf 1

Peer1(config-router)#network 192.168.3.5 0.0.0.0 area 0 Peer1(config-router)#network 192.168.1.1 0.0.0.0 area 1

Peer1(config-router)#^Z Peer1#

Peer2#conf t

Enter configuration commands, one per line. End with CNTL/Z. Peer2(config)#router ospf 1

Peer2(config-router)#network 192.168.3.10 0.0.0.0 area 0 Peer2(config-router)#network 192.168.2.1 0.0.0.0 area 1

Peer2(config-router)#^Z Peer2#

Atlanta#conf t

Enter configuration commands, one per line. End with CNTL/Z. Atlanta(config)#router ospf 1 vrf peer_vpn Atlanta(config-router)#network 192.168.3.6 0.0.0.0 area 0

Raleigh#conf t

Enter configuration commands, one per line. End with CNTL/Z. Raleigh(config)#router ospf 1 vrf peer_vpn Raleigh(config-router)#network 192.168.3.9 0.0.0.0 area 0

Answer to Lab 4.3

Atlanta#conf t

Enter configuration commands, one per line. End with CNTL/Z. Atlanta(config)#router ospf 1 vrf peer_vpn Atlanta(config-router)#redistribute bgp 65000 metric

transparent

Atlanta(config-router-af)#exit Atlanta(config-router)#exit Atlanta(config)#router bgp 65000

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com