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

332 Chapter 8 Advanced MPLS Topics

Atlanta Running-Config

As you review the Atlanta POP router running-config, locate the configuration showing the static route associated with the VRF:

Atlanta#show running-config

Building configuration...

Current configuration : 1921 bytes

!

version 12.1

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

!

hostname Atlanta

!

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

Static Routing 333

!

!

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

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

!

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

334 Chapter 8 Advanced MPLS Topics

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.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 redistribute static

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

ip route vrf vpn_1 192.168.1.1 255.255.255.255 Serial0/1 192.168.3.5

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

Static Routing 335

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 Router Configuration

The Peer 1 and Peer 2 routers need to be configured with standard default routes. 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)#ip route 0.0.0.0 0.0.0.0 serial 0

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)#ip route 0.0.0.0 0.0.0.0 serial 0

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

Peer1#show ip route

.

. Output Omitted

.

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

336 Chapter 8 Advanced MPLS Topics

Gateway of last resort is 0.0.0.0 to network 0.0.0.0

192.168.1.0 255.255.255.255 is subnetted, 1 subnets

C192.168.1.1 is directly connected, Loopback0 192.168.3.0 255.255.255.252 is subnetted, 1 subnets

C192.168.3.4 is directly connected, Serial0

S* 0.0.0.0 0.0.0.0 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 0.0.0.0 to network 0.0.0.0

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, 1 subnets

C192.168.3.8 is directly connected, Serial0

S* 0.0.0.0 0.0.0.0 is directly connected, Serial0

Peer 1 Running-Config

Notice in the running-config for the Peer 1 router that only a standard static route is configured:

Peer1#show running-config

Building configuration...

Current configuration : 803 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

Static Routing 337

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

!

ip classless

ip route 0.0.0.0 0.0.0.0 Serial0 no ip http server

!

!

line con 0 exec-timeout 0 0

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

338 Chapter 8 Advanced MPLS Topics

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 running-config for the Peer 2 router that only a standard static route is configured:

Peer2#show running-config

Building configuration...

Current configuration : 1030 bytes

!

version 12.1

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

!

hostname Peer2

!

enable password lab

!

!

!

!

!

ip subnet-zero

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com

Static Routing 339

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

!

ip classless

ip route 0.0.0.0 0.0.0.0 Serial0 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

Copyright ©2002 SYBEX, Inc., Alameda, CA

www.sybex.com