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

402 Appendix A Challenge Labs

Raleigh(config)#router bgp 65000

Raleigh(config-router)#address-family ipv4 vrf peer_vpn

Raleigh(config-router-af)#redistribute connected

Raleigh(config-router-af)#redistribute static

Raleigh(config-router-af)#^Z

Raleigh#

Challenge Lab 6

The following challenge lab tests your ability to configure a VRF, a route distinguisher, a route target, and an E-BGP session between PE and CE routers. Note that the network is already set up with MPLS and MP-BGP

(AS 65000). Both peer routers use AS 65001.

 

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

Challenge Lab 6 403

VRF Configuration

This section includes the following lab exercise:

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

L A B 6 . 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.

E-BGP Configuration

This section includes the following lab exercise:

Lab 6.2: Configure an E-BGP between the PE and CE routers

L A B 6 . 2

Configure an E-BGP between the PE and CE routers

1.On Peer 1, configure an E-BGP session to Atlanta and redistribute connected interfaces.

2.On Peer 2, configure an E-BGP session to Raleigh and redistribute connected interfaces.

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

404 Appendix A Challenge Labs

L A B 6 . 2 ( c o n t i n u e d )

3.On the Atlanta POP router, configure Peer 1 as a neighbor, activate Peer 1, configure AS-override, and redistribute the connected VRF interface into BGP.

4.On the Raleigh POP router, configure Peer 2 as a neighbor, activate Peer 2, configure AS-override, and redistribute the connected VRF interface into BGP.

Answer to Lab 6.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

Answer to Lab 6.2

Peer1#conf t

Enter configuration commands, one per line. End with CNTL/Z.

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

Challenge Lab 6 405

Peer1(config)#router bgp 65001

Peer1(config-router)#neighbor 192.168.3.6 remote-as 65000

Peer1(config-router)#redistribute connected Peer1(config-router)#^Z

Peer1#

Peer2#conf t

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

Peer2(config-router)#neighbor 192.168.3.9 remote-as 65000

Peer2(config-router)#redistribute connected Peer2(config-router)#^Z

Peer2#

Atlanta#conf t

Enter configuration commands, one per line. End with CNTL/Z. Atlanta(config)#router bgp 65000

Atlanta(config-router)#address-family ipv4 vrf peer_vpn Atlanta(config-router-af)#neighbor 192.168.3.5 remote-as

65001

Atlanta(config-router-af)#neighbor 192.168.3.5 activate Atlanta(config-router-af)#neighbor 192.168.3.5 as-override

Atlanta(config-router-af)#redistribute connected Atlanta(config-router-af)#^Z

Atlanta#

Raleigh#conf t

Enter configuration commands, one per line. End with CNTL/Z. Raleigh(config)#router bgp 65000

Raleigh(config-router)#address-family ipv4 vrf peer_vpn Raleigh(config-router-af)#neighbor 192.168.3.10 remote-as

65001

Raleigh(config-router-af)#neighbor 192.168.3.10 activate Raleigh(config-router-af)#neighbor 192.168.3.10 as-override

Raleigh(config-router-af)#redistribute connected Raleigh(config-router-af)#^Z

Raleigh#

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

Appendix

Service Provider Tag

B

Switching with OSPF

and IS-IS

 

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com