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

360 Chapter 8 Advanced MPLS Topics

login

ip netmask-format decimal

!

end

Peer Router Configuration

The Peer 1 and Peer 2 routers need to be configured for standard E-BGP.

The configuration of the Peer 1 router is as follows:

Peer1#conf t

Enter configuration commands, one per line. End with CNTL/Z. 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#

The configuration of the Peer 2 router is as follows:

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#

To verify static routes on the Peer 1 router, use the show ip route command:

Peer1#show ip route

.

. Output Omitted

.

Gateway of last resort is not set

192.168.1.0 255.255.255.255 is subnetted, 1 subnets C 192.168.1.1 is directly connected, Loopback0

192.168.2.0 255.255.255.255 is subnetted, 1 subnets

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

E-BGP and MPLS VPNs 361

B192.168.2.1 [20/0] via 192.168.3.6, 00:05:08 192.168.3.0 255.255.255.252 is subnetted, 2 subnets

B192.168.3.8 [20/0] via 192.168.3.6, 00:06:35

C192.168.3.4 is directly connected, Serial0

To verify static routes on the Peer 2 router, use the show ip route command:

Peer2#show ip route

.

. Output Omitted

.

Gateway of last resort is not set

192.168.1.0 255.255.255.255 is subnetted, 1 subnets B 192.168.1.1 [20/0] via 192.168.3.9, 00:04:02

192.168.2.0 255.255.255.255 is subnetted, 1 subnets

C192.168.2.1 is directly connected, Loopback0 192.168.3.0 255.255.255.252 is subnetted, 2 subnets

C192.168.3.8 is directly connected, Serial0

B192.168.3.4 [20/0] via 192.168.3.9, 00:04:31

Peer 1 Running-Config

Notice in the Peer 1 running-config that there is an E-BGP connection to the Atlanta POP router:

Peer1#show running-config

Building configuration...

Current configuration : 914 bytes

!

version 12.1

service timestamps debug uptime service timestamps log uptime no service password-encryption

!

hostname Peer1

!

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

362 Chapter 8 Advanced MPLS Topics

enable password cisco

!

!

!

!

!

ip subnet-zero

ip tcp synwait-time 5 no ip domain-lookup

!

!

!

!

interface Loopback0

ip address 192.168.1.1 255.255.255.255

!

interface Ethernet0 no ip address shutdown

!

interface Serial0

description *** Link to Atlanta POP ***

ip address 192.168.3.5 255.255.255.252 no fair-queue

!

interface Serial1 no ip address shutdown

!

router bgp 65001

no synchronization

bgp log-neighbor-changes redistribute connected

neighbor 192.168.3.6 remote-as 65000 no auto-summary

!

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

E-BGP and MPLS VPNs 363

ip classless

no ip http server

!

!

line con 0 exec-timeout 0 0 privilege level 15 logging synchronous transport input none

ip netmask-format decimal line aux 0

line vty 0 4 privilege level 15 password cisco logging synchronous login

ip netmask-format decimal

!

end

Peer 2 Running-Config

Notice in the Peer 2 running-config that there is an E-BGP connection to the Atlanta POP router:

Peer2#show running-config

Building configuration...

Current configuration : 1141 bytes

!

version 12.1

service timestamps debug uptime service timestamps log uptime no service password-encryption

!

hostname Peer2

!

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

364 Chapter 8 Advanced MPLS Topics

enable password lab

!

!

!

!

!

ip subnet-zero

ip tcp synwait-time 5 no ip domain-lookup

!

!

!

!

interface Loopback0

ip address 192.168.2.1 255.255.255.255

!

interface Ethernet0 no ip address shutdown

!

interface Serial0

description *** Link to PE2 ***

ip address 192.168.3.10 255.255.255.252 no fair-queue

!

interface Serial1 no ip address shutdown

!

router bgp 65001

no synchronization

bgp log-neighbor-changes redistribute connected

neighbor 192.168.3.9 remote-as 65000 no auto-summary

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com