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

E-BGP and MPLS VPNs 353

Raleigh Running-Config

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

Raleigh#show running-config

Building configuration...

Current configuration : 1962 bytes

!

version 12.1

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

!

hostname Raleigh

!

enable password cisco

!

!

!

!

!

memory-size iomem 25 ip subnet-zero

ip tcp synwait-time 5 no ip domain-lookup

!

!

ip vrf vpn_1 rd 65000:1

route-target export 65000:1 route-target import 65000:1

ip cef

cns event-service server

!

!

!

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

354 Chapter 8 Advanced MPLS Topics

!

!

interface Loopback0

ip address 204.134.83.3 255.255.255.255

!

interface Serial0/0 no ip address shutdown

no fair-queue clockrate 64000

!

interface Serial0/1

description *** Link to Peer2 ***

ip vrf forwarding vpn_1

ip address 192.168.3.9 255.255.255.252 clockrate 64000

!

interface Serial0/2 no ip address shutdown

clockrate 64000

!

interface Serial0/3

description *** Link to Core Router ***

ip address 204.134.83.10 255.255.255.252 tag-switching ip

clockrate 64000

!

interface Ethernet1/0 no ip address

shutdown

!

interface Ethernet1/1 no ip address shutdown

!

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

E-BGP and MPLS VPNs 355

interface Ethernet1/2 no ip address shutdown

!

interface Ethernet1/3 no ip address shutdown

!

router rip version 2

network 204.134.83.0

!

router bgp 65000

no synchronization

bgp log-neighbor-changes

neighbor 204.134.83.1 remote-as 65000 neighbor 204.134.83.1 update-source Loopback0 neighbor 204.134.83.1 next-hop-self

no auto-summary

!

address-family ipv4 vrf vpn_1 redistribute connected

neighbor 192.168.3.10 remote-as 65001 neighbor 192.168.3.10 activate neighbor 192.168.3.10 as-override

no auto-summary

no synchronization exit-address-family

!

address-family vpnv4

neighbor 204.134.83.1 activate

neighbor 204.134.83.1 send-community both no auto-summary

exit-address-family

!

ip classless

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

356 Chapter 8 Advanced MPLS Topics

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

Atlanta Running-Config

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

Atlanta#show running-config

Building configuration...

Current configuration : 1934 bytes

!

version 12.1

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

!

hostname Atlanta

!

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

E-BGP and MPLS VPNs 357

enable password cisco

!

!

!

!

!

memory-size iomem 25 ip subnet-zero

ip tcp synwait-time 5 no ip domain-lookup

!

!

ip vrf vpn_1 rd 65000:1

route-target export 65000:1 route-target import 65000:1

ip cef

cns event-service server

!

!

!

!

!

interface Loopback0

ip address 204.134.83.1 255.255.255.255

!

interface Serial0/0

description *** Link to Core Router ***

ip address 204.134.83.5 255.255.255.252 tag-switching ip

no fair-queue clockrate 64000

!

interface Serial0/1

description *** Link to Peer1 ***

ip vrf forwarding vpn_1

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

358 Chapter 8 Advanced MPLS Topics

ip address 192.168.3.6 255.255.255.252 clockrate 64000

!

interface Serial0/2 no ip address shutdown

clockrate 64000

!

interface Serial0/3 no ip address shutdown

clockrate 64000

!

interface Ethernet1/0 no ip address shutdown

!

interface Ethernet1/1 no ip address shutdown

!

interface Ethernet1/2 no ip address shutdown

!

interface Ethernet1/3 no ip address shutdown

!

router rip version 2

network 204.134.83.0

!

router bgp 65000

no synchronization

bgp log-neighbor-changes

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

E-BGP and MPLS VPNs 359

neighbor 204.134.83.3 remote-as 65000 neighbor 204.134.83.3 update-source Loopback0 neighbor 204.134.83.3 next-hop-self

no auto-summary

!

address-family ipv4 vrf vpn_1 redistribute connected

neighbor 192.168.3.5 remote-as 65001 neighbor 192.168.3.5 activate neighbor 192.168.3.5 as-override

no auto-summary

no synchronization exit-address-family

!

address-family vpnv4

neighbor 204.134.83.3 activate

neighbor 204.134.83.3 send-community both no auto-summary

exit-address-family

!

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

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com