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

A Review of Simple VPN Configuration 219

What about export route targets on PE2? Let’s choose an arbitrary value of 5:1 for vpn_a and 70:3 for vpn_b. The export route target configuration is as follows:

PE2#config t

PE2(config)#ip vrf vpn_a

PE2(config-vrf)#route-target export 5:1

PE2(config-vrf)#exit

PE2(config)#ip vrf vpn_b

PE2(config-vrf)route-target export 70:3

Figure 6.14 illustrates routes from PE2 as they arrive at PE1.

F I G U R E 6 . 1 4 VPN routes from PE2 arriving at PE1

Customer A1

 

 

 

From PE2

 

 

MP-IBGP

 

 

 

RD

NLRI

RT

 

PE1

1:1

10.3.0.0

5:1

 

1:1

10.4.0.0

5:1

 

 

 

 

1:2

10.3.0.0

70:3

Customer B1

 

1:2

10.4.0.0

70:3

What import route targets must be configured on PE1? For vpn_a, an import route target must be configured for 5:1. For vpn_b, an import route target must be configured for 70:3. The import route target configuration for PE1 is as follows:

PE1#config t

PE1(config)#ip vrf vpn_a

PE1(config-vrf)#route-target import 5:1

PE1(config-vrf)#exit

PE1(config)#ip vrf vpn_b

PE1(config-vrf)route-target import 70:3

A Review of Simple VPN Configuration

I’d like to take this section of the chapter to review the major configuration steps again for you. Figure 6.15 illustrates the same simple network used throughout this book.

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

220 Chapter 6 MPLS VPNs and RIP

F I G U R E 6 . 1 5 A simple service provider network

Serial

0/0

0/0

Serial

 

Serial 0/1

 

 

PE1

 

P1

Serial 0

Customer X1

0/1

0/0

Serial

0/1

0/0

Serial Serial

 

Serial

 

 

P2

 

 

PE2

Serial 0/1

Serial 0

Customer X2

Table 6.4 lists the IP addresses and interfaces of all the service provider devices in Figure 6.15.

T A B L E 6 . 4 Service Provider IP Addressing

Device

Serial 0/0

Serial 0/1

Loopback 0

 

 

 

 

PE1

192.168.1.10

 

192.168.1.1

P1

192.168.1.9

192.168.1.14

192.168.1.2

P2

192.168.1.13

192.168.1.18

192.168.1.3

PE2

192.168.1.17

 

192.168.1.4

 

 

 

 

Table 6.5 lists the IP addresses and interfaces of the Customer X devices.

T A B L E 6 . 5 PE Customer Link Addressing

Device

Serial 0

Ethernet0

Mask

 

 

 

 

Customer X1

10.2.0.2

10.1.0.1

/16

Customer X2

10.3.0.2

10.4.0.1

/16

 

 

 

 

Configuring MPLS in the Service Provider Network

Currently, all the devices in the service provider network already have IP addresses. The first thing you need to do is configure an IGP. For this simple network, the IGP will be RIPv2.

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

A Review of Simple VPN Configuration 221

On the PE1 router, you configure RIPv2 with the following commands:

PE1#config t

PE1(config)#router rip

PE1(config-rotuer)#version 2

PE1(config-router)#network 192.168.1.0

On the P1 router, you configure RIPv2 with the following commands:

P1#config t

P1(config)#router rip

P1(config-rotuer)#version 2

P1(config-router)#network 192.168.1.0

On the P2 router, you configure RIPv2 with the following commands:

P2#config t

P2(config)#router rip

P2(config-rotuer)#version 2

P2(config-router)#network 192.168.1.0

On the PE2 router, you configure RIPv2 with the following commands:

PE2#config t

PE2(config)#router rip

PE2(config-rotuer)#version 2

PE2(config-router)#network 192.168.1.0

Now that an IGP is up and running, you need to configure BGP on the PE routers.

On the PE1 router, you configure BGP with the following commands:

PE1#config t

PE1(config)#router bgp 1 PE1(config-router)#no synchronization

PE1(config-router)#network 192.168.1.1 mask 255.255.255.255 PE1(config-router)#neighbor 192.168.1.4 remote-as 1 PE1(config-router)#neighbor 192.168.1.4 update-source Loopback0

PE1(config-router)#no auto summary PE1(config-router)#redistribute static

On the PE2 router, you configure BGP with the following commands:

PE2#config t

PE2(config)#router bgp 1

PE2(config-router)#no synchronization

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

222 Chapter 6 MPLS VPNs and RIP

PE2(config-router)#network 192.168.1.4 mask 255.255.255.255 PE2(config-router)#neighbor 192.168.1.1 remote-as 1 PE2(config-router)#neighbor 192.168.1.1 update-source Loopback0

PE2(config-router)#no auto summary PE2(config-router)#redistribute static

Now that all the routing protocols are in place, you need to enable MPLS on the routers.

On the PE1 router, you configure MPLS for Serial 0/0 only with the following commands:

PE1#config t

PE1(config)#ip cef

PE1(config)#mpls ip

PE1(config-if)#interface serial 0/0

PE1(config-if)#mpls ip

On the P1 router, you configure MPLS for both Serial 0/0 and Serial 0/1 with the following commands:

P1#config t

P1(config)#ip cef

P1(config)#mpls ip

P1(config-if)#interface serial 0/0

P1(config-if)#mpls ip

P1(config-if)#exit

P1(config)#interface serial 0/1

P1(config-if)#mpls ip

On the P2 router, you configure MPLS for both Serial 0/0 and Serial 0/1 with the following commands:

P2#config t

P2(config)#ip cef

P2(config)#mpls ip

P2(config-if)#interface serial 0/0

P2(config-if)#mpls ip

P2(config-if)#exit

P2(config)#interface serial 0/1

P2(config-if)#mpls ip

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com