03 - iewb-rs-vol1.v4.1.BGP

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 130

CCIE Routing & Switching Lab Workbook Volume I Version 4.

Copyright Information

Copyright 2003 - 2007 Internetwork Expert, Inc. All rights reserved.

The following publication, CCIE Routing & Switching Lab Workbook Volume I, was
developed by Internetwork Expert, Inc. All rights reserved. No part of this publication may
be reproduced or distributed in any form or by any means without the prior written

om
permission of Internetwork Expert, Inc.

Cisco, Cisco Systems, CCIE, and Cisco Certified Internetwork Expert, are registered
trademarks of Cisco Systems, Inc. and/or its affiliates in the U.S. and certain countries.
All other products and company names are the trademarks, registered trademarks, and
service marks of the respective owners. Throughout this manual, Internetwork Expert,

s.c
Inc. has used its best efforts to distinguish proprietary trademarks from descriptive
names by following the capitalization styles used by the manufacturer.

nic







tro

ge



z@


qu





az




.bl




ue





riq



Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


-i-
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Disclaimer

The following publication, CCIE Routing & Switching Lab Workbook Volume I, is
designed to assist candidates in the preparation for Cisco Systems CCIE Routing &
Switching Lab exam. While every effort has been made to ensure that all material is as
complete and accurate as possible, the enclosed material is presented on an as is

om
basis. Neither the authors nor Internetwork Expert, Inc. assume any liability or
responsibility to any person or entity with respect to loss or damages incurred from the
information contained in this workbook.

This workbook was developed by Internetwork Expert, Inc. and is an original work of the
aforementioned authors. Any similarities between material presented in this workbook

s.c
TM
and actual CCIE lab material is completely coincidental.

nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- ii -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1


BGP ..................................................................................................................1
Establishment of BGP Peering Relationships ................................................2
BGP Update Source Mismatch ......................................................................5
BGP Update Source Modification ..................................................................8
iBGP Synchronization..................................................................................12

om
Transiting Non-BGP Speaking Devices - Redistribution ..............................21
Transiting Non-BGP Speaking Devices - Tunneling ....................................26
BGP Bestpath Selection - Weight ................................................................30
BGP Bestpath Selection Local Preference ...............................................34

s.c
BGP Bestpath Selection Local Preference ...............................................38
BGP Bestpath Selection MED ..................................................................42
BGP Bestpath Selection Origin.................................................................46
BGP Next-Hop Processing Next-Hop-Self ................................................50

nic
BGP Next-Hop Processing Manual Modification.......................................53
BGP Next-Hop Processing IGP Redistribution .........................................56
BGP Communites No-Export ....................................................................60
BGP Communites No-Advertise ...............................................................65

tro
BGP Route Reflection..................................................................................71
BGP Confederation......................................................................................76
BGP Communities Local AS .....................................................................78
BGP Regular Expressions ...........................................................................78
ge
BGP Outbound Route Filtering (ORF) .........................................................78
BGP Aggregation.........................................................................................78
BGP Aggregation Summary Only .............................................................78
z@

BGP Aggregation Suppress Map..............................................................78


BGP Aggregation Unsuppress Map..........................................................78
BGP Aggregation AS-Set .........................................................................78
BGP Aggregation Advertise Map ..............................................................78
e

BGP Allow AS In..........................................................................................78


qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- iii -
om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


-1-
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Establishment of BGP Peering Relationships

Objective: Configure a BGP peering relationship between R1 and R2

om
12.0.0.0/8 VLAN A

E0/0 .1 BGP E0/0 .2


AS 1

s.c
R1 iBGP R2

nic
Directions





Configure R1 and R2 to be in BGP AS 1
tro
Configure R1's interface Ethernet0/0 with the IP address of 12.0.0.1/8
Configure R2's interface Ethernet0/0 with the IP address of 12.0.0.2/8

Configure a BGP neighbor statement on R1 specifying R2's interface Ethernet0/0


ge
as the remote peer
Configure a BGP neighbor statement on R2 specifying R1's interface Ethernet0/0
as the remote peer
z@

Ask Yourself

What are the requirements of establishing a BGP peering relationship?


What does BGP use for a transport?

e

Who is the TCP client of a BGP session? The TCP server?


How can you verify this?
qu

What affects the client/server relationship?


Change R1's BGP router-id to 12.0.0.3, what happens?

Final Configuration
az

R1:
.bl

interface Ethernet0/0
ip address 12.0.0.1 255.0.0.0
!
router bgp 1
bgp router-id 12.0.0.3
ue

neighbor 12.0.0.2 remote-as 1


riq

R2:
interface Ethernet0/0
ip address 12.0.0.2 255.0.0.0
!
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


-2-
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

router bgp 1
neighbor 12.0.0.1 remote-as 1

Verification

R1#debug ip packet detail

om
R1#clear ip bgp *
%BGP-5-ADJCHANGE: neighbor 12.0.0.2 Down User reset
! R2 initiates BGP session with a TCP SYN, R2 is the client
IP: s=12.0.0.2 (Ethernet0/0), d=12.0.0.1 (Ethernet0/0), len 44, rcvd 3
TCP src=11001, dst=179, seq=41546943, ack=0, win=16384 SYN
! R1 replies with TCP SYN ACK, R1 is the server

s.c
IP: tableid=0, s=12.0.0.1 (local), d=12.0.0.2 (Ethernet0/0), routed via RIB
! R2 replies with TCP ACK, connection is open
IP: s=12.0.0.2 (Ethernet0/0), d=12.0.0.1 (Ethernet0/0), len 40, rcvd 3
TCP src=11001, dst=179, seq=41546944, ack=3175302907, win=16384 ACK
%BGP-5-ADJCHANGE: neighbor 12.0.0.2 Up

nic
R2#debug ip packet detail
R2#clear ip bgp *
%BGP-5-ADJCHANGE: neighbor 12.0.0.1 Down User reset
! R2 initiates BGP session with a TCP SYN, R2 is the client
IP: tableid=0, s=12.0.0.2 (local), d=12.0.0.1 (Ethernet0/0), routed via RIB
! R1 replies with TCP SYN ACK, R1 is the server
tro
IP: s=12.0.0.1 (Ethernet0/0), d=12.0.0.2 (Ethernet0/0), len 44, rcvd 3
TCP src=179, dst=11002, seq=3515518643, ack=1299268873, win=16384 ACK SYN
! R2 replies with TCP ACK, connection is open
IP: tableid=0, s=12.0.0.2 (local), d=12.0.0.1 (Ethernet0/0), routed via RIB
ge
%BGP-5-ADJCHANGE: neighbor 12.0.0.1 Up
R1#show ip bgp summary
BGP router identifier 12.0.0.1, local AS number 1
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
z@

12.0.0.2 4 1 41 41 1 0 0 00:01:34 0
R2#show ip bgp summary
BGP router identifier 12.0.0.2, local AS number 1
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
e

12.0.0.1 4 1 41 41 1 0 0 00:01:12 0
R2#
qu

After changing R1's router ID to 12.0.0.3


R1#debug ip packet detail
! R1 initiates BGP session with a TCP SYN
! R1 has the higher router-id, now it is the client
az

IP: tableid=0, s=12.0.0.1 (local), d=12.0.0.2 (Ethernet0/0), routed via RIB


! R2 replies with TCP SYN ACK, R2 is the server
IP: s=12.0.0.2 (Ethernet0/0), d=12.0.0.1 (Ethernet0/0), len 44, rcvd 3
TCP src=179, dst=11002, seq=373831508, ack=1271983282, win=16384 ACK SYN
.bl

! R1 replies with TCP ACK, connection is open


IP: tableid=0, s=12.0.0.1 (local), d=12.0.0.2 (Ethernet0/0), routed via RIB
R2#debug ip packet detail
! R1 initiates BGP session with a TCP SYN
! R1 has the higher router-id, now it is the client
ue

IP: s=12.0.0.1 (Ethernet0/0), d=12.0.0.2 (Ethernet0/0), len 44, rcvd 3


TCP src=11002, dst=179, seq=1271983281, ack=0, win=16384 SYN
! R2 replies with TCP SYN ACK, R2 is the server
IP: tableid=0, s=12.0.0.2 (local), d=12.0.0.1 (Ethernet0/0), routed via RIB
riq

! R1 replies with TCP ACK, connection is open


IP: s=12.0.0.1 (Ethernet0/0), d=12.0.0.2 (Ethernet0/0), len 40, rcvd 3
TCP src=11002, dst=179, seq=1271983282, ack=373831509, win=16384 ACK
R1#show ip bgp summary
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


-3-
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP router identifier 12.0.0.3, local AS number 1


BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
12.0.0.2 4 1 74 74 1 0 0 00:02:24 0
R2#show ip bgp summary
BGP router identifier 12.0.0.2, local AS number 1
BGP table version is 1, main routing table version 1

om
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down State/PfxRcd
12.0.0.1 4 1 73 73 1 0 0 00:01:31 0

Recommended Reading

s.c
Explanation of the Three-Way Handshake via TCP/IP

nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


-4-
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Update Source Mismatch

Objective: Configure a BGP peering relationship between R1 and R3. R1 should peer
with R3's Ethernet interface, while R3 should peer with R1's Serial interface

om
BGP AS 1
13.0.0.0/8 VLAN A

s.c
E0/0 .1 E0/0 .3
iBGP

R1 R3
S0/1 31.0.0.0/8 S1/2

nic
iBGP

Directions

Configure the IP addressing per the diagram


tro
Configure R1 and R3 in BGP AS 1
ge
Configure R1 to peer with R3's interface Ethernet0/0
Configure R3 to peer with R1's interface Serial1/2
z@

Ask Yourself

What source IP address does a BGP speaker use for peering?


How does this affect the establishment of a peering relationship?
Can this address be modified? Is so, how?
e

What are the advantages of modifying this address?


qu

Final Configuration
az

R1:
interface Ethernet0/0
.bl

ip address 13.0.0.1 255.0.0.0


!
interface Serial0/1
ip address 31.0.0.1 255.0.0.0
ue

clockrate 64000
!
router bgp 1
neighbor 13.0.0.3 remote-as 1
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


-5-
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

R3:
interface Ethernet0/0
ip address 13.0.0.3 255.0.0.0
!
interface Serial1/2
ip address 31.0.0.3 255.0.0.0
!

om
router bgp 1
neighbor 31.0.0.1 remote-as 1

Verification

s.c
R1#debug ip packet detail
IP packet debugging is on (detailed)
R1#debug ip bgp

nic
BGP debugging is on

! R3 sends R1 a TCP SYN to start a BGP session


IP: s=31.0.0.3 (Serial1/2/1), d=31.0.0.1 (Serial1/2/1), len 44, rcvd 3
TCP src=11009, dst=179, seq=3354450520, ack=0, win=16384 SYN

tro
! R1 rejects the connection with ACK RST, it has no peering to 31.0.0.3
IP: tableid=0, s=31.0.0.1 (local), d=31.0.0.3 (Serial1/2/1), routed via RIB
IP: s=31.0.0.1 (local), d=31.0.0.3 (Serial1/2/1), len 40, sending
TCP src=179, dst=11009, seq=0, ack=3354450521, win=0 ACK RST
ge
! R1 tries to start a BGP session with R3
BGP: 13.0.0.3 went from Idle to Active
BGP: 13.0.0.3 open active, delay 6880ms
BGP: 13.0.0.3 open active, local address 13.0.0.1
IP: tableid=0, s=13.0.0.1 (local), d=13.0.0.3 (Ethernet0/0), routed via RIB
z@

! R3 rejects the connection with ACK RST, it has no peering to 13.0.0.1


IP: tableid=0, s=13.0.0.3 (Ethernet0/0), d=13.0.0.1 (Ethernet0/0), routed via
RIB
IP: s=13.0.0.3 (Ethernet0/0), d=13.0.0.1 (Ethernet0/0), len 40, rcvd 3
e

TCP src=179, dst=11020, seq=0, ack=123733113, win=0 ACK RST


BGP: 13.0.0.3 open failed: Connection refused by remote host
qu

R3#debug ip packet detail


IP packet debugging is on (detailed)
R3#debug ip bgp
BGP debugging is on
az

! R3 tries to start a BGP session with R1


BGP: 31.0.0.1 went from Idle to Active
BGP: 31.0.0.1 open active, delay 8928ms
.bl

BGP: 31.0.0.1 open active, local address 31.0.0.3


IP: tableid=0, s=31.0.0.3 (local), d=31.0.0.1 (Serial1/2), routed via RIB

! R1 rejects the connection with ACK RST, it has no peering to 31.0.0.3


IP: tableid=0, s=31.0.0.1 (Serial1/2), d=31.0.0.3 (Serial1/2), routed via RIB
ue

IP: s=31.0.0.1 (Serial1/2), d=31.0.0.3 (Serial1/2), len 40, rcvd 3


TCP src=179, dst=11009, seq=0, ack=3354450521, win=0 ACK RST
BGP: 31.0.0.1 open failed: Connection refused by remote host
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


-6-
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Breakdown

When establishing a BGP peering relationship, the source IP address used for BGP
traffic by default is based on the IP address of the outgoing interface used to reach the
destination. When a BGP speaker receives a BGP packet, it checks the configured
remote-peer statements to see if a peering has been configured for this neighbor. If the

om
BGP packet received has a source IP address that is different from a configured peer, it
has no way to associate the packet with the peer in question, and hence the connection
is refused.

In this scenario R1 is sending BGP packets to R3 using the source IP address of

s.c
13.0.0.1 (the IP address of the outgoing interface), while R3 is expecting a BGP peering
to come from 31.0.0.1. When R1 attempts to initiate the TCP session to R3, R3 refuses
it, as seen by the ACK RST packet sent from R3 to R1. Likewise R3 is sending BGP
packets to R1 sourced from the IP address 31.0.0.3 (the IP address of its outgoing

nic
interface), while R1 expects the BGP peering to come from 13.0.0.3. When R3 attempts
to initiate the TCP session to R1, the connection is refused.

This exercise demonstrates that the TCP server (the peer receiving the connection
attempt) must agree on what address the BGP peering will be accepted from. In the
tro
case that a mismatch occurs, the connection will be refused.

Recommended Reading
ge

Configuring BGP: Configuring BGP Neighbors


e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


-7-
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Update Source Modification

Objective: Configure a BGP peering relationship between R1 and R3. R1 should peer
with R3's Ethernet interface, while R3 should peer with R1's Serial
interface. R1 should use the source address 31.0.0.1 when sending BGP

om
packets to R3

s.c
nic
Directions tro
Configure the IP addressing per the diagram
ge
Configure R1 and R3 in BGP AS 1
Configure R1 to peer with R3's interface Ethernet0/0
Configure R3 to peer with R1's interface Serial0/1
Configure R1 to use the ip address 31.0.0.1 when sending BGP packets to R3
z@

Ask Yourself

What source IP address does a BGP speaker use for peering?


e

How does this affect the establishment of a peering relationship?


Can this address be modified? Is so, how?
qu

What are the advantages of modifying this address?

Final Configuration
az

R1:
interface Ethernet0/0
.bl

ip address 13.0.0.1 255.0.0.0


!
interface Serial0/1
ip address 31.0.0.1 255.0.0.0
!
ue

router bgp 1
neighbor 13.0.0.3 remote-as 1
neighbor 13.0.0.3 update-source Serial0/1
riq

R3:
interface Ethernet0/0
ip address 13.0.0.3 255.0.0.0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


-8-
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

!
interface Serial1/2
ip address 31.0.0.3 255.0.0.0
clock rate 64000
!
router bgp 1
neighbor 31.0.0.1 remote-as 1

om
Verification

R1#debug ip packet detail

s.c
IP packet debugging is on (detailed)

! R1 sends R3 TCP SYN to start the BGP session


! Source of the packet is 31.0.0.1 due to the update-source
command

nic
IP: tableid=0, s=31.0.0.1 (local), d=13.0.0.3
(Ethernet0/0), routed via RIB

! R3 was expecting it from this address, so it replies with


ACK SYN
IP: s=13.0.0.3 (Serial0/1), d=31.0.0.1 (Serial0/1), len 44,
rcvd 3
tro
TCP src=179, dst=11084, seq=2501470792, ack=2524207564,
win=16384 ACK SYN

! R1 replies with ACK, the BGP session is established


ge
IP: tableid=0, s=31.0.0.1 (local), d=13.0.0.3
(Ethernet0/0), routed via RIB
%BGP-5-ADJCHANGE: neighbor 13.0.0.3 Up
z@

R3#debug ip packet detail


IP packet debugging is on (detailed)

! R3 sends TCP SYN to 31.0.0.1 to initiate BGP session with


R1
e

BGP: 31.0.0.1 open active, local address 31.0.0.3


IP: tableid=0, s=31.0.0.3 (local), d=31.0.0.1 (Serial1/2),
qu

routed via RIB

! R1 denies the connection and responds with ACK RST


! R1 expected the connection from 13.0.0.3
IP: tableid=0, s=31.0.0.1 (Serial1/2), d=31.0.0.3
az

(Serial1/2), routed via RIB


IP: s=31.0.0.1 (Serial1/2), d=31.0.0.3 (Serial1/2), len 40,
rcvd 3
TCP src=179, dst=11073, seq=0, ack=2264277676, win=0
.bl

ACK RST
BGP: 31.0.0.1 open failed: Connection refused by remote
host
ue

! R1 sends TCP SYN to 13.0.0.3 to initiate BGP session with


R1
IP: s=31.0.0.1 (Ethernet0/0), d=13.0.0.3 (Ethernet0/0), len
44, rcvd 3
TCP src=11084, dst=179, seq=2524207563, ack=0,
riq

win=16384 SYN

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


-9-
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

! Since it came from the address that R3 expected, R3


responds with SYN ACK
IP: tableid=0, s=13.0.0.3 (local), d=31.0.0.1 (Serial1/2),
routed via RIB

! R1 responds with ACK, BGP session is established

om
IP: tableid=0, s=31.0.0.1 (Ethernet0/0), d=13.0.0.3
(Ethernet0/0), routed via RIB
IP: s=31.0.0.1 (Ethernet0/0), d=13.0.0.3 (Ethernet0/0), len
40, rcvd 3
TCP src=11084, dst=179, seq=2524207564, ack=2501470793,
win=16384 ACK

s.c
%BGP-5-ADJCHANGE: neighbor 31.0.0.1 Up

nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 10 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Breakdown

When establishing a BGP peering relationship, the source IP address used for BGP
traffic by default is based on the IP address of the outgoing interface used to reach the
destination. When a BGP speaker receives a BGP packet, it checks the configured
remote-peer statements so see if a peering has been configured for this neighbor. If the

om
BGP packet received has a source IP address that is different from a configured peer, it
has no way to associate the packet with the peer in question, and hence the connection
is refused.

In this scenario R1 is sending BGP packets to R3's address 13.0.0.3 from the modified

s.c
source address 31.0.0.1. Since R3 is expecting a peering to be coming from 31.0.0.1,
the connection is successful when established from R1. However, when R3 attempts to
start a connection to R1, it uses the default source address of 31.0.0.3. Since R1 is
expecting the peering to be initiated from 13.0.0.3, R1 replies to 31.0.0.3 with a TCP

nic
ACK RST, and the connection is refused. Note that when R1 initiates the session to R3,
R3 responds from the address 31.0.0.3. Although R1 does not have a peering
configured to that address the TCP session can continue, as R1 is the TCP client of R3.

This exercise demonstrates that the TCP server (the peer receiving the connection
tro
attempt) must agree on what address the peering will be accepted from, and how to
modify the source of updates to meet this requirement. In the case that a mismatch
occurs it is seen that the connection will be refused.
ge
Recommended Reading
z@

Configuring BGP: Configuring BGP Neighbors


e
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 11 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

iBGP Synchronization

Objective: Configure BGP per the diagram to obtain connectivity from AS 1 to R4 and
R5's loopback interfaces. R4 and R5 should have static default routes
pointing towards R1 and R2 respectively. BGP synchronization should be

om
enabled on R1 and R2

s.c
nic
tro
ge
z@

Directions
e

Configure the IP addressing on R1, R2, R3, R4, and R5 per the diagram
qu

Configure OSPF area 0 on the Serial links between R1 and R3 & R2 and R3
Advertise VLAN A and VLAN B into OSPF on R1 and R2 respectively
Configure static default routes on R4 and R5 pointing to R1 and R2 respectively

az

Configure R1 and R2 in BGP AS 1


Configure R4 in BGP AS 4
Configure R5 in BGP AS 5
Configure an iBGP peering between R1 and R2
.bl

Configure an EBGP peering R1 and R4


Configure an EBGP peering between R2 and R5
Advertise R4's Loopback0 into BGP
ue

Advertise R5's Loopback0 into BGP


Disable synchronization on R1 and R2, what happens?
Redistribute R4 and R5's loopback interfaces into OSPF on R1 and R2
respectively, what happens?
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 12 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Ask Yourself

What is BGP synchronization?


What problem is it designed to prevent?
How does meeting the synchronization rule prevent this problem?

om
When can you safely disable synchronization?
Why would you want to disable synchronization?

Final Configuration

s.c
R1:
interface Ethernet0/0
ip address 14.0.0.1 255.0.0.0
!

nic
interface Serial0/1
ip address 13.0.0.1 255.0.0.0
!
router ospf 1
network 13.0.0.1 0.0.0.0 area 0

!
network 14.0.0.1 0.0.0.0 area 0

router bgp 1
synchronization
tro
neighbor 14.0.0.4 remote-as 4
ge
neighbor 23.0.0.2 remote-as 1

R2:
interface Ethernet0/0
z@

ip address 25.0.0.2 255.0.0.0


!
interface Serial0/1
ip address 23.0.0.2 255.0.0.0
!
router ospf 1
e

network 23.0.0.2 0.0.0.0 area 0


network 25.0.0.2 0.0.0.0 area 0
qu

!
router bgp 1
synchronization
neighbor 13.0.0.1 remote-as 1
neighbor 25.0.0.5 remote-as 5
az

R3:
interface Serial1/2
.bl

ip address 13.0.0.3 255.0.0.0


clock rate 64000
!
interface Serial1/3
ip address 23.0.0.3 255.0.0.0
ue

clock rate 64000


!
router ospf 1
network 13.0.0.3 0.0.0.0 area 0
riq

network 23.0.0.3 0.0.0.0 area 0

R4:
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 13 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

interface Loopback0
ip address 4.4.4.4 255.255.255.255
!
interface Ethernet0/0
ip address 14.0.0.4 255.0.0.0
!
router bgp 4

om
network 4.4.4.4 mask 255.255.255.255
neighbor 14.0.0.1 remote-as 1
!
ip route 0.0.0.0 0.0.0.0 14.0.0.1

R5:

s.c
interface Loopback0
ip address 5.5.5.5 255.255.255.255
!
interface Ethernet0/0
ip address 25.0.0.5 255.0.0.0

nic
!
router bgp 5
network 5.5.5.5 mask 255.255.255.255
neighbor 25.0.0.2 remote-as 1
!
ip route 0.0.0.0 0.0.0.0 25.0.0.2

Verification
tro
ge
Synchronization On, Before Redistribution

R1#show ip bgp
z@

BGP table version is 4, local router ID is 14.0.0.1


Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
e

Network Next Hop Metric LocPrf


Weight Path
qu

*> 4.4.4.4/32 14.0.0.4 0


0 4 i
* i5.5.5.5/32 25.0.0.5 0 100
0 5 i
az

R1#show ip bgp 5.5.5.5


BGP routing table entry for 5.5.5.5/32, version 4
Paths: (1 available, no best path)
Flag: 0x820
.bl

Not advertised to any peer


5
25.0.0.5 (metric 855) from 23.0.0.2 (25.0.0.2)
Origin IGP, metric 0, localpref 100, valid, internal,
ue

not synchronized

R2#show ip bgp
BGP table version is 4, local router ID is 25.0.0.2
Status codes: s suppressed, d damped, h history, * valid, >
riq

best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 14 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Network Next Hop Metric LocPrf


Weight Path
* i4.4.4.4/32 14.0.0.4 0 100
0 4 i
*> 5.5.5.5/32 25.0.0.5 0
0 5 i

om
R2#show ip bgp 4.4.4.4
BGP routing table entry for 4.4.4.4/32, version 4
Paths: (1 available, no best path)
Not advertised to any peer
4

s.c
14.0.0.4 (metric 855) from 13.0.0.1 (14.0.0.1)
Origin IGP, metric 0, localpref 100, valid, internal,
not synchronized

Synchronization Off, Before Redistribution

nic
R1#conf t
Enter configuration commands, one per line. End with
CNTL/Z.
R1(config)#router bgp 1
R1(config-router)#no synchronization
R1(config-router)#end
R1#
R1#show ip bgp
tro
BGP table version is 5, local router ID is 14.0.0.1
Status codes: s suppressed, d damped, h history, * valid, >
ge
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
z@

Network Next Hop Metric LocPrf


Weight Path
*> 4.4.4.4/32 14.0.0.4 0
0 4 i
*>i5.5.5.5/32 25.0.0.5 0 100
0 5 i
e

R1#show ip bgp neighbors 14.0.0.4 advertised-routes


qu

BGP table version is 5, local router ID is 14.0.0.1


Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
az

Network Next Hop Metric LocPrf


Weight Path
*>i5.5.5.5/32 25.0.0.5 0 100
.bl

0 5 i

R4#show ip route 5.5.5.5


Routing entry for 5.5.5.5/32
Known via "bgp 4", distance 20, metric 0
ue

Tag 1, type external


Last update from 14.0.0.1 00:02:16 ago
Routing Descriptor Blocks:
* 14.0.0.1, from 14.0.0.1, 00:02:16 ago
riq

Route metric is 0, traffic share count is 1


AS Hops 2

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 15 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

R4#debug ip icmp
ICMP packet debugging is on
R4#ping 5.5.5.5

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2
seconds:

om
U.U.U
Success rate is 0 percent (0/5)
ICMP: dst (14.0.0.4) host unreachable rcv from 13.0.0.3

R2#conf t
Enter configuration commands, one per line. End with

s.c
CNTL/Z.
R2(config)#router bgp 1
R2(config-router)#no synchronization
R2#
R2#show ip bgp
BGP table version is 5, local router ID is 25.0.0.2

nic
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network
Weight Path
*>i4.4.4.4/32
0 4 i
*> 5.5.5.5/32
Next Hop

14.0.0.4

25.0.0.5
tro
Metric LocPrf

0
100
ge
0 5 i

R2#show ip bgp neighbors 25.0.0.5 advertised-routes


BGP table version is 5, local router ID is 25.0.0.2
Status codes: s suppressed, d damped, h history, * valid, >
z@

best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
e

*>i4.4.4.4/32 14.0.0.4 0 100


0 4 i
qu

R5#show ip route 4.4.4.4


Routing entry for 4.4.4.4/32
Known via "bgp 5", distance 20, metric 0
Tag 1, type external
az

Last update from 25.0.0.2 00:03:47 ago


Routing Descriptor Blocks:
* 25.0.0.2, from 25.0.0.2, 00:03:47 ago
Route metric is 0, traffic share count is 1
.bl

AS Hops 2

R5#debug ip icmp
ICMP packet debugging is on
ue

R5#ping 4.4.4.4

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2
seconds:
riq

U.U.U
Success rate is 0 percent (0/5)
ICMP: dst (25.0.0.5) host unreachable rcv from 23.0.0.3
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 16 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Synchronization On, After Redistribution

R1#conf t
Enter configuration commands, one per line. End with
CNTL/Z.
R1(config)#ip prefix-list R4_LOOPBACK permit 4.4.4.4/32

om
R1(config)#route-map R4_LOOPBACK permit 10
R1(config-route-map)#match ip address prefix-list
R4_LOOPBACK
R1(config-route-map)#router ospf 1
R1(config-router)#redistribute bgp 1 subnets route-map
R4_LOOPBACK

s.c
R1(config-router)#router bgp 1
R1(config-router)#synchronization
R1(config-router)#end
R1#

nic
R2#conf t
Enter configuration commands, one per line. End with
CNTL/Z.
R2(config)#ip prefix-list R5_LOOPBACK permit 5.5.5.5/32
R2(config)#route-map R5_LOOPBACK permit 10
R2(config-route-map)#match ip address prefix-list
R5_LOOPBACK
R2(config-route-map)#router ospf 1 tro
R2(config-router)#redistribute bgp 1 subnets route-map
R5_LOOPBACK
R2(config-router)#router bgp 1
ge
R2(config-router)#synchronization
R2(config-router)#end

R1#show ip route 5.5.5.5


z@

Routing entry for 5.5.5.5/32


Known via "ospf 1", distance 110, metric 1
Tag 5, type extern 2, forward metric 855
Last update from 13.0.0.3 on Serial0/1, 00:01:43 ago
Routing Descriptor Blocks:
* 13.0.0.3, from 25.0.0.2, 00:01:43 ago, via Serial0/1
e

Route metric is 1, traffic share count is 1


qu

R1#show ip bgp
BGP table version is 8, local router ID is 14.0.0.1
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
az

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
.bl

*> 4.4.4.4/32 14.0.0.4 0


0 4 i
r>i5.5.5.5/32 25.0.0.5 0 100
0 5 i
ue

R1#show ip bgp 5.5.5.5


BGP routing table entry for 5.5.5.5/32, version 8
Paths: (1 available, best #1, table Default-IP-Routing-
Table, RIB-failure(17))
riq

Advertised to non peer-group peers:


14.0.0.4
5
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 17 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

25.0.0.5 (metric 855) from 23.0.0.2 (25.0.0.2)


Origin IGP, metric 0, localpref 100, valid, internal,
synchronized, best

R4#show ip route 5.5.5.5


Routing entry for 5.5.5.5/32
Known via "bgp 4", distance 20, metric 0

om
Tag 1, type external
Last update from 14.0.0.1 00:00:57 ago
Routing Descriptor Blocks:
* 14.0.0.1, from 14.0.0.1, 00:00:57 ago
Route metric is 0, traffic share count is 1
AS Hops 2

s.c
R4#ping 5.5.5.5

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2
seconds:

nic
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
60/61/69 ms

R2#show ip route 4.4.4.4


Routing entry for 4.4.4.4/32
Known via "ospf 1", distance 110, metric 1
Tag 4, type extern 2, forward metric 855 tro
Last update from 23.0.0.3 on Serial0/1, 00:03:23 ago
Routing Descriptor Blocks:
ge
* 23.0.0.3, from 14.0.0.1, 00:03:23 ago, via Serial0/1
Route metric is 1, traffic share count is 1

R2#show ip bgp
BGP table version is 7, local router ID is 25.0.0.2
z@

Status codes: s suppressed, d damped, h history, * valid, >


best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


e

Weight Path
r>i4.4.4.4/32 14.0.0.4 0 100
qu

0 4 i
*> 5.5.5.5/32 25.0.0.5 0
0 5 i

R2#show ip bgp 4.4.4.4


az

BGP routing table entry for 4.4.4.4/32, version 7


Paths: (1 available, best #1, table Default-IP-Routing-
Table, RIB-failure(17))
Advertised to non peer-group peers:
.bl

25.0.0.5
4
14.0.0.4 (metric 855) from 13.0.0.1 (14.0.0.1)
Origin IGP, metric 0, localpref 100, valid, internal,
ue

synchronized, best

R5#show ip route 4.4.4.4


Routing entry for 4.4.4.4/32
Known via "bgp 5", distance 20, metric 0
riq

Tag 1, type external


Last update from 25.0.0.2 00:12:21 ago
Routing Descriptor Blocks:
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 18 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

* 25.0.0.2, from 25.0.0.2, 00:12:21 ago


Route metric is 0, traffic share count is 1
AS Hops 2

R5#ping 4.4.4.4

Type escape sequence to abort.

om
Sending 5, 100-byte ICMP Echos to 4.4.4.4, timeout is 2
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
60/61/68 ms

s.c
Breakdown

In order to prevent non-BGP speaking routers from dropping traffic in the iBGP transit

nic
path, the BGP synchronization rule states that an iBGP learned route can not be
candidate for best path selection use unless there is a matching IGP route installed. The
logic behind this rule is that most likely all routers within the autonomous system run
IGP. Therefore, if there is a matching IGP route for the BGP destination, all devices in
the autonomous system, even non-BGP speaking routers, will be able to provide
transport to the final destination.
tro
Although BGP synchronization is considered a legacy rule, and is disabled by default as
of IOS 12.2(8)T, it is important to understand the reason for its initial implementation.
ge
Regardless whether BGP synchronization is on or off, all routers in the BGP transit path
must still be able to provide transport in the direction of the final destination. This is
typically accomplished by ensuring that all routers in the transit path run BGP, and
hence would know about the destination via BGP itself. Other methods of providing this
z@

transport include redistribution of BGP into IGP, as seen in the above scenario, and by
hiding the final destination from the routers in the transit path through the implementation
of a virtual private network.
e

In the above scenario R1 and R2 learn routes from their EBGP neighbors, R4 and R5
respectively, and advertise these routes on to each other. In the first case, when BGP
qu

synchronization is enabled, these routes are not seen as best paths on either R1 or R2.
The reason why is verified by the show ip bgp 5.5.5.5 output on R1, and the show ip bgp
4.4.4.4 output on R2, as the routes are seen as not synchronized. This means that there
is not a matching IGP route for these iBGP learned routes. Since the routes are not best
az

paths, they are not advertised on to R4 and R5 respectively.

In the next case, synchronization is disabled on R1 and R2. Since the synchronization
.bl

rule is bypassed, the routes go through the best path selection, and are advertised on to
R4 and R5 respectively. From the perspective of R4 and R5 these routes are valid, and
are therefore installed. However, when traffic is sent to the final destination, a non-BGP
speaking router in the transit path (R3) drops the traffic because it does not have a route
ue

to the final destination. This is verified by the ICMP host unreachable message received
from R3. This case dictates that although the route is advertised because
synchronization is disabled does not mean that the problem synchronization was
riq

designed to prevent was resolved.

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 19 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

In the last case, synchronization is enabled and BGP is redistributed into IGP on R1 and
R2. When R1 and R2 learn the BGP routes originated by R4 and R5, matching routes do
exist in the IGP table, and the synchronization rule is met. This is verified by the
synchronized output seen in the show ip bgp 5.5.5.5 and show ip bgp 4.4.4.4 commands
on R1 and R2 respectively. Since the non-BGP speaking router in the transit path now
has an IGP route to the destination, end-to-end transport is achieve.

om
Recommended Reading

s.c
Cisco IOS Command Reference: synchronization

nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 20 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Transiting Non-BGP Speaking Devices - Redistribution

Objective: Configure the network so that hosts on VLAN 5 can reach hosts on VLAN
43. R3 will not participate in BGP routing. Redistribute BGP into IGP in AS

om
2 to accomplish this

s.c
nic
tro
ge
e z@
qu

Directions

Configure the topology per the diagram


Configure EIGRP AS 2 on the links between R1 & R3 and R2 & R3
az

Configure BGP on R1, R2, R4, and R5 per the diagram


R1 should peer with R2 and R4
R2 should peer with R5
.bl

Advertise VLAN 5 into BGP on R5


Advertise VLAN 43 into BGP on R4
Configure BGP to IGP redistribution on R1 and R2 to gain connectivity between
R4 and VLAN 4
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 21 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1


Final Configuration

R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0

om
!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
router eigrp 2

s.c
redistribute bgp 2 metric 1 1 1 1 1 route-map BGP2IGP
network 155.1.13.1 0.0.0.0
no auto-summary
!
router bgp 2
neighbor 155.1.23.2 remote-as 2

nic
neighbor 155.1.23.2 next-hop-self
neighbor 155.1.146.4 remote-as 3
!
ip prefix-list VLAN46 seq 5 permit 204.12.1.0/24
!
route-map BGP2IGP permit 10
match ip address prefix-list VLAN46

R2:
tro
interface FastEthernet0/0
ge
ip address 192.10.1.2 255.255.255.0
!
interface Serial0/0
encapsulation frame-relay
z@

!
interface Serial0/0.1 point-to-point
ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
!
interface Serial0/1
e

ip address 155.1.23.2 255.255.255.0


!
qu

router eigrp 2
redistribute bgp 2 metric 1 1 1 1 1 route-map BGP2IGP
network 155.1.23.2 0.0.0.0
no auto-summary
!
az

router bgp 2
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
.bl

!
ip prefix-list VLAN5 seq 5 permit 155.1.5.0/24
!
route-map BGP2IGP permit 10
match ip address prefix-list VLAN5
ue

R3:
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
riq

clockrate 64000
!
interface Serial1/3
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 22 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

ip address 155.1.23.3 255.255.255.0


clockrate 64000
!
router eigrp 2
network 155.1.13.3 0.0.0.0
network 155.1.23.3 0.0.0.0
no auto-summary

om
R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1

s.c
ip address 155.1.146.4 255.255.255.0
!
router bgp 3
network 204.12.1.0
neighbor 155.1.146.1 remote-as 2

nic
R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay

!
frame-relay map ip 155.1.0.2 502 broadcast

interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
tro
!
ge
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.2 remote-as 2
z@

Verification

Rack1R4#ping 155.1.5.5 source 204.12.1.4


e

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
qu

seconds:
Packet sent with a source address of 204.12.1.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
az

88/88/92 ms

Rack1R1#show ip bgp
<output omitted>
.bl

Network Next Hop Metric LocPrf


Weight Path
r>i155.1.5.0/24 155.1.23.2 0 100
0 1 i
*> 204.12.1.0 155.1.146.4 0
ue

0 3 i

Rack1R2#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
riq

Weight Path
*> 155.1.5.0/24 155.1.0.5 0
0 1 i
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 23 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

r>i204.12.1.0 155.1.13.1 0 100


0 3 i

Rack1R4#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path

om
*> 155.1.5.0/24 155.1.146.1
0 2 1 i
*> 204.12.1.0 0.0.0.0 0
32768 i

Rack1R5#show ip bgp

s.c
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
*> 204.12.1.0 155.1.0.2

nic
0 2 3 i

Rack1R1#show ip route
<output omitted>
B 204.12.1.0/24 [20/0] via 155.1.146.4, 00:05:09

C
D
155.1.0.0/24 is subnetted, 4 subnets
tro
155.1.146.0 is directly connected, FastEthernet0/0
155.1.23.0 [90/21024000] via 155.1.13.3, 00:45:07,
Serial0/1
C 155.1.13.0 is directly connected, Serial0/1
ge
D EX 155.1.5.0 [170/2561024256] via 155.1.13.3,
00:16:11, Serial0/1

Rack1R2#show ip route
<output omitted>
z@

D EX 204.12.1.0/24 [170/2561024256] via 155.1.23.3,


00:04:57, Serial0/1
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.23.0 is directly connected, Serial0/1
D 155.1.13.0 [90/21024000] via 155.1.23.3, 00:45:11,
Serial0/1
e

C 155.1.0.0 is directly connected, Serial0/0.1


B 155.1.5.0 [20/0] via 155.1.0.5, 00:20:59
qu

Rack1R3#show ip route
<output omitted>
D EX 204.12.1.0/24 [170/2560512256] via 155.1.13.1,
az

00:05:09, Serial1/2
155.1.0.0/24 is subnetted, 3 subnets
C 155.1.23.0 is directly connected, Serial1/3
C 155.1.13.0 is directly connected, Serial1/2
.bl

D EX 155.1.5.0 [170/2560512256] via 155.1.23.2,


00:16:35, Serial1/3

Rack1R4#show ip route
<output omitted>
ue

C 204.12.1.0/24 is directly connected, Ethernet0/0


155.1.0.0/24 is subnetted, 2 subnets
C 155.1.146.0 is directly connected, Ethernet0/1
B 155.1.5.0 [20/0] via 155.1.146.1, 00:03:34
riq

Rack1R5#show ip route
<output omitted>
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 24 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

B 204.12.1.0/24 [20/0] via 155.1.0.2, 00:04:12


155.1.0.0/24 is subnetted, 2 subnets
C 155.1.0.0 is directly connected, Serial0/0
C 155.1.5.0 is directly connected, Ethernet0/1

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 25 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Transiting Non-BGP Speaking Devices - Tunneling

Objective: Configure the network so that hosts on VLAN 5 can reach hosts on VLAN
43. R3 will not participate in BGP routing. Configure a GRE tunnel between
R1 and R2 to accomplish this

om
s.c
nic
tro
ge
z@

Directions
e


qu

Configure the topology per the diagram


Configure EIGRP AS 2 on the links between R1 & R3 and R2 & R3
Configure a tunnel between R1 and R2 using the subnet 155.X.12.0/24
Configure BGP on R1, R2, R4, and R5 per the diagram
az

R1 and R2 should peer with each other over the tunnel interface
R1 should peer with R4
R2 should peer with R5
.bl

Advertise VLAN 5 into BGP on R5


Advertise VLAN 43 into BGP on R4
ue

Final Configuration

R1:
interface Tunnel0
riq

ip address 155.1.12.1 255.255.255.0


tunnel source 155.1.13.1
tunnel destination 155.1.23.2
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 26 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

!
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!

om
router eigrp 2
network 155.1.13.1 0.0.0.0
no auto-summary
!
router bgp 2
neighbor 155.1.12.2 remote-as 2

s.c
neighbor 155.1.12.2 next-hop-self
neighbor 155.1.146.4 remote-as 3

R2:
interface Tunnel0

nic
ip address 155.1.12.2 255.255.255.0
tunnel source 155.1.23.2
tunnel destination 155.1.13.1
!
interface FastEthernet0/0
ip address 192.10.1.2 255.255.255.0
!
interface Serial0/0

!
encapsulation frame-relay
tro
interface Serial0/0.1 point-to-point
ge
ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
!
interface Serial0/1
z@

ip address 155.1.23.2 255.255.255.0


!
router eigrp 2
network 155.1.23.2 0.0.0.0
no auto-summary
!
e

router bgp 2
neighbor 155.1.0.5 remote-as 1
qu

neighbor 155.1.12.1 remote-as 2


neighbor 155.1.12.1 next-hop-self

R3:
az

interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
.bl

interface Serial1/3
ip address 155.1.23.3 255.255.255.0
clockrate 64000
!
router eigrp 2
ue

network 155.1.13.3 0.0.0.0


network 155.1.23.3 0.0.0.0
no auto-summary
riq

Rack1R4#
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 27 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
router bgp 3
network 204.12.1.0
neighbor 155.1.146.1 remote-as 2

om
Rack1R5#
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!

s.c
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.2 remote-as 2

nic
Verification

Rack1R4#ping 155.1.5.5 source 204.12.1.4

Type escape sequence to abort.


tro
Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
ge
seconds:
Packet sent with a source address of 204.12.1.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
88/88/92 ms
z@

Rack1R4#traceroute 155.1.5.5 source 204.12.1.4

Type escape sequence to abort.


Tracing the route to 155.1.5.5
e

1 155.1.146.1 0 msec 4 msec 4 msec


2 155.1.12.2 44 msec 40 msec 44 msec
qu

3 155.1.0.5 56 msec * 56 msec

Rack1R1#show ip bgp
<output omitted>
az

Network Next Hop Metric LocPrf


Weight Path
*>i155.1.5.0/24 155.1.12.2 0 100
0 1 i
*> 204.12.1.0 155.1.146.4 0
.bl

0 3 i

Rack1R2#show ip bgp
<output omitted>
ue

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.5.0/24 155.1.0.5 0
0 1 i
*>i204.12.1.0 155.1.12.1 0 100
riq

0 3 i

Rack1R4#show ip bgp
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 28 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 155.1.146.1
0 2 1 i
*> 204.12.1.0 0.0.0.0 0
32768 i

om
Rack1R5#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0

s.c
32768 i
*> 204.12.1.0 155.1.0.2
0 2 3 i

Rack1R1#show ip route
<output omitted>

nic
B 204.12.1.0/24 [20/0] via 155.1.146.4, 00:05:09
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.146.0 is directly connected, FastEthernet0/0
D 155.1.23.0 [90/21024000] via 155.1.13.3, 00:45:07,
Serial0/1
C
D EX
tro
155.1.13.0 is directly connected, Serial0/1
155.1.5.0 [170/2561024256] via 155.1.13.3,
00:16:11, Serial0/1

Rack1R2#show ip route
ge
<output omitted>
D EX 204.12.1.0/24 [170/2561024256] via 155.1.23.3,
00:04:57, Serial0/1
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.23.0 is directly connected, Serial0/1
z@

D 155.1.13.0 [90/21024000] via 155.1.23.3, 00:45:11,


Serial0/1
C 155.1.0.0 is directly connected, Serial0/0.1
B 155.1.5.0 [20/0] via 155.1.0.5, 00:20:59
e

Rack1R3#show ip route
<output omitted>
qu

D EX 204.12.1.0/24 [170/2560512256] via 155.1.13.1,


00:05:09, Serial1/2
155.1.0.0/24 is subnetted, 3 subnets
C 155.1.23.0 is directly connected, Serial1/3
C 155.1.13.0 is directly connected, Serial1/2
az

D EX 155.1.5.0 [170/2560512256] via 155.1.23.2,


00:16:35, Serial1/3

Rack1R4#show ip route
.bl

<output omitted>
C 204.12.1.0/24 is directly connected, Ethernet0/0
155.1.0.0/24 is subnetted, 2 subnets
C 155.1.146.0 is directly connected, Ethernet0/1
B 155.1.5.0 [20/0] via 155.1.146.1, 00:03:34
ue

Rack1R5#show ip route
<output omitted>
B 204.12.1.0/24 [20/0] via 155.1.0.2, 00:04:12
riq

155.1.0.0/24 is subnetted, 2 subnets


C 155.1.0.0 is directly connected, Serial0/0
C 155.1.5.0 is directly connected, Ethernet0/1
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 29 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Bestpath Selection - Weight

Objective: Configure the BGP Weight attribute on R3 so that traffic from R3s Ethernet
segment going to VLAN 5 is first sent to R1

om
s.c
nic
tro

ge
Directions

Configure the topology per the diagram


Configure BGP on R1, R3, R4, and R5 per the diagram
z@

R1 should peer with R3 and R4


R5 should peer with R3 and R5
Advertise R3s Ethernet segment into BGP
Advertise R5s Ethernet segment into BGP
e

Configure BGP weight on R3 so that routes coming from R1 are preferred over
those coming from R5
qu

Final Configuration
az

R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
.bl

interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
router bgp 2
ue

neighbor 155.1.13.3 remote-as 2


neighbor 155.1.13.3 next-hop-self
neighbor 155.1.146.4 remote-as 1
riq

R3:
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 30 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.13.1 route-map WEIGHT in

om
!
route-map WEIGHT permit 10
set weight 100

R4:
interface Ethernet0/1

s.c
ip address 155.1.146.4 255.255.255.0
half-duplex
!
interface Serial0/1
ip address 155.1.45.4 255.255.255.0

nic
!
router bgp 1
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self
neighbor 155.1.146.1 remote-as 2

R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
tro
encapsulation frame-relay
ge
frame-relay map ip 155.1.0.3 503 broadcast
no frame-relay inverse-arp
!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
z@

!
interface Serial0/1
ip address 155.1.45.5 255.255.255.0
clockrate 64000
!
e

router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
qu

neighbor 155.1.45.4 remote-as 1


neighbor 155.1.45.4 next-hop-self
az

Verification

Rack1R3#traceroute 155.1.5.5 source 155.1.37.3


.bl

Type escape sequence to abort.


Tracing the route to 155.1.5.5
ue

1 155.1.13.1 16 msec 16 msec 16 msec


2 155.1.146.4 16 msec 16 msec 16 msec
3 155.1.45.5 32 msec * 28 msec

Rack1R3#show ip bgp 155.1.5.0 255.255.255.0


riq

BGP routing table entry for 155.1.5.0/24, version 6


Paths: (2 available, best #1, table Default-IP-Routing-
Table)
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 31 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Flag: 0x800
Advertised to update-groups:
2
1
155.1.13.1 from 155.1.13.1 (155.1.146.1)
Origin IGP, metric 0, localpref 100, weight 100,
valid, internal, best

om
1
155.1.0.5 from 155.1.0.5 (155.1.45.5)
Origin IGP, metric 0, localpref 100, valid, external

Rack1R1#show ip bgp
<output omitted>

s.c
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 155.1.146.4
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
0 i

nic
Rack1R3#show ip bgp
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.13.1 0 100
100 1 i
*
0 1 i
*> 155.1.37.0/24
32768 i
155.1.0.5

0.0.0.0
tro 0

0
ge
Rack1R4#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
z@

*>i155.1.5.0/24 155.1.45.5 0 100


0 i
*> 155.1.37.0/24 155.1.146.1
0 2 i
* i 155.1.45.5 0 100
0 2 i
e

Rack1R5#show ip bgp
qu

<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
az

* i155.1.37.0/24 155.1.45.4 0 100


0 2 i
*> 155.1.0.3 0
0 2 i
.bl

Rack1R1#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
ue

C 155.1.146.0 is directly connected, FastEthernet0/0


C 155.1.13.0 is directly connected, Serial0/1
B 155.1.5.0 [20/0] via 155.1.146.4, 00:02:39
B 155.1.37.0 [200/0] via 155.1.13.3, 00:02:39
riq

Rack1R3#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 32 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

C 155.1.13.0 is directly connected, Serial1/2


C 155.1.0.0 is directly connected, Serial1/0.1
B 155.1.5.0 [200/0] via 155.1.13.1, 00:02:16
C 155.1.37.0 is directly connected, Ethernet0/0

Rack1R4#show ip route
<output omitted>

om
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.146.0 is directly connected, Ethernet0/1
B 155.1.5.0 [200/0] via 155.1.45.5, 00:09:03
C 155.1.45.0 is directly connected, Serial0/1
B 155.1.37.0 [20/0] via 155.1.146.1, 00:08:44

s.c
Rack1R5#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.0.0 is directly connected, Serial0/0

nic
C 155.1.5.0 is directly connected, Ethernet0/1
C 155.1.45.0 is directly connected, Serial0/1
B 155.1.37.0 [20/0] via 155.1.0.3, 00:04:47

Recommended Reading tro


ge
BGP Best Path Selection Algorithm
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 33 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Bestpath Selection Local Preference


Objective: Configure the BGP Local Preference attribute in AS 2 so that traffic from
R3s Ethernet segment going to VLAN 5 is first sent to R1

om
s.c
nic
tro
ge
Directions
z@

Configure the topology per the diagram


Configure BGP on R1, R3, R4, and R5 per the diagram
R1 should peer with R3 and R4
R5 should peer with R3 and R5

e

Advertise R3s Ethernet segment into BGP


Advertise R5s Ethernet segment into BGP
qu

Configure BGP Local Preference on R3 so that routes coming from R1 are


preferred over those coming from R5

Final Configuration
az

R1:
.bl

interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
ue

!
router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
riq

neighbor 155.1.146.4 remote-as 1

R3:
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 34 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.0.5 remote-as 1

om
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.13.1 route-map LOCAL_PREFERENCE in
!
route-map LOCAL_PREFERENCE permit 10
set local-preference 200

s.c
R4:
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!

nic
interface Serial0/1
ip address 155.1.45.4 255.255.255.0
!
router bgp 1
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self
neighbor 155.1.146.1 remote-as 2

R5:
tro
interface Serial0/0
ge
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.3 503 broadcast
no frame-relay inverse-arp
!
z@

interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.5 255.255.255.0
e

clockrate 64000
!
router bgp 1
qu

network 155.1.5.0 mask 255.255.255.0


neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
neighbor 155.1.45.4 next-hop-self
az

Verification
.bl

Rack1R3#traceroute 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


ue

Tracing the route to 155.1.5.5

1 155.1.13.1 16 msec 16 msec 16 msec


2 155.1.146.4 16 msec 16 msec 16 msec
3 155.1.45.5 32 msec * 28 msec
riq

Rack1R3#show ip bgp 155.1.5.0


BGP routing table entry for 155.1.5.0/24, version 5
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 35 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Paths: (2 available, best #1, table Default-IP-Routing-


Table)
Advertised to update-groups:
2
1
155.1.13.1 from 155.1.13.1 (155.1.146.1)
Origin IGP, metric 0, localpref 200, valid, internal,

om
best
1
155.1.0.5 from 155.1.0.5 (155.1.45.5)
Origin IGP, metric 0, localpref 100, valid, external

Rack1R1#show ip bgp

s.c
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 155.1.146.4
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100

nic
0 i

Rack1R3#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24
0 1 i
*
0 1 i
155.1.13.1

155.1.0.5
tro 0

0
200
ge
*> 155.1.37.0/24 0.0.0.0 0
32768 i

Rack1R4#show ip bgp
<output omitted>
z@

Network Next Hop Metric LocPrf


Weight Path
*>i155.1.5.0/24 155.1.45.5 0 100
0 i
*> 155.1.37.0/24 155.1.146.1
0 2 i
e

* i 155.1.45.5 0 100
0 2 i
qu

Rack1R5#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
az

*> 155.1.5.0/24 0.0.0.0 0


32768 i
* i155.1.37.0/24 155.1.45.4 0 100
0 2 i
.bl

*> 155.1.0.3 0
0 2 i

Rack1R1#show ip route
ue

<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.146.0 is directly connected, FastEthernet0/0
C 155.1.13.0 is directly connected, Serial0/1
B 155.1.5.0 [20/0] via 155.1.146.4, 00:02:39
riq

B 155.1.37.0 [200/0] via 155.1.13.3, 00:02:39

Rack1R3#show ip route
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 36 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.13.0 is directly connected, Serial1/2
C 155.1.0.0 is directly connected, Serial1/0.1
B 155.1.5.0 [200/0] via 155.1.13.1, 00:02:16
C 155.1.37.0 is directly connected, Ethernet0/0

om
Rack1R4#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.13.0 is directly connected, Serial1/2
C 155.1.0.0 is directly connected, Serial1/0.1
B 155.1.5.0 [200/0] via 155.1.13.1, 00:02:16

s.c
C 155.1.37.0 is directly connected, Ethernet0/0

Rack1R5#show ip route

nic
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.0.0 is directly connected, Serial0/0
C 155.1.5.0 is directly connected, Ethernet0/1
C 155.1.45.0 is directly connected, Serial0/1
B 155.1.37.0 [20/0] via 155.1.0.3, 00:04:47

tro
ge
Recommended Reading
z@

BGP Best Path Selection Algorithm


e
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 37 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Bestpath Selection Local Preference

Objective: Configure the BGP Local Preference attribute in AS 2 so that traffic from
R3s Ethernet segment going to VLAN 5 is first sent to R1

om
s.c
nic
tro
ge
Directions

Configure the topology per the diagram


z@

Configure BGP on R1, R3, R4, and R5 per the diagram


R1 should peer with R3 and R4
R5 should peer with R3 and R5
Advertise R3s Ethernet segment into BGP

e

Advertise R5s Ethernet segment into BGP


Configure BGP Local Preference on R3 so that routes coming from R1 are
qu

preferred over those coming from R5

Final Configuration
az

R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
.bl

!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
ue

router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.146.4 remote-as 1
riq

R3:
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 38 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

clockrate 64000
!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self

om
neighbor 155.1.13.1 route-map LOCAL_PREFERENCE in
!
route-map LOCAL_PREFERENCE permit 10
set local-preference 200

R4:

s.c
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.4 255.255.255.0

nic
!
router bgp 1
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self
neighbor 155.1.146.1 remote-as 2

R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
tro
encapsulation frame-relay
ge
frame-relay map ip 155.1.0.3 503 broadcast
no frame-relay inverse-arp
!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
z@

!
interface Serial0/1
ip address 155.1.45.5 255.255.255.0
clockrate 64000
!
e

router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
qu

neighbor 155.1.45.4 remote-as 1


neighbor 155.1.45.4 next-hop-self
az

Verification
.bl

Rack1R3#traceroute 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


Tracing the route to 155.1.5.5
ue

1 155.1.13.1 16 msec 16 msec 16 msec


2 155.1.146.4 16 msec 16 msec 16 msec
3 155.1.45.5 32 msec * 28 msec
riq

Rack1R3#show ip bgp 155.1.5.0


BGP routing table entry for 155.1.5.0/24, version 5
Paths: (2 available, best #1, table Default-IP-Routing-
Table)
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 39 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Advertised to update-groups:
2
1
155.1.13.1 from 155.1.13.1 (155.1.146.1)
Origin IGP, metric 0, localpref 200, valid, internal,
best
1

om
155.1.0.5 from 155.1.0.5 (155.1.45.5)
Origin IGP, metric 0, localpref 100, valid, external

Rack1R1#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf

s.c
Weight Path
*> 155.1.5.0/24 155.1.146.4
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
0 i

nic
Rack1R3#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.13.1 0 200
0 1 i
*
0 1 i
*> 155.1.37.0/24
32768 i
155.1.0.5

0.0.0.0
tro 0

0
ge
Rack1R4#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
z@

*>i155.1.5.0/24 155.1.45.5 0 100


0 i
*> 155.1.37.0/24 155.1.146.1
0 2 i
* i 155.1.45.5 0 100
0 2 i
e

Rack1R5#show ip bgp
qu

<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
az

* i155.1.37.0/24 155.1.45.4 0 100


0 2 i
*> 155.1.0.3 0
0 2 i
.bl

Rack1R1#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
ue

C 155.1.146.0 is directly connected, FastEthernet0/0


C 155.1.13.0 is directly connected, Serial0/1
B 155.1.5.0 [20/0] via 155.1.146.4, 00:02:39
B 155.1.37.0 [200/0] via 155.1.13.3, 00:02:39
riq

Rack1R3#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 40 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

C 155.1.13.0 is directly connected, Serial1/2


C 155.1.0.0 is directly connected, Serial1/0.1
B 155.1.5.0 [200/0] via 155.1.13.1, 00:02:16
C 155.1.37.0 is directly connected, Ethernet0/0

Rack1R4#show ip route
<output omitted>

om
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.13.0 is directly connected, Serial1/2
C 155.1.0.0 is directly connected, Serial1/0.1
B 155.1.5.0 [200/0] via 155.1.13.1, 00:02:16
C 155.1.37.0 is directly connected, Ethernet0/0

s.c
Rack1R5#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets

nic
C 155.1.0.0 is directly connected, Serial0/0
C 155.1.5.0 is directly connected, Ethernet0/1
C 155.1.45.0 is directly connected, Serial0/1
B 155.1.37.0 [20/0] via 155.1.0.3, 00:04:47

Recommended Reading
tro
ge
BGP Best Path Selection Algorithm
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 41 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Bestpath Selection MED

Objective: Configure the BGP MED in AS 1 so that traffic from R3s Ethernet segment
going to VLAN 5 is first sent to R1

om
s.c
nic
Directions
tro
ge
Configure the topology per the diagram
Configure BGP on R1, R3, R4, and R5 per the diagram
R1 should peer with R3 and R4

z@

R5 should peer with R3 and R5


Advertise R3s Ethernet segment into BGP
Advertise R5s Ethernet segment into BGP
Configure BGP MED outbound on R4 and R5 towards AS 2
e

Final Configuration
qu

R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
az

!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
.bl

router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.146.4 remote-as 1
ue

R3:
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
riq

clockrate 64000
!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 42 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

neighbor 155.1.0.5 remote-as 1


neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self

R4:
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0

om
half-duplex
!
interface Serial0/1
ip address 155.1.45.4 255.255.255.0
!
router bgp 1

s.c
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self
neighbor 155.1.146.1 remote-as 2
neighbor 155.1.146.1 route-map MED out
!

nic
route-map MED permit 10
set metric 100

R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.3 503 broadcast
no frame-relay inverse-arp
tro
!
ge
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.5 255.255.255.0
z@

clockrate 64000
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
e

neighbor 155.1.0.3 route-map MED out


neighbor 155.1.45.4 remote-as 1
neighbor 155.1.45.4 next-hop-self
qu

!
route-map MED permit 10
set metric 200
az

Verification
.bl

Rack1R3#traceroute 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


Tracing the route to 155.1.5.5
ue

1 155.1.13.1 16 msec 16 msec 16 msec


2 155.1.146.4 16 msec 16 msec 16 msec
3 155.1.45.5 32 msec * 28 msec
riq

Rack1R3#show ip bgp 155.1.5.0 255.255.255.0


BGP routing table entry for 155.1.5.0/24, version 8
Paths: (2 available, best #1, table Default-IP-Routing-
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 43 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Table)
Flag: 0x800
Advertised to update-groups:
2
1
155.1.13.1 from 155.1.13.1 (155.1.146.1)
Origin IGP, metric 100, localpref 100, valid,

om
internal, best
1
155.1.0.5 from 155.1.0.5 (155.1.45.5)
Origin IGP, metric 200, localpref 100, valid,
external

s.c
Rack1R1#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 155.1.146.4 100
0 1 i

nic
*>i155.1.37.0/24 155.1.13.3 0 100
0 i

Rack1R3#show ip bgp
<output omitted>
Network
Weight Path
*>i155.1.5.0/24
0 1 i
*
Next Hop

155.1.13.1

155.1.0.5
tro
Metric LocPrf

100

200
100
ge
0 1 i
*> 155.1.37.0/24 0.0.0.0 0
32768 i

Rack1R4#show ip bgp
z@

<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.45.5 0 100
0 i
*> 155.1.37.0/24 155.1.146.1
e

0 2 i
* i 155.1.45.5 0 100
qu

0 2 i

Rack1R5#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
az

Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
* i155.1.37.0/24 155.1.45.4 0 100
.bl

0 2 i
*> 155.1.0.3 0
0 2 i
ue
riq

Rack1R1#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 44 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

C 155.1.146.0 is directly connected, FastEthernet0/0


C 155.1.13.0 is directly connected, Serial0/1
B 155.1.5.0 [20/100] via 155.1.146.4, 00:05:49
B 155.1.37.0 [200/0] via 155.1.13.3, 02:26:23

Rack1R3#show ip route
<output omitted>

om
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.13.0 is directly connected, Serial1/2
C 155.1.0.0 is directly connected, Serial1/0.1
B 155.1.5.0 [200/100] via 155.1.13.1, 00:05:53
C 155.1.37.0 is directly connected, Ethernet0/0

s.c
Rack1R4#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.13.0 is directly connected, Serial1/2
C 155.1.0.0 is directly connected, Serial1/0.1

nic
B 155.1.5.0 [200/0] via 155.1.13.1, 00:02:16
C 155.1.37.0 is directly connected, Ethernet0/0

Rack1R5#show ip route
<output omitted>

C
C
C
155.1.0.0/24 is subnetted, 4 subnets
tro
155.1.0.0 is directly connected, Serial0/0
155.1.5.0 is directly connected, Ethernet0/1
155.1.45.0 is directly connected, Serial0/1
B 155.1.37.0 [20/0] via 155.1.0.3, 00:04:47
ge

Recommended Reading
z@

BGP Best Path Selection Algorithm


e
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 45 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Bestpath Selection Origin

Objective: Modify the BGP Origin code in AS 2 so that traffic from R3s Ethernet
segment going to VLAN 5 is first sent to R1

om
s.c
nic
tro
ge
Directions

Configure the topology per the diagram


z@

Configure BGP on R1, R3, R4, and R5 per the diagram


R1 should peer with R3 and R4
R5 should peer with R3 and R5
Advertise R3s Ethernet segment into BGP

e

Advertise R5s Ethernet segment into BGP


Configure R3 so that the Origin of the route learned from R1 is preferred over the
qu

one learned from R5

Final Configuration
az

R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
.bl

!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
ue

router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.146.4 remote-as 1
riq

R3:
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 46 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

clockrate 64000
!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.0.5 route-map ORIGIN in
neighbor 155.1.13.1 remote-as 2

om
neighbor 155.1.13.1 next-hop-self
!
route-map ORIGIN permit 10
set origin incomplete

R4:

s.c
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
half-duplex
!
interface Serial0/1

nic
ip address 155.1.45.4 255.255.255.0
!
router bgp 1
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self
neighbor 155.1.146.1 remote-as 2

R5:
interface Serial0/0
tro
ip address 155.1.0.5 255.255.255.0
ge
encapsulation frame-relay
frame-relay map ip 155.1.0.3 503 broadcast
no frame-relay inverse-arp
!
interface Ethernet0/1
z@

ip address 155.1.5.5 255.255.255.0


!
interface Serial0/1
ip address 155.1.45.5 255.255.255.0
clockrate 64000
e

!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
qu

neighbor 155.1.0.3 remote-as 2


neighbor 155.1.45.4 remote-as 1
neighbor 155.1.45.4 next-hop-self
az

Verification
.bl

Rack1R3#traceroute 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


Tracing the route to 155.1.5.5
ue

1 155.1.13.1 16 msec 16 msec 16 msec


2 155.1.146.4 16 msec 16 msec 16 msec
3 155.1.45.5 32 msec * 28 msec
riq

Rack1R3#show ip bgp 155.1.5.0 255.255.255.0


BGP routing table entry for 155.1.5.0/24, version 9
Paths: (2 available, best #1, table Default-IP-Routing-
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 47 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Table)
Advertised to update-groups:
2
1
155.1.13.1 from 155.1.13.1 (155.1.146.1)
Origin IGP, metric 0, localpref 100, valid, internal,
best

om
1
155.1.0.5 from 155.1.0.5 (155.1.45.5)
Origin incomplete, metric 0, localpref 100, valid,
external

Rack1R1#show ip bgp

s.c
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 155.1.146.4
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100

nic
0 i

Rack1R3#show ip bgp
<output omitted>
Origin codes: i - IGP, e - EGP, ? - incomplete

Network
Weight Path
*>i155.1.5.0/24
0 1 i
Next Hop

155.1.13.1
tro
Metric LocPrf

0 100
ge
* 155.1.0.5 0
0 1 ?
*> 155.1.37.0/24 0.0.0.0 0
32768 i
z@

Rack1R4#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.45.5 0 100
e

0 i
*> 155.1.37.0/24 155.1.146.1
qu

0 2 i
* i 155.1.45.5 0 100
0 2 i

Rack1R5#show ip bgp
az

<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
.bl

32768 i
* i155.1.37.0/24 155.1.45.4 0 100
0 2 i
*> 155.1.0.3 0
0 2 i
ue

Rack1R1#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
riq

C 155.1.146.0 is directly connected, FastEthernet0/0


C 155.1.13.0 is directly connected, Serial0/1
B 155.1.5.0 [20/0] via 155.1.146.4, 00:05:49
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 48 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

B 155.1.37.0 [200/0] via 155.1.13.3, 02:26:23

Rack1R3#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.13.0 is directly connected, Serial1/2
C 155.1.0.0 is directly connected, Serial1/0.1

om
B 155.1.5.0 [200/0] via 155.1.13.1, 00:05:53
C 155.1.37.0 is directly connected, Ethernet0/0

s.c
Rack1R4#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.13.0 is directly connected, Serial1/2
C 155.1.0.0 is directly connected, Serial1/0.1

nic
B 155.1.5.0 [200/0] via 155.1.13.1, 00:02:16
C 155.1.37.0 is directly connected, Ethernet0/0

Rack1R5#show ip route
<output omitted>

C
C
C
155.1.0.0/24 is subnetted, 4 subnets
tro
155.1.0.0 is directly connected, Serial0/0
155.1.5.0 is directly connected, Ethernet0/1
155.1.45.0 is directly connected, Serial0/1
B 155.1.37.0 [20/0] via 155.1.0.3, 00:04:47
ge

Recommended Reading
z@

BGP Best Path Selection Algorithm


e
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 49 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Next-Hop Processing Next-Hop-Self

Objective: Configure the next-hop-self command where necessary to gain reachability


between R3s Ethernet segment and VLAN 5

om
s.c
nic
tro
ge
Directions

Configure the topology per the diagram


z@

Configure BGP on R1, R3, R4, and R5 per the diagram


R1 should peer with R3 and R4
R4 should peer with R5
Advertise R3s Ethernet segment into BGP

e

Advertise R5s Ethernet segment into BGP


Configure the next-hop-self command where necessary to gain reachability
qu

between R3s Ethernet segment and VLAN 5

Final Configuration
az

R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
.bl

!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
ue

router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.146.4 remote-as 1
riq

R3:
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 50 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

clockrate 64000
!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2

R4:

om
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.4 255.255.255.0
!

s.c
router bgp 1
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self
neighbor 155.1.146.1 remote-as 2

nic
R5:
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
interface Serial0/1

!
ip address 155.1.45.5 255.255.255.0
clockrate 64000

router bgp 1
tro
network 155.1.5.0 mask 255.255.255.0
ge
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
z@

Verification

Rack1R3#ping 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


e

Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2


seconds:
qu

Packet sent with a source address of 155.1.37.3


!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
56/60/72 ms
az

Rack1R1#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
.bl

Weight Path
*> 155.1.5.0/24 155.1.146.4
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
0 i
ue

Rack1R3#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
riq

*>i155.1.5.0/24 155.1.13.1 0 100


0 1 i
*> 155.1.37.0/24 0.0.0.0 0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 51 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

32768 i

Rack1R4#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.45.5 0 100

om
0 i
*> 155.1.37.0/24 155.1.146.1
0 2 i

Rack1R5#show ip bgp
<output omitted>

s.c
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
*>i155.1.37.0/24 155.1.45.4 0 100
0 2 i

nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 52 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Next-Hop Processing Manual Modification

Objective: Configure manual next-hop modification via a route-map where necessary


to gain reachability between R3s Ethernet segment and VLAN 5

om
s.c
nic
tro
ge
Directions
z@

Configure the topology per the diagram


Configure BGP on R1, R3, R4, and R5 per the diagram
R1 should peer with R3 and R4
R4 should peer with R5

e

Advertise R3s Ethernet segment into BGP


Advertise R5s Ethernet segment into BGP
qu

Configure route-maps on R1 and R4 to manually modify the next-hop values


advertised to R3 and R5 respectively

Final Configuration
az

R1:
.bl

interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
ue

!
router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 route-map SET_NEXT_HOP out
riq

neighbor 155.1.146.4 remote-as 1


!
route-map SET_NEXT_HOP permit 10
set ip next-hop 155.1.13.1
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 53 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

R3:
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
router bgp 2

om
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2

R4:
interface Ethernet0/1

s.c
ip address 155.1.146.4 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.4 255.255.255.0
!

nic
router bgp 1
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 route-map SET_NEXT_HOP out
neighbor 155.1.146.1 remote-as 2
!
route-map SET_NEXT_HOP permit 10
set ip next-hop 155.1.45.4

R5:
interface Ethernet0/1
tro
ip address 155.1.5.5 255.255.255.0
ge
!
interface Serial0/1
ip address 155.1.45.5 255.255.255.0
clockrate 64000
z@

!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
e
qu

Verification
az

Rack1R3#ping 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
.bl

Packet sent with a source address of 155.1.37.3


!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
56/60/72 ms
ue

Rack1R1#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
riq

*> 155.1.5.0/24 155.1.146.4


0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 54 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

0 i

Rack1R3#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.13.1 0 100

om
0 1 i
*> 155.1.37.0/24 0.0.0.0 0
32768 i

Rack1R4#show ip bgp
<output omitted>

s.c
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.45.5 0 100
0 i
*> 155.1.37.0/24 155.1.146.1
0 2 i

nic
Rack1R5#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24
32768 i
*>i155.1.37.0/24
0 2 i
0.0.0.0

155.1.45.4 tro 0

0 100
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 55 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Next-Hop Processing IGP Redistribution

Objective: Configure redistribution on R1 and R4 to allow IGP next-hop lookup in order


to gain reachability between R3s Ethernet segment and VLAN 5

om
s.c
nic
tro
ge
Directions

Configure the topology per the diagram



z@

Configure EIGRP AS 1 between R4 and R5


Configure EIGRP AS 2 between R1 and R3
Configure BGP on R1, R3, R4, and R5 per the diagram
R1 should peer with R3 and R4
R4 should peer with R5
e

Advertise R3s Ethernet segment into BGP



qu

Advertise R5s Ethernet segment into BGP


Configure redistribution on R1 and R4 to allow IGP next-hop lookup in order to
gain reachability between R3s Ethernet segment and VLAN 5
az

Final Configuration
.bl

R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
ue

ip address 155.1.13.1 255.255.255.0


!
router eigrp 2
redistribute connected metric 1 1 1 1 1
riq

network 155.1.13.1 0.0.0.0


no auto-summary
!
router bgp 2
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 56 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

neighbor 155.1.13.3 remote-as 2


neighbor 155.1.146.4 remote-as 1

R3:
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000

om
!
router eigrp 2
network 155.1.13.3 0.0.0.0
no auto-summary
!
router bgp 2

s.c
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2

R4:

nic
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
interface Serial0/1
ip address 155.1.45.4 255.255.255.0
!
router eigrp 1
redistribute connected metric 1 1 1 1 1
network 155.1.45.4 0.0.0.0
no auto-summary
tro
!
ge
router bgp 1
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.146.1 remote-as 2
z@

R5:
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
interface Serial0/1
e

ip address 155.1.45.5 255.255.255.0


clockrate 64000
qu

!
router eigrp 1
network 155.1.45.5 0.0.0.0
no auto-summary
!
az

router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
.bl

Verification
ue

Rack1R3#ping 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


riq

Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2


seconds:
Packet sent with a source address of 155.1.37.3
!!!!!
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 57 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Success rate is 100 percent (5/5), round-trip min/avg/max =


56/60/72 ms

Rack1R1#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path

om
*> 155.1.5.0/24 155.1.146.4
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
0 i

Rack1R1#show ip route

s.c
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.146.0 is directly connected, FastEthernet0/0
C 155.1.13.0 is directly connected, Serial0/1
B 155.1.5.0 [20/0] via 155.1.146.4, 01:25:02
B 155.1.37.0 [200/0] via 155.1.13.3, 04:04:26

nic
Rack1R3#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24
0 1 i
*> 155.1.37.0/24
32768 i
155.1.146.4

0.0.0.0 tro 0

0
100
ge
Rack1R3#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
D EX 155.1.146.0 [170/2560512256] via 155.1.13.1,
00:01:55, Serial1/2
z@

C 155.1.13.0 is directly connected, Serial1/2


B 155.1.5.0 [200/0] via 155.1.146.4, 00:01:41
C 155.1.37.0 is directly connected, Ethernet0/0

Rack1R4#show ip bgp
<output omitted>
e

Network Next Hop Metric LocPrf


Weight Path
qu

*>i155.1.5.0/24 155.1.45.5 0 100


0 i
*> 155.1.37.0/24 155.1.146.1
0 2 i
az

Rack1R4#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
C 155.1.146.0 is directly connected, Ethernet0/1
.bl

B 155.1.5.0 [200/0] via 155.1.45.5, 04:05:03


C 155.1.45.0 is directly connected, Serial0/1
B 155.1.37.0 [20/0] via 155.1.146.1, 04:05:02
ue

Rack1R5#show ip bgp
<output omitted>
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
riq

32768 i
*>i155.1.37.0/24 155.1.146.1 0 100
0 2 i
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 58 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Rack1R5#show ip route
<output omitted>
155.1.0.0/24 is subnetted, 4 subnets
D EX 155.1.146.0 [170/2560512256] via 155.1.45.4,
00:04:43, Serial0/1
C 155.1.5.0 is directly connected, Ethernet0/1

om
C 155.1.45.0 is directly connected, Serial0/1
B 155.1.37.0 [200/0] via 155.1.146.1, 00:04:37

s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 59 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Communites No-Export

Objective: Configure AS 2 using the community No-Export so that hosts on R3s


Ethernet have access to VLANs 5 and 43 but AS 1 and AS 3 cannot reach
VLANs 43 and 5 respectively

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 60 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure EIGRP AS 2 on the links between R1 & R3 and R2 & R3
Configure BGP on R1, R2, R3, R4, and R5 per the diagram
R1 should peer with R4

om
R2 should peer with R5
R1, R2, and R3 should all peer with each other
Advertise R3s Ethernet into BGP on R3
Advertise VLAN 5 into BGP on R5

s.c
Advertise VLAN 43 into BGP on R4
Configure the community No-Export on R1 and R2 so that routes coming from
AS 1 are not passed to AS 3 and vice-versa

nic
Final Configuration

R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1

!
ip address 155.1.13.1 255.255.255.0
tro
router eigrp 2
ge
network 155.1.13.1 0.0.0.0
no auto-summary
!
router bgp 2
z@

neighbor 155.1.13.3 remote-as 2


neighbor 155.1.13.3 next-hop-self
neighbor 155.1.23.2 remote-as 2
neighbor 155.1.23.2 next-hop-self
neighbor 155.1.23.2 send-community
neighbor 155.1.146.4 remote-as 3
e

neighbor 155.1.146.4 route-map NO_EXPORT in


!
qu

route-map NO_EXPORT permit 10


set community no-export

R2:
az

interface FastEthernet0/0
ip address 192.10.1.2 255.255.255.0
!
interface Serial0/0
.bl

encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
ue

!
interface Serial0/1
ip address 155.1.23.2 255.255.255.0
!
riq

router eigrp 2
network 155.1.23.2 0.0.0.0
no auto-summary
!
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 61 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

router bgp 2
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.0.5 route-map NO_EXPORT in
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.13.1 send-community
neighbor 155.1.23.3 remote-as 2

om
neighbor 155.1.23.3 next-hop-self
!
route-map NO_EXPORT permit 10
set community no-export

R3:

s.c
interface Ethernet0/0
ip address 155.1.37.3 255.255.255.0
!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0

nic
clockrate 64000
!
interface Serial1/3
ip address 155.1.23.3 255.255.255.0
clockrate 64000
!
router eigrp 2
network 155.1.13.3 0.0.0.0
network 155.1.23.3 0.0.0.0
no auto-summary
tro
!
ge
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.23.2 remote-as 2
z@

R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
e

interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
qu

router bgp 3
network 204.12.1.0
neighbor 155.1.146.1 remote-as 2
az

R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
.bl

frame-relay map ip 155.1.0.2 502 broadcast


!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
ue

!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.2 remote-as 2
riq

Verification
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 62 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Rack1R3#ping 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3

om
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
84/86/88 ms

Rack1R3#ping 204.12.1.4 source 155.1.37.3

s.c
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 204.12.1.4, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!

nic
Success rate is 100 percent (5/5), round-trip min/avg/max =
28/31/32 ms

Rack1R4#show ip bgp
BGP table version is 3, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
tro
Network Next Hop Metric LocPrf
ge
Weight Path
*> 155.1.37.0/24 155.1.146.1
0 2 i
*> 204.12.1.0 0.0.0.0 0
z@

32768 i

Rack1R5#show ip bgp
BGP table version is 3, local router ID is 150.1.5.5
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
e

r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
qu

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
az

*> 155.1.37.0/24 155.1.0.2


0 2 i

Rack1R1#show ip bgp 155.1.5.0


.bl

BGP routing table entry for 155.1.5.0/24, version 3


Paths: (1 available, best #1, table Default-IP-Routing-
Table, not advertised to EBGP peer)
Not advertised to any peer
1
ue

155.1.23.2 (metric 21024000) from 155.1.23.2


(150.1.2.2)
Origin IGP, metric 0, localpref 100, valid, internal,
best
riq

Community: no-export

Rack1R2#show ip bgp 204.12.1.0


BGP routing table entry for 204.12.1.0/24, version 2
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 63 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Paths: (1 available, best #1, table Default-IP-Routing-


Table, not advertised to EBGP peer)
Not advertised to any peer
3
155.1.13.1 (metric 21024000) from 155.1.13.1
(150.1.1.1)
Origin IGP, metric 0, localpref 100, valid, internal,

om
best
Community: no-export

s.c
Recommended Reading

nic
RFC 1997 - BGP Communities Attribute

tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 64 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Communites No-Advertise

Objective: Configure R2 using the community No-Advertise so that hosts on R3s


Ethernet, VLAN 5, and VLAN 43 all have access to each other but only R2
has access to VLAN 58

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 65 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure EIGRP AS 2 on the links between R1 & R3 and R2 & R3
Configure BGP on R1, R2, R3, R4, and R5 per the diagram
R1 should peer with R4

om
R2 should peer with R5
R1, R2, and R3 should all peer with each other
Advertise R3s Ethernet into BGP on R3
Advertise VLANs 5 and 58 into BGP on R5

s.c
Advertise VLAN 43 into BGP on R4
Configure the community No-Advertise on R2 so that VLAN 58 is not advertised
to any neighbor

nic
Final Configuration

R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1

!
ip address 155.1.13.1 255.255.255.0
tro
router eigrp 2
ge
network 155.1.13.1 0.0.0.0
no auto-summary
!
router bgp 2
z@

neighbor 155.1.13.3 remote-as 2


neighbor 155.1.13.3 next-hop-self
neighbor 155.1.23.2 remote-as 2
neighbor 155.1.23.2 next-hop-self
neighbor 155.1.146.4 remote-as 3
e

R2:
interface FastEthernet0/0
qu

ip address 192.10.1.2 255.255.255.0


!
interface Serial0/0
encapsulation frame-relay
az

!
interface Serial0/0.1 point-to-point
ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
.bl

!
interface Serial0/1
ip address 155.1.23.2 255.255.255.0
!
router eigrp 2
ue

network 155.1.23.2 0.0.0.0


no auto-summary
!
router bgp 2
riq

neighbor 155.1.0.5 remote-as 1


neighbor 155.1.0.5 route-map NO_ADVERTISE in
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 66 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

neighbor 155.1.23.3 remote-as 2


neighbor 155.1.23.3 next-hop-self
!
ip prefix-list VLAN58 permit 155.1.58.0/24
!
route-map NO_ADVERTISE permit 10
match ip address prefix-list VLAN58

om
set community no-advertise
!
route-map NO_ADVERTISE permit 20

R3:
interface Ethernet0/0

s.c
ip address 155.1.37.3 255.255.255.0
!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000

nic
!
interface Serial1/3
ip address 155.1.23.3 255.255.255.0
clockrate 64000
!
router eigrp 2

!
network 155.1.13.3 0.0.0.0
network 155.1.23.3 0.0.0.0
no auto-summary
tro
router bgp 2
ge
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.23.2 remote-as 2
z@

R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1
e

ip address 155.1.146.4 255.255.255.0


!
router bgp 3
qu

network 204.12.1.0
neighbor 155.1.146.1 remote-as 2

R5:
az

interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
.bl

!
interface Ethernet0/0
ip address 155.1.58.5 255.255.255.0
!
ue

interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
riq

network 155.1.58.0 mask 255.255.255.0


neighbor 155.1.0.2 remote-as 2

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 67 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Verification

Rack1R2#show ip bgp 155.1.58.0


BGP routing table entry for 155.1.58.0/24, version 4
Paths: (1 available, best #1, table Default-IP-Routing-

om
Table, not advertised to any peer)
Not advertised to any peer
1
155.1.0.5 from 155.1.0.5 (150.1.5.5)
Origin IGP, metric 0, localpref 100, valid, external,
best

s.c
Community: no-advertise

Rack1R2#ping 155.1.58.5

Type escape sequence to abort.

nic
Sending 5, 100-byte ICMP Echos to 155.1.58.5, timeout is 2
seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
56/59/60 ms

Rack1R3#ping 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


tro
Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
ge
Packet sent with a source address of 155.1.37.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
84/87/88 ms
z@

Rack1R3#ping 155.1.58.8 source 155.1.37.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 155.1.58.8, timeout is 2
seconds:
e

Packet sent with a source address of 155.1.37.3


.....
Success rate is 0 percent (0/5)
qu

Rack1R4#ping 155.1.5.5 source 204.12.1.4

Type escape sequence to abort.


az

Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2


seconds:
Packet sent with a source address of 204.12.1.4
!!!!!
.bl

Success rate is 100 percent (5/5), round-trip min/avg/max =


112/115/120 ms

Rack1R3#ping 204.12.1.4 source 155.1.37.3


ue

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 204.12.1.4, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3
riq

!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
28/30/32 ms

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 68 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Rack1R1#show ip bgp
BGP table version is 6, local router ID is 150.1.1.1
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

om
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.23.2 0 100
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100

s.c
0 i
*> 204.12.1.0 155.1.146.4 0
0 3 i

Rack1R2#show ip bgp

nic
BGP table version is 5, local router ID is 150.1.2.2
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network
Weight Path
*> 155.1.5.0/24
0 1 i
Next Hop

155.1.0.5
tro
Metric LocPrf

*>i155.1.37.0/24 155.1.23.3 0 100


ge
0 i
*> 155.1.58.0/24 155.1.0.5 0
0 1 i
*>i204.12.1.0 155.1.13.1 0 100
z@

0 3 i

Rack1R3#show ip bgp
BGP table version is 8, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
e

r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
qu

Network Next Hop Metric LocPrf


Weight Path
*>i155.1.5.0/24 155.1.23.2 0 100
0 1 i
az

*> 155.1.37.0/24 0.0.0.0 0


32768 i
*>i204.12.1.0 155.1.13.1 0 100
0 3 i
.bl

Rack1R4#show ip bgp
BGP table version is 6, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, >
ue

best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
riq

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.5.0/24 155.1.146.1
0 2 1 i
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 69 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

*> 155.1.37.0/24 155.1.146.1


0 2 i
*> 204.12.1.0 0.0.0.0 0
32768 i

Rack1R5#show ip bgp
BGP table version is 9, local router ID is 150.1.5.5

om
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf

s.c
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
*> 155.1.37.0/24 155.1.0.2
0 2 i
*> 155.1.58.0/24 0.0.0.0 0

nic
32768 i
*> 204.12.1.0 155.1.0.2
0 2 3 i

Recommended Reading
tro
ge
RFC 1997 - BGP Communities Attribute


e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 70 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Route Reflection

Objective: Configure R3 as a route reflector for R1 and R2 so that hosts on R3s


Ethernet, VLAN 5, and VLAN 43 all have access to each other

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 71 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure EIGRP AS 2 on the links between R1 & R3 and R2 & R3
Configure BGP on R1, R2, R3, R4, and R5 per the diagram
R1 should peer with R4

om
R2 should peer with R5
R3 should peer with and be a route reflector for R1 and R2
Advertise R3s Ethernet into BGP on R3
Advertise VLAN 5 into BGP on R5

s.c
Advertise VLAN 43 into BGP on R4

Final Configuration

nic
R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1

!
ip address 155.1.13.1 255.255.255.0

router eigrp 2
network 155.1.13.1 0.0.0.0
tro
no auto-summary
ge
!
router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.146.4 remote-as 3
z@

R2:
interface FastEthernet0/0
ip address 192.10.1.2 255.255.255.0
!
e

interface Serial0/0
encapsulation frame-relay
qu

!
interface Serial0/0.1 point-to-point
ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
!
az

interface Serial0/1
ip address 155.1.23.2 255.255.255.0
!
router eigrp 2
.bl

network 155.1.23.2 0.0.0.0


no auto-summary
!
router bgp 2
ue

neighbor 155.1.0.5 remote-as 1


neighbor 155.1.23.3 remote-as 2
neighbor 155.1.23.3 next-hop-self
riq

R3:
interface Ethernet0/0
ip address 155.1.37.3 255.255.255.0
!
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 72 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
interface Serial1/3
ip address 155.1.23.3 255.255.255.0
clockrate 64000

om
!
router eigrp 2
network 155.1.13.3 0.0.0.0
network 155.1.23.3 0.0.0.0
no auto-summary
!

s.c
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 route-reflector-client
neighbor 155.1.23.2 remote-as 2
neighbor 155.1.23.2 route-reflector-client

nic
R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1

!
ip address 155.1.146.4 255.255.255.0

router bgp 3
tro
network 204.12.1.0
ge
neighbor 155.1.146.1 remote-as 2

R5:
interface Serial0/0
z@

ip address 155.1.0.5 255.255.255.0


encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!
interface Ethernet0/0
e

ip address 155.1.58.5 255.255.255.0


!
interface Ethernet0/1
qu

ip address 155.1.5.5 255.255.255.0


!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
az

neighbor 155.1.0.2 remote-as 2


.bl

Verification

Rack1R3#ping 155.1.5.5 source 155.1.37.3


ue

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!
riq

Success rate is 100 percent (5/5), round-trip min/avg/max =


84/87/92 ms

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 73 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Rack1R3#ping 204.12.1.4 source 155.1.37.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 204.12.1.4, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!

om
Success rate is 100 percent (5/5), round-trip min/avg/max =
28/32/36 ms

Rack1R4#ping 155.1.5.5 source 204.12.1.4

Type escape sequence to abort.

s.c
Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 204.12.1.4
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
112/115/116 ms

nic
Rack1R1#show ip bgp
BGP table version is 4, local router ID is 150.1.1.1
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,

Network
Weight Path
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Next Hop
tro
Metric LocPrf
ge
*>i155.1.5.0/24 155.1.23.2 0 100
0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
0 i
*> 204.12.1.0 155.1.146.4 0
z@

0 3 i

Rack1R2#show ip bgp
BGP table version is 4, local router ID is 150.1.2.2
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
e

r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
qu

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.5.0/24 155.1.0.5 0
0 1 i
az

*>i155.1.37.0/24 155.1.23.3 0 100


0 i
*>i204.12.1.0 155.1.13.1 0 100
0 3 i
.bl

Rack1R3#show ip bgp
BGP table version is 4, local router ID is 150.1.3.3
ue

Status codes: s suppressed, d damped, h history, * valid, >


best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
riq

Network Next Hop Metric LocPrf


Weight Path
*>i155.1.5.0/24 155.1.23.2 0 100
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 74 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

0 1 i
*> 155.1.37.0/24 0.0.0.0 0
32768 i
*>i204.12.1.0 155.1.13.1 0 100
0 3 i

Rack1R4#show ip bgp

om
BGP table version is 10, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

s.c
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 155.1.146.1
0 2 1 i
*> 155.1.37.0/24 155.1.146.1
0 2 i

nic
*> 204.12.1.0 0.0.0.0 0
32768 i

Rack1R5#show ip bgp
BGP table version is 4, local router ID is 150.1.5.5

best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
tro
Status codes: s suppressed, d damped, h history, * valid, >
ge
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
*> 155.1.37.0/24 155.1.0.2
z@

0 2 i
*> 204.12.1.0 155.1.0.2
0 2 3 i
e

Recommended Reading
qu

RFC 1966 - BGP Route Reflection An alternative to full mesh IBGP


az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 75 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Confederation

Objective: Configure R1, R2, and R3 in confederation so that AS 1 and AS 3 see them
as all belonging to AS 2

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 76 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure BGP on R1, R2, R3, R4, and R5 per the diagram
R1 and R3 should use the private AS 65013 and the public AS 2
R2 should use the private AS 65002 and the public AS 2

om
R1 should peer with R3 and R4
R2 should peer with R3 and R5
Advertise R3s Ethernet into BGP on R3
Advertise VLAN 5 into BGP on R5

s.c
Advertise VLAN 43 into BGP on R4

Final Configuration

nic
R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1

!
ip address 155.1.13.1 255.255.255.0

router eigrp 2
network 155.1.13.1 0.0.0.0
tro
no auto-summary
ge
!
router bgp 65013
bgp confederation identifier 2
neighbor 155.1.13.3 remote-as 65013
neighbor 155.1.13.3 next-hop-self
z@

neighbor 155.1.146.4 remote-as 3

R2:
interface FastEthernet0/0
ip address 192.10.1.2 255.255.255.0
e

!
interface Serial0/0
qu

encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
az

!
interface Serial0/1
ip address 155.1.23.2 255.255.255.0
!
.bl

router eigrp 2
network 155.1.23.2 0.0.0.0
no auto-summary
!
ue

router bgp 65002


bgp confederation identifier 2
bgp confederation peers 65013
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.23.3 remote-as 65013
riq

R3:
interface Ethernet0/0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 77 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

ip address 155.1.37.3 255.255.255.0


!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
interface Serial1/3

om
ip address 155.1.23.3 255.255.255.0
clockrate 64000
!
router eigrp 2
network 155.1.13.3 0.0.0.0
network 155.1.23.3 0.0.0.0

s.c
no auto-summary
!
router bgp 65013
bgp confederation identifier 2
bgp confederation peers 65002
network 155.1.37.0 mask 255.255.255.0

nic
neighbor 155.1.13.1 remote-as 65013
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.23.2 remote-as 65002

R4:
interface Ethernet0/0

!
ip address 204.12.1.4 255.255.255.0

interface Ethernet0/1
tro
ip address 155.1.146.4 255.255.255.0
ge
!
router bgp 3
network 204.12.1.0
neighbor 155.1.146.1 remote-as 2
z@

R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
e

frame-relay map ip 155.1.0.2 502 broadcast


!
interface Ethernet0/0
qu

ip address 155.1.58.5 255.255.255.0


!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
az

!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.2 remote-as 2
.bl

Verification
ue

Rack1R3#ping 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
riq

seconds:
Packet sent with a source address of 155.1.37.3
!!!!!
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 78 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Success rate is 100 percent (5/5), round-trip min/avg/max =


72/82/120 ms

Rack1R3#ping 204.12.1.4 source 155.1.37.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 204.12.1.4, timeout is 2

om
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
28/31/32 ms

s.c
Rack1R4#ping 155.1.5.5 source 204.12.1.4

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 204.12.1.4

nic
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
100/102/104 ms

Rack1R1#show ip bgp

best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
tro
BGP table version is 4, local router ID is 150.1.1.1
Status codes: s suppressed, d damped, h history, * valid, >
ge
Network Next Hop Metric LocPrf
Weight Path
*>i155.1.5.0/24 155.1.13.3 0 100
0 (65002) 1 i
z@

*>i155.1.37.0/24 155.1.13.3 0 100


0 i
*> 204.12.1.0 155.1.146.4 0
0 3 i

Rack1R2#show ip bgp
e

BGP table version is 4, local router ID is 150.1.2.2


Status codes: s suppressed, d damped, h history, * valid, >
qu

best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


az

Weight Path
*> 155.1.5.0/24 155.1.0.5 0
0 1 i
*> 155.1.37.0/24 155.1.23.3 0 100
.bl

0 (65013) i
*> 204.12.1.0 155.1.13.1 0 100
0 (65013) 3 i
ue

Rack1R3#show ip bgp
BGP table version is 4, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
riq

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 79 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Weight Path
*> 155.1.5.0/24 155.1.0.5 0 100
0 (65002) 1 i
*> 155.1.37.0/24 0.0.0.0 0
32768 i
*>i204.12.1.0 155.1.13.1 0 100
0 3 i

om
Rack1R4#show ip bgp
BGP table version is 14, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale

s.c
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.5.0/24 155.1.146.1
0 2 1 i

nic
*> 155.1.37.0/24 155.1.146.1
0 2 i
*> 204.12.1.0 0.0.0.0 0
32768 i

Rack1R5#show ip bgp
tro
BGP table version is 8, local router ID is 150.1.5.5
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
ge
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.5.0/24 0.0.0.0 0
z@

32768 i
*> 155.1.37.0/24 155.1.0.2
0 2 i
*> 204.12.1.0 155.1.0.2
0 2 3 i
e
qu

Recommended Reading
az

RFC 1965 - Autonomous System Confederations for BGP


.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 80 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Communities Local AS

Objective: Configure the community Local-AS on R1 so that only R3s Ethernet


segment has reachability to VLAN 43

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 81 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure BGP on R1, R2, R3, R4, and R5 per the diagram
R1 and R3 should use the private AS 65013 and the public AS 2
R2 should use the private AS 65002 and the public AS 2

om
R1 should peer with R3 and R4
R2 should peer with R3 and R5
Advertise R3s Ethernet into BGP on R3
Advertise VLAN 5 into BGP on R5

s.c
Advertise VLAN 43 into BGP on R4
Configure R1 to set VLAN 43 to the community Local-AS as it is received from
R4

nic
Final Configuration

R1:
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1

!
ip address 155.1.13.1 255.255.255.0
tro
router eigrp 2
ge
network 155.1.13.1 0.0.0.0
no auto-summary
!
router bgp 65013
z@

bgp confederation identifier 2


neighbor 155.1.13.3 remote-as 65013
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.13.3 send-community
neighbor 155.1.146.4 remote-as 3
neighbor 155.1.146.4 route-map LOCAL_AS in
e

!
route-map LOCAL_AS permit 10
qu

set community local-as

R2:
interface FastEthernet0/0
az

ip address 192.10.1.2 255.255.255.0


!
interface Serial0/0
encapsulation frame-relay
.bl

!
interface Serial0/0.1 point-to-point
ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
!
ue

interface Serial0/1
ip address 155.1.23.2 255.255.255.0
!
router eigrp 2
riq

network 155.1.23.2 0.0.0.0


no auto-summary
!
router bgp 65002
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 82 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

bgp confederation identifier 2


bgp confederation peers 65013
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.23.3 remote-as 65013

R3:
interface Ethernet0/0

om
ip address 155.1.37.3 255.255.255.0
!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!

s.c
interface Serial1/3
ip address 155.1.23.3 255.255.255.0
clockrate 64000
!
router eigrp 2

nic
network 155.1.13.3 0.0.0.0
network 155.1.23.3 0.0.0.0
no auto-summary
!
router bgp 65013
bgp confederation identifier 2
bgp confederation peers 65002
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 65013
neighbor 155.1.13.1 next-hop-self
tro
neighbor 155.1.23.2 remote-as 65002
ge

R4:
z@

interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
e

router bgp 3
network 204.12.1.0
qu

neighbor 155.1.146.1 remote-as 2

R5:
interface Serial0/0
az

ip address 155.1.0.5 255.255.255.0


encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!
.bl

interface Ethernet0/0
ip address 155.1.58.5 255.255.255.0
!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
ue

!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.2 remote-as 2
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 83 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Verification

Rack1R3#ping 155.1.5.5 source 155.1.37.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2

om
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
72/73/76 ms

s.c
Rack1R3#ping 204.12.1.4 source 155.1.37.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 204.12.1.4, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3

nic
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
28/30/32 ms

Rack1R1#show ip bgp 204.12.1.0

Table, not advertised outside local AS)


Advertised to non peer-group peers:
155.1.13.3
tro
BGP routing table entry for 204.12.1.0/24, version 5
Paths: (1 available, best #1, table Default-IP-Routing-
ge
3
155.1.146.4 from 155.1.146.4 (150.1.4.4)
Origin IGP, metric 0, localpref 100, valid, external,
best
Community: local-AS
z@

Rack1R3#show ip bgp 204.12.1.0


BGP routing table entry for 204.12.1.0/24, version 5
Paths: (1 available, best #1, table Default-IP-Routing-
Table, not advertised outside local AS)
Not advertised to any peer
e

3
155.1.13.1 from 155.1.13.1 (150.1.1.1)
qu

Origin IGP, metric 0, localpref 100, valid, confed-


internal, best
Community: local-AS

Rack1R1#show ip bgp
az

BGP table version is 5, local router ID is 150.1.1.1


Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
.bl

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
ue

*>i155.1.5.0/24 155.1.13.3 0 100


0 (65002) 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
0 i
*> 204.12.1.0 155.1.146.4 0
riq

0 3 i

Rack1R2#show ip bgp
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 84 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP table version is 5, local router ID is 150.1.2.2


Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf

om
Weight Path
*> 155.1.5.0/24 155.1.0.5 0
0 1 i
*> 155.1.37.0/24 155.1.23.3 0 100
0 (65013) i

s.c
Rack1R3#show ip bgp
BGP table version is 5, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

nic
Network Next Hop Metric LocPrf
Weight Path
*> 155.1.5.0/24 155.1.0.5 0 100
0 (65002) 1 i
*> 155.1.37.0/24
32768 i
*>i204.12.1.0
0 3 i
0.0.0.0

155.1.13.1 tro 0

0 100
ge
Rack1R4#show ip bgp
BGP table version is 14, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
z@

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.5.0/24 155.1.146.1
0 2 1 i
e

*> 155.1.37.0/24 155.1.146.1


0 2 i
qu

*> 204.12.1.0 0.0.0.0 0


32768 i

Rack1R5#show ip bgp
BGP table version is 9, local router ID is 150.1.5.5
az

Status codes: s suppressed, d damped, h history, * valid, >


best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
.bl

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.5.0/24 0.0.0.0 0
ue

32768 i
*> 155.1.37.0/24 155.1.0.2
0 2 i
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 85 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Recommended Reading

RFC 1997 - BGP Communities Attribute

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 86 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Regular Expressions

Objective: Configure AS-Path access-list filtering on R1 and R2 in such a way that


hosts on R3s Ethernet have access to VLAN 5 and VLAN 43 but hosts on
VLANs 5 and 43 do not have access to each other

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 87 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure EIGRP AS 2 on the links between R1 & R3 and R2 & R3
Configure BGP on R1, R2, R3, R4, and R5 per the diagram
R1 should peer with R4

om
R2 should peer with R5
R1, R2, and R3 should all peer with each other
Advertise R3s Ethernet into BGP on R3
Advertise VLAN 5 into BGP on R5

s.c
Advertise VLAN 43 into BGP on R4
Configure an AS-Path access-list on R1 and R2 to only advertise routes
originated in AS 2 out to AS 1 and AS 3

nic
Final Configuration

R1:
interface FastEthernet0/0

!
ip address 155.1.146.1 255.255.255.0

interface Serial0/1

!
ip address 155.1.13.1 255.255.255.0
tro
router eigrp 2
ge
network 155.1.13.1 0.0.0.0
no auto-summary
!
router bgp 2
z@

neighbor 155.1.13.3 remote-as 2


neighbor 155.1.13.3 next-hop-self
neighbor 155.1.23.2 remote-as 2
neighbor 155.1.23.2 next-hop-self
neighbor 155.1.146.4 remote-as 3
neighbor 155.1.146.4 filter-list 1 out
e

!
ip as-path access-list 1 permit ^$
qu

R2:
interface FastEthernet0/0
ip address 192.10.1.2 255.255.255.0
az

!
interface Serial0/0
encapsulation frame-relay
!
.bl

interface Serial0/0.1 point-to-point


ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
!
interface Serial0/1
ue

ip address 155.1.23.2 255.255.255.0


!
router eigrp 2
network 155.1.23.2 0.0.0.0
riq

no auto-summary
!
router bgp 2
neighbor 155.1.0.5 remote-as 1
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 88 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

neighbor 155.1.0.5 filter-list 1 out


neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.23.3 remote-as 2
neighbor 155.1.23.3 next-hop-self
!
ip as-path access-list 1 permit ^$

om
R3:
interface Ethernet0/0
ip address 155.1.37.3 255.255.255.0
!
interface Serial1/2

s.c
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
interface Serial1/3
ip address 155.1.23.3 255.255.255.0

nic
clockrate 64000
!
router eigrp 2
network 155.1.13.3 0.0.0.0
network 155.1.23.3 0.0.0.0
no auto-summary
!
router bgp 2
network 155.1.37.0 mask 255.255.255.0
neighbor 155.1.13.1 remote-as 2
tro
neighbor 155.1.23.2 remote-as 2
ge

R4:
z@

interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
e

router bgp 3
network 204.12.1.0
qu

neighbor 155.1.146.1 remote-as 2

R5:
interface Serial0/0
az

ip address 155.1.0.5 255.255.255.0


encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!
.bl

interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
ue

neighbor 155.1.0.2 remote-as 2


riq

Verification

Rack1R3#ping 155.1.5.5 source 155.1.37.3


Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 89 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =

om
84/86/88 ms

Rack1R3#ping 204.12.1.4 source 155.1.37.3

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 204.12.1.4, timeout is 2

s.c
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max =
28/30/32 ms

nic
Rack1R4#ping 155.1.5.5 source 204.12.1.4

Type escape sequence to abort.


Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 204.12.1.4
.....
Success rate is 0 percent (0/5) tro
Rack1R1#show ip bgp neighbors 155.1.146.4 advertised-routes
ge
BGP table version is 4, local router ID is 150.1.1.1
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
z@

Network Next Hop Metric LocPrf


Weight Path
*>i155.1.37.0/24 155.1.13.3 0 100
0 i
e

Rack1R2#show ip bgp neighbors 155.1.0.5 advertised-routes


BGP table version is 4, local router ID is 150.1.2.2
qu

Status codes: s suppressed, d damped, h history, * valid, >


best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
az

Network Next Hop Metric LocPrf


Weight Path
*>i155.1.37.0/24 155.1.23.3 0 100
0 i
.bl

Rack1R1#show ip bgp
BGP table version is 4, local router ID is 150.1.1.1
Status codes: s suppressed, d damped, h history, * valid, >
ue

best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


riq

Weight Path
*>i155.1.5.0/24 155.1.23.2 0 100
0 1 i
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 90 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

*>i155.1.37.0/24 155.1.13.3 0 100


0 i
*> 204.12.1.0 155.1.146.4 0
0 3 i

Rack1R2#show ip bgp
BGP table version is 4, local router ID is 150.1.2.2

om
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf

s.c
Weight Path
*> 155.1.5.0/24 155.1.0.5 0
0 1 i
*>i155.1.37.0/24 155.1.23.3 0 100
0 i
*>i204.12.1.0 155.1.13.1 0 100

nic
0 3 i

Rack1R3#show ip bgp
BGP table version is 4, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop


tro
Metric LocPrf
ge
Weight Path
*>i155.1.5.0/24 155.1.23.2 0 100
0 1 i
*> 155.1.37.0/24 0.0.0.0 0
32768 i
z@

*>i204.12.1.0 155.1.13.1 0 100


0 3 i

Rack1R4#show ip bgp
BGP table version is 17, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, >
e

best, i - internal,
r RIB-failure, S Stale
qu

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.37.0/24 155.1.146.1
az

0 2 i
*> 204.12.1.0 0.0.0.0 0
32768 i
.bl

Rack1R5#show ip bgp
BGP table version is 11, local router ID is 150.1.5.5
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
ue

r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
riq

*> 155.1.5.0/24 0.0.0.0 0


32768 i
*> 155.1.37.0/24 155.1.0.2
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 91 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

0 2 i

Recommended Reading

om
Using Regular Expressions in BGP

s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 92 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Outbound Route Filtering (ORF)

Objective: Configure BGP ORF between R1 and R4 so that R1 does not advertise
VLAN 5 to R4

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 93 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure EIGRP AS 2 on the links between R1 & R3 and R2 & R3
Configure BGP on R1, R2, R3, R4, and R5 per the diagram
R1 should peer with R4

om
R2 should peer with R5
R1, R2, and R3 should all peer with each other
Advertise R3s Ethernet into BGP on R3
Advertise VLAN 5 into BGP on R5

s.c
Advertise VLAN 43 into BGP on R4
Configure BGP ORF between R1 and R4
R4 should send the BGP ORF prefix-list to R1
R1 should use the list received for outbound filtering towards R4

nic
Final Configuration

R1:
interface FastEthernet0/0

!
ip address 155.1.146.1 255.255.255.0

interface Serial0/1
tro
ip address 155.1.13.1 255.255.255.0
ge
!
router eigrp 2
network 155.1.13.1 0.0.0.0
no auto-summary
!
z@

router bgp 2
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.23.2 remote-as 2
neighbor 155.1.146.4 remote-as 3
!
e

address-family ipv4
neighbor 155.1.13.3 activate
neighbor 155.1.13.3 next-hop-self
qu

neighbor 155.1.23.2 activate


neighbor 155.1.23.2 next-hop-self
neighbor 155.1.146.4 activate
neighbor 155.1.146.4 capability orf prefix-list receive
az

R2:
interface FastEthernet0/0
ip address 192.10.1.2 255.255.255.0
.bl

!
interface Serial0/0
encapsulation frame-relay
!
ue

interface Serial0/0.1 point-to-point


ip address 155.1.0.2 255.255.255.0
frame-relay interface-dlci 205
!
interface Serial0/1
riq

ip address 155.1.23.2 255.255.255.0


!
router eigrp 2
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 94 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

network 155.1.23.2 0.0.0.0


no auto-summary
!
router bgp 2
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self

om
neighbor 155.1.23.3 remote-as 2
neighbor 155.1.23.3 next-hop-self

R3:
interface Ethernet0/0
ip address 155.1.37.3 255.255.255.0

s.c
!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!

nic
interface Serial1/3
ip address 155.1.23.3 255.255.255.0
clockrate 64000
!
router eigrp 2
network 155.1.13.3 0.0.0.0

!
network 155.1.23.3 0.0.0.0
no auto-summary

router bgp 2
tro
network 155.1.37.0 mask 255.255.255.0
ge
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.23.2 remote-as 2

R4:
z@

interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
e

!
router bgp 3
neighbor 155.1.146.1 remote-as 2
qu

!
address-family ipv4
neighbor 155.1.146.1 activate
neighbor 155.1.146.1 capability orf prefix-list send
az

neighbor 155.1.146.1 prefix-list DENY_VLAN5 in


network 204.12.1.0
exit-address-family
.bl

R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
ue

frame-relay map ip 155.1.0.2 502 broadcast


!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
riq

router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.2 remote-as 2
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 95 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Verification

Rack1R3#ping 155.1.5.5 source 155.1.37.3

om
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!

s.c
Success rate is 100 percent (5/5), round-trip min/avg/max =
84/86/88 ms

Rack1R3#ping 204.12.1.4 source 155.1.37.3

nic
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 204.12.1.4, timeout is 2
seconds:
Packet sent with a source address of 155.1.37.3
!!!!!

28/30/32 ms

Rack1R4#ping 155.1.5.5 source 204.12.1.4


tro
Success rate is 100 percent (5/5), round-trip min/avg/max =
ge
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 155.1.5.5, timeout is 2
seconds:
Packet sent with a source address of 204.12.1.4
z@

.....
Success rate is 0 percent (0/5)

Rack1R1#show ip bgp neighbors 155.1.146.4 advertised-routes


BGP table version is 4, local router ID is 150.1.1.1
Status codes: s suppressed, d damped, h history, * valid, >
e

best, i - internal,
r RIB-failure, S Stale
qu

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
*>i155.1.37.0/24 155.1.13.3 0 100
az

0 i

Rack1R1#show ip bgp
.bl

BGP table version is 4, local router ID is 150.1.1.1


Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
ue

Network Next Hop Metric LocPrf


Weight Path
*>i155.1.5.0/24 155.1.23.2 0 100
riq

0 1 i
*>i155.1.37.0/24 155.1.13.3 0 100
0 i
*> 204.12.1.0 155.1.146.4 0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 96 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

0 3 i

Rack1R2#show ip bgp
BGP table version is 4, local router ID is 150.1.2.2
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale

om
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.5.0/24 155.1.0.5 0
0 1 i

s.c
*>i155.1.37.0/24 155.1.23.3 0 100
0 i
*>i204.12.1.0 155.1.13.1 0 100
0 3 i

Rack1R3#show ip bgp

nic
BGP table version is 4, local router ID is 150.1.3.3
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network
Weight Path
*>i155.1.5.0/24
0 1 i
Next Hop

155.1.23.2
tro
Metric LocPrf

0 100
ge
*> 155.1.37.0/24 0.0.0.0 0
32768 i
*>i204.12.1.0 155.1.13.1 0 100
0 3 i
z@

Rack1R4#show ip bgp
BGP table version is 17, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
e

Network Next Hop Metric LocPrf


qu

Weight Path
*> 155.1.37.0/24 155.1.146.1
0 2 i
*> 204.12.1.0 0.0.0.0 0
32768 i
az

Rack1R5#show ip bgp
BGP table version is 14, local router ID is 150.1.5.5
Status codes: s suppressed, d damped, h history, * valid, >
.bl

best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
ue

Network Next Hop Metric LocPrf


Weight Path
*> 155.1.5.0/24 0.0.0.0 0
32768 i
*> 155.1.37.0/24 155.1.0.2
riq

0 2 i
*> 204.12.1.0 155.1.0.2
0 2 3 i
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 97 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Recommended Reading

om
BGP Prefix-Based Outbound Route Filtering

s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 98 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Aggregation

Objective: Configure AS 2 so that AS 1 sees an aggregate route representing the


10.0.0.0/16, 10.1.0.0/16, 10.2.0.0/16, and 10.3.0.0/16 networks

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 99 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure BGP on R1, R3, R4, and R5 per the diagram
R1 should peer with R3 and R4
R5 should peer with R3 and R4

om
Advertise VLAN 5 and 43 into BGP on R5 and R4 respectively
Create the Loopback networks 10.0.0.1/16 and 10.1.0.1/16 on R1 and advertise
them into BGP
Create the Loopback networks 10.2.0.1/16 and 10.3.0.1/16 on R3 and advertise

s.c
them into BGP
Configure BGP aggregation on R1 for all four of these networks

Final Configuration

nic
R1:
interface Loopback0
ip address 10.0.0.1 255.255.0.0
!
interface Loopback1

!
ip address 10.1.0.1 255.255.0.0

interface FastEthernet0/0
tro
ip address 155.1.146.1 255.255.255.0
ge
!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
z@

router bgp 2
network 10.0.0.0 mask 255.255.0.0
network 10.1.0.0 mask 255.255.0.0
aggregate-address 10.0.0.0 255.252.0.0
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
e

neighbor 155.1.146.4 remote-as 1


qu

R3:
interface Loopback0
ip address 10.2.0.1 255.255.0.0
!
az

interface Loopback1
ip address 10.3.0.1 255.255.0.0
!
interface Serial1/0
encapsulation frame-relay
.bl

!
interface Serial1/0.1 point-to-point
ip address 155.1.0.3 255.255.255.0
frame-relay interface-dlci 305
ue

!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
riq

router bgp 2
network 10.2.0.0 mask 255.255.0.0
network 10.3.0.0 mask 255.255.0.0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 100 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

neighbor 155.1.13.1 remote-as 2


neighbor 155.1.13.1 next-hop-self
neighbor 155.1.0.5 remote-as 1

R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0

om
!
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
!
router bgp 1
network 204.12.1.0

s.c
neighbor 155.1.146.1 remote-as 2
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self

R5:

nic
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!
interface Ethernet0/1

!
ip address 155.1.5.5 255.255.255.0

router bgp 1
tro
network 155.1.5.0 mask 255.255.255.0
ge
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
neighbor 155.1.45.4 next-hop-self
z@

Verification

Rack1R1#show ip bgp
e

BGP table version is 8, local router ID is 10.1.0.1


Status codes: s suppressed, d damped, h history, * valid, >
qu

best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


az

Weight Path
*> 10.0.0.0/16 0.0.0.0 0
32768 i
*> 10.0.0.0/14 0.0.0.0
.bl

32768 i
*> 10.1.0.0/16 0.0.0.0 0
32768 i
*>i10.2.0.0/16 155.1.13.3 0 100
0 i
ue

*>i10.3.0.0/16 155.1.13.3 0 100


0 i
* i155.1.5.0/24 155.1.13.3 0 100
0 1 i
riq

*> 155.1.146.4
0 1 i
* i204.12.1.0 155.1.13.3 0 100
0 1 i
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 101 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

*> 155.1.146.4 0
0 1 i

Rack1R3#show ip bgp
BGP table version is 10, local router ID is 10.3.0.1
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,

om
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
*>i10.0.0.0/16 155.1.13.1 0 100

s.c
0 i
*>i10.0.0.0/14 155.1.13.1 0 100
0 i
*>i10.1.0.0/16 155.1.13.1 0 100
0 i

nic
*> 10.2.0.0/16 0.0.0.0 0
32768 i
*> 10.3.0.0/16 0.0.0.0 0
32768 i
*> 155.1.5.0/24 155.1.0.5 0
0 1 i
* i
0 1 i
*> 204.12.1.0
0 1 i
155.1.13.1

155.1.0.5
tro 0 100

* i 155.1.13.1 0 100
ge
0 1 i

Rack1R4#show ip bgp
BGP table version is 8, local router ID is 150.1.4.4
z@

Status codes: s suppressed, d damped, h history, * valid, >


best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


e

Weight Path
* i10.0.0.0/16 155.1.45.5 0 100
qu

0 2 i
*> 155.1.146.1 0
0 2 i
* i10.0.0.0/14 155.1.45.5 0 100
0 2 i
az

*> 155.1.146.1 0
0 2 i
* i10.1.0.0/16 155.1.45.5 0 100
0 2 i
.bl

*> 155.1.146.1 0
0 2 i
* i10.2.0.0/16 155.1.45.5 0 100
0 2 i
*> 155.1.146.1
ue

0 2 i
* i10.3.0.0/16 155.1.45.5 0 100
0 2 i
*> 155.1.146.1
riq

0 2 i
*>i155.1.5.0/24 155.1.45.5 0 100
0 i
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 102 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

*> 204.12.1.0 0.0.0.0 0


32768 i

Rack1R5#show ip bgp
BGP table version is 13, local router ID is 150.1.5.5
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,

om
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
*> 10.0.0.0/16 155.1.0.3

s.c
0 2 i
* i 155.1.45.4 0 100
0 2 i
*> 10.0.0.0/14 155.1.0.3
0 2 i
* i 155.1.45.4 0 100

nic
0 2 i
*> 10.1.0.0/16 155.1.0.3
0 2 i
* i 155.1.45.4 0 100
0 2 i
*> 10.2.0.0/16
0 2 i
* i
0 2 i
*> 10.3.0.0/16
155.1.0.3

155.1.45.4

155.1.0.3
tro 0

0
100
ge
0 2 i
* i 155.1.45.4 0 100
0 2 i
*> 155.1.5.0/24 0.0.0.0 0
32768 i
z@

*>i204.12.1.0 155.1.45.4 0 100


0 i
e
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 103 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Aggregation Summary Only

Objective: Configure AS 2 so that AS 1 sees an aggregate route representing the


10.0.0.0/16, 10.1.0.0/16, 10.2.0.0/16, and 10.3.0.0/16 networks but does
not see the subnets that make up the aggregate

om
s.c
nic
tro
ge
z@

Directions

Configure the topology per the diagram


Configure BGP on R1, R3, R4, and R5 per the diagram
R1 should peer with R3 and R4
e

R5 should peer with R3 and R4



qu

Advertise VLAN 5 and 43 into BGP on R5 and R4 respectively


Create the Loopback networks 10.0.0.1/16 and 10.1.0.1/16 on R1 and advertise
them into BGP
Create the Loopback networks 10.2.0.1/16 and 10.3.0.1/16 on R3 and advertise
az

them into BGP


Configure BGP aggregation on R1 and R3 for all four of these networks using the
summary-only keyword
.bl

Final Configuration
ue

R1:
interface Loopback0
ip address 10.0.0.1 255.255.0.0
!
riq

interface Loopback1
ip address 10.1.0.1 255.255.0.0
!
interface FastEthernet0/0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 104 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

ip address 155.1.146.1 255.255.255.0


!
interface Serial0/1
ip address 155.1.13.1 255.255.255.0
!
router bgp 2
network 10.0.0.0 mask 255.255.0.0

om
network 10.1.0.0 mask 255.255.0.0
aggregate-address 10.0.0.0 255.252.0.0 summary-only
neighbor 155.1.13.3 remote-as 2
neighbor 155.1.13.3 next-hop-self
neighbor 155.1.146.4 remote-as 1

s.c
R3:
interface Loopback0
ip address 10.2.0.1 255.255.0.0
!
interface Loopback1

nic
ip address 10.3.0.1 255.255.0.0
!
interface Serial1/0
encapsulation frame-relay
!
interface Serial1/0.1 point-to-point

!
ip address 155.1.0.3 255.255.255.0
frame-relay interface-dlci 305

interface Serial1/2
tro
ip address 155.1.13.3 255.255.255.0
ge
clockrate 64000
!
router bgp 2
network 10.2.0.0 mask 255.255.0.0
z@

network 10.3.0.0 mask 255.255.0.0


aggregate-address 10.0.0.0 255.252.0.0 summary-only
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.0.5 remote-as 1
e

R3:
interface Ethernet0/0
qu

ip address 204.12.1.4 255.255.255.0


!
interface Ethernet0/1
ip address 155.1.146.4 255.255.255.0
az

!
router bgp 1
network 204.12.1.0
neighbor 155.1.146.1 remote-as 2
.bl

neighbor 155.1.45.5 remote-as 1


neighbor 155.1.45.5 next-hop-self

R5:
ue

interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!
riq

interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 105 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
neighbor 155.1.45.4 next-hop-self

om
Verification
Rack1R1#show ip bgp
BGP table version is 14, local router ID is 10.1.0.1
Status codes: s suppressed, d damped, h history, * valid, >

s.c
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf

nic
Weight Path
s> 10.0.0.0/16 0.0.0.0 0
32768 i
* i10.0.0.0/14 155.1.13.3 0 100
0 i
*> 0.0.0.0
32768 i
s> 10.1.0.0/16
32768 i
* i155.1.5.0/24
0.0.0.0

155.1.13.3
tro 0

0 100
0 1 i
ge
*> 155.1.146.4
0 1 i
* i204.12.1.0 155.1.13.3 0 100
0 1 i
z@

*> 155.1.146.4 0
0 1 i

Rack1R3#show ip bgp
BGP table version is 15, local router ID is 10.3.0.1
Status codes: s suppressed, d damped, h history, * valid, >
e

best, i - internal,
r RIB-failure, S Stale
qu

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
*> 10.0.0.0/14 0.0.0.0
az

32768 i
* i 155.1.13.1 0 100
0 i
s> 10.2.0.0/16 0.0.0.0 0
.bl

32768 i
s> 10.3.0.0/16 0.0.0.0 0
32768 i
*> 155.1.5.0/24 155.1.0.5 0
0 1 i
ue

* i 155.1.13.1 0 100
0 1 i
*> 204.12.1.0 155.1.0.5
0 1 i
riq

* i 155.1.13.1 0 100
0 1 i

Rack1R4#show ip bgp
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 106 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP table version is 16, local router ID is 150.1.4.4


Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf

om
Weight Path
* i10.0.0.0/14 155.1.45.5 0 100
0 2 i
*> 155.1.146.1 0
0 2 i
*>i155.1.5.0/24 155.1.45.5 0 100

s.c
0 i
*> 204.12.1.0 0.0.0.0 0
32768 i

Rack1R5#show ip bgp
BGP table version is 18, local router ID is 150.1.5.5

nic
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network
Weight Path
*> 10.0.0.0/14
0 2 i
* i
Next Hop

155.1.0.3

155.1.45.4
tro
Metric LocPrf

0 100
ge
0 2 i
*> 155.1.5.0/24 0.0.0.0 0
32768 i
*>i204.12.1.0 155.1.45.4 0 100
0 i
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 107 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Aggregation Suppress Map

Objective: Configure AS 2 so that AS 1 sees an aggregate route representing the


10.0.0.0/16, 10.1.0.0/16, 10.2.0.0/16, and 10.3.0.0/16 networks along with
the subnets 10.0.0.0/16 and 10.3.0.0/16

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 108 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure BGP on R1, R3, R4, and R5 per the diagram
R1 should peer with R3 and R4
R5 should peer with R3 and R4

om
Advertise VLAN 5 and 43 into BGP on R5 and R4 respectively
Create the Loopback networks 10.0.0.1/16 and 10.1.0.1/16 on R1 and advertise
them into BGP
Create the Loopback networks 10.2.0.1/16 and 10.3.0.1/16 on R3 and advertise

s.c
them into BGP
Configure BGP aggregation on R1 and R3 for all four of these networks
R1 should suppress only the 10.1.0.0/16 network
R3 should suppress only the 10.2.0.0/16 network

nic
Final Configuration

R1:
interface Loopback0

!
ip address 10.0.0.1 255.255.0.0

interface Loopback1
tro
ip address 10.1.0.1 255.255.0.0
ge
!
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
z@

ip address 155.1.13.1 255.255.255.0


!
router bgp 2
network 10.0.0.0 mask 255.255.0.0
network 10.1.0.0 mask 255.255.0.0
aggregate-address 10.0.0.0 255.252.0.0 suppress-map
e

SUPPRESS
neighbor 155.1.13.3 remote-as 2
qu

neighbor 155.1.13.3 next-hop-self


neighbor 155.1.146.4 remote-as 1
!
ip prefix-list 10.1.0.0 seq 5 permit 10.1.0.0/16
az

!
route-map SUPPRESS permit 10
match ip address prefix-list 10.1.0.0
.bl

R3:
interface Loopback0
ip address 10.2.0.1 255.255.0.0
!
ue

interface Loopback1
ip address 10.3.0.1 255.255.0.0
!
interface Serial1/0
encapsulation frame-relay
riq

!
interface Serial1/0.1 point-to-point
ip address 155.1.0.3 255.255.255.0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 109 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

frame-relay interface-dlci 305


!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
router bgp 2

om
network 10.2.0.0 mask 255.255.0.0
network 10.3.0.0 mask 255.255.0.0
aggregate-address 10.0.0.0 255.252.0.0 suppress-map
SUPPRESS
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self

s.c
neighbor 155.1.0.5 remote-as 1
!
ip prefix-list 10.2.0.0 seq 5 permit 10.2.0.0/16
!
route-map SUPPRESS permit 10
match ip address prefix-list 10.2.0.0

nic
R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1

!
ip address 155.1.146.4 255.255.255.0

router bgp 1
tro
network 204.12.1.0
ge
neighbor 155.1.146.1 remote-as 2
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self
z@

R5:
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
e

!
interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
qu

!
router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
az

neighbor 155.1.45.4 remote-as 1


neighbor 155.1.45.4 next-hop-self
.bl

Verification

Rack1R1#show ip bgp
ue

BGP table version is 9, local router ID is 10.1.0.1


Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
riq

Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


Weight Path
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 110 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

*> 10.0.0.0/16 0.0.0.0 0


32768 i
* i10.0.0.0/14 155.1.13.3 0 100
0 i
*> 0.0.0.0
32768 i
s> 10.1.0.0/16 0.0.0.0 0

om
32768 i
*>i10.3.0.0/16 155.1.13.3 0 100
0 i
* i155.1.5.0/24 155.1.13.3 0 100
0 1 i
*> 155.1.146.4

s.c
0 1 i
* i204.12.1.0 155.1.13.3 0 100
0 1 i
*> 155.1.146.4 0
0 1 i

nic
Rack1R3#show ip bgp
BGP table version is 9, local router ID is 10.3.0.1
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network
Weight Path
*>i10.0.0.0/16
Next Hop

155.1.13.1
tro
Metric LocPrf

0 100
ge
0 i
*> 10.0.0.0/14 0.0.0.0
32768 i
* i 155.1.13.1 0 100
0 i
z@

s> 10.2.0.0/16 0.0.0.0 0


32768 i
*> 10.3.0.0/16 0.0.0.0 0
32768 i
* i155.1.5.0/24 155.1.13.1 0 100
0 1 i
e

*> 155.1.0.5 0
0 1 i
qu

* i204.12.1.0 155.1.13.1 0 100


0 1 i
*> 155.1.0.5
0 1 i
az

Rack1R4#show ip bgp
BGP table version is 28, local router ID is 150.1.4.4
Status codes: s suppressed, d damped, h history, * valid, >
best, i - internal,
.bl

r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf


ue

Weight Path
* i10.0.0.0/16 155.1.45.5 0 100
0 2 i
*> 155.1.146.1 0
0 2 i
riq

* i10.0.0.0/14 155.1.45.5 0 100


0 2 i
*> 155.1.146.1 0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 111 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

0 2 i
*> 10.3.0.0/16 155.1.146.1
0 2 i
* i 155.1.45.5 0 100
0 2 i
*>i155.1.5.0/24 155.1.45.5 0 100
0 i

om
*> 204.12.1.0 0.0.0.0 0
32768 i

Rack1R5#show ip bgp
BGP table version is 27, local router ID is 150.1.5.5
Status codes: s suppressed, d damped, h history, * valid, >

s.c
best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf

nic
Weight Path
*> 10.0.0.0/16 155.1.0.3
0 2 i
* i 155.1.45.4 0 100
0 2 i
*> 10.0.0.0/14 155.1.0.3 0
0 2 i
* i
0 2 i
* i10.3.0.0/16
155.1.45.4

155.1.45.4
tro 0

0
100

100
0 2 i
ge
*> 155.1.0.3 0
0 2 i
*> 155.1.5.0/24 0.0.0.0 0
32768 i
z@

*>i204.12.1.0 155.1.45.4 0 100


0 i

Rack1R4#show ip route bgp


155.1.0.0/24 is subnetted, 3 subnets
B 155.1.5.0 [200/0] via 155.1.45.5, 01:01:24
e

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks


B 10.3.0.0/16 [20/0] via 155.1.146.1, 00:03:51
qu

B 10.0.0.0/16 [20/0] via 155.1.146.1, 00:05:04


B 10.0.0.0/14 [20/0] via 155.1.146.1, 00:05:04

Rack1R5#show ip route bgp


B 204.12.1.0/24 [200/0] via 155.1.45.4, 01:01:30
az

10.0.0.0/8 is variably subnetted, 3 subnets, 2 masks


B 10.3.0.0/16 [20/0] via 155.1.0.3, 00:03:57
B 10.0.0.0/16 [20/0] via 155.1.0.3, 00:03:57
B 10.0.0.0/14 [20/0] via 155.1.0.3, 00:03:57
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 112 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Aggregation Unsuppress Map

Objective: Configure AS 2 so that AS 1 sees an aggregate route representing the


10.0.0.0/16, 10.1.0.0/16, 10.2.0.0/16, and 10.3.0.0/16 networks. Traffic for
10.0.0.1 should use the link between R1 and R4 while traffic for 10.3.0.1

om
should use the link between R3 and R5

s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 113 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure BGP on R1, R3, R4, and R5 per the diagram
R1 should peer with R3 and R4
R5 should peer with R3 and R4

om
Advertise VLAN 5 and 43 into BGP on R5 and R4 respectively
Create the Loopback networks 10.0.0.1/16 and 10.1.0.1/16 on R1 and advertise
them into BGP
Create the Loopback networks 10.2.0.1/16 and 10.3.0.1/16 on R3 and advertise

s.c
them into BGP
Configure BGP aggregation on R1 and R3 for all four of these networks using the
summary-only keyword
R1 should unsuppress the 10.0.0.0/16 network to R4
R3 should unsuppress the 10.3.0.0/16 network to R5

nic
Final Configuration
R1:
interface Loopback0

!
ip address 10.0.0.1 255.255.0.0

interface Loopback1
ip address 10.1.0.1 255.255.0.0
tro
!
ge
interface FastEthernet0/0
ip address 155.1.146.1 255.255.255.0
!
interface Serial0/1
z@

ip address 155.1.13.1 255.255.255.0


!
router bgp 2
network 10.0.0.0 mask 255.255.0.0
network 10.1.0.0 mask 255.255.0.0
aggregate-address 10.0.0.0 255.252.0.0 summary-only
e

neighbor 155.1.13.3 remote-as 2


neighbor 155.1.13.3 next-hop-self
qu

neighbor 155.1.146.4 remote-as 1


neighbor 155.1.146.4 unsuppress-map UNSUPPRESS
!
ip prefix-list 10.0.0.0 seq 5 permit 10.0.0.0/16
!
az

route-map UNSUPPRESS permit 10


match ip address prefix-list 10.0.0.0
.bl

R3:
interface Loopback0
ip address 10.2.0.1 255.255.0.0
!
interface Loopback1
ue

ip address 10.3.0.1 255.255.0.0


!
interface Serial1/0
encapsulation frame-relay
riq

!
interface Serial1/0.1 point-to-point
ip address 155.1.0.3 255.255.255.0
frame-relay interface-dlci 305
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 114 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

!
interface Serial1/2
ip address 155.1.13.3 255.255.255.0
clockrate 64000
!
router bgp 2
network 10.2.0.0 mask 255.255.0.0

om
network 10.3.0.0 mask 255.255.0.0
aggregate-address 10.0.0.0 255.252.0.0 summary-only
neighbor 155.1.13.1 remote-as 2
neighbor 155.1.13.1 next-hop-self
neighbor 155.1.0.5 remote-as 1
neighbor 155.1.0.5 unsuppress-map UNSUPPRESS

s.c
!
ip prefix-list 10.3.0.0 seq 5 permit 10.3.0.0/16
!
route-map UNSUPPRESS permit 10
match ip address prefix-list 10.3.0.0

nic
R4:
interface Ethernet0/0
ip address 204.12.1.4 255.255.255.0
!
interface Ethernet0/1

!
ip address 155.1.146.4 255.255.255.0

router bgp 1
network 204.12.1.0
tro
neighbor 155.1.146.1 remote-as 2
ge
neighbor 155.1.45.5 remote-as 1
neighbor 155.1.45.5 next-hop-self

R5:
z@

interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.2 502 broadcast
!
e

interface Ethernet0/1
ip address 155.1.5.5 255.255.255.0
!
qu

router bgp 1
network 155.1.5.0 mask 255.255.255.0
neighbor 155.1.0.3 remote-as 2
neighbor 155.1.45.4 remote-as 1
az

neighbor 155.1.45.4 next-hop-self


.bl

Verification
Rack1R5#trace 10.0.0.1 source 155.1.5.5
Type escape sequence to abort.
Tracing the route to 10.0.0.1
ue

1 155.1.45.4 16 msec 12 msec 16 msec


2 155.1.146.1 16 msec * 16 msec
Rack1R5#trace 10.3.0.1 source 155.1.5.5
Type escape sequence to abort.
riq

Tracing the route to 10.3.0.1

1 155.1.0.3 32 msec * 28 msec


Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 115 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Rack1R4#trace 10.0.0.1 source 204.12.1.4

Type escape sequence to abort.


Tracing the route to 10.0.0.1
1 155.1.146.1 4 msec * 0 msec
Rack1R4#trace 10.3.0.1 source 204.12.1.4

om
Type escape sequence to abort.
Tracing the route to 10.3.0.1
1 155.1.45.5 16 msec 16 msec 16 msec
2 155.1.0.3 40 msec * 40 msec
Rack1R1#show ip bgp

s.c
BGP table version is 9, local router ID is 10.1.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
s> 10.0.0.0/16 0.0.0.0 0 32768 i

nic
*> 10.0.0.0/14 0.0.0.0 32768 i
* i 155.1.13.3 0 100 0 i
s> 10.1.0.0/16 0.0.0.0 0 32768 i
* i155.1.5.0/24 155.1.13.3 0 100 0 1 i
*> 155.1.146.4 0 1 i
* i204.12.1.0
*>
155.1.13.3
155.1.146.4
0
0
tro100

Rack1R1#show ip bgp neighbors 155.1.146.4 advertised-routes


0 1 i
0 1 i

BGP table version is 9, local router ID is 10.1.0.1


ge
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
z@

s> 10.0.0.0/16 0.0.0.0 0 32768 i


*> 10.0.0.0/14 0.0.0.0 32768 i

Rack1R3#show ip bgp
BGP table version is 14, local router ID is 10.3.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
e

r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
qu

Network Next Hop Metric LocPrf Weight Path


* i10.0.0.0/14 155.1.13.1 0 100 0 i
*> 0.0.0.0 32768 i
s> 10.2.0.0/16 0.0.0.0 0 32768 i
az

s> 10.3.0.0/16 0.0.0.0 0 32768 i


* i155.1.5.0/24 155.1.13.1 0 100 0 1 i
*> 155.1.0.5 0 0 1 i
* i204.12.1.0 155.1.13.1 0 100 0 1 i
.bl

*> 155.1.0.5 0 1 i

Rack1R3#show ip bgp neighbors 155.1.0.5 advertised-routes


BGP table version is 14, local router ID is 10.3.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
ue

r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0/14 0.0.0.0 32768 i
riq

s> 10.3.0.0/16 0.0.0.0 0 32768 i

Rack1R4#show ip bgp
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 116 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP table version is 6, local router ID is 150.1.4.4


Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0/16 155.1.146.1 0 0 2 i
* i10.0.0.0/14 155.1.45.5 0 100 0 2 i

om
*> 155.1.146.1 0 0 2 i
*>i10.3.0.0/16 155.1.45.5 0 100 0 2 i
*>i155.1.5.0/24 155.1.45.5 0 100 0 i
*> 204.12.1.0 0.0.0.0 0 32768 i

Rack1R5#show ip bgp

s.c
BGP table version is 6, local router ID is 150.1.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*>i10.0.0.0/16 155.1.45.4 0 100 0 2 i

nic
* i10.0.0.0/14 155.1.45.4 0 100 0 2 i
*> 155.1.0.3 0 0 2 i
*> 10.3.0.0/16 155.1.0.3 0 0 2 i
*> 155.1.5.0/24 0.0.0.0 0 32768 i
*>i204.12.1.0 155.1.45.4 0 100 0 i

tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 117 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Aggregation AS-Set

Objective: Configure R5 to advertise the aggregate 150.X.0.0/21 to R3 without any


specific subnet information. R3 should know that this aggregate is
comprised of prefixes that passed through ASs 1, 2, and 5

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 118 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure BGP on R1, R2, R3, and R5 per the diagram
R5 should peer with R1, R2, and R3
Create the Loopback 150.X.1.1/24 on R1 and advertise it into BGP

om
Create the Loopback 150.X.2.2/24 on R2 and advertise it into BGP
Create the Loopback 150.X.5.5/24 on R5 and advertise it into BGP
Configure the BGP aggregate 150.X.0.0/21 on R5
Include the originating AS-Path information with this aggregate

s.c
Final Configuration

R1:

nic
interface Loopback0
ip address 150.1.1.1 255.255.0.0
!
interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point

!
ip address 155.1.0.1 255.255.255.0
frame-relay interface-dlci 105
tro
ge
router bgp 1
network 150.1.1.0 mask 255.255.255.0
neighbor 155.1.0.5 remote-as 5
z@

R2:
interface Loopback0
ip address 150.1.2.2 255.255.0.0
!
interface Serial0/0
encapsulation frame-relay
e

!
interface Serial0/0.1 point-to-point
qu

ip address 155.1.0.2 255.255.255.0


frame-relay interface-dlci 205
!
router bgp 2
network 150.1.2.0 mask 255.255.255.0
az

neighbor 155.1.0.5 remote-as 5

R3:
.bl

interface Serial1/0
encapsulation frame-relay
!
interface Serial1/0.1 point-to-point
ip address 155.1.0.3 255.255.255.0
ue

frame-relay interface-dlci 305


!
router bgp 3
neighbor 155.1.0.5 remote-as 5
riq

R5:
interface Loopback0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 119 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

ip address 150.1.5.5 255.255.0.0


!
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay
frame-relay map ip 155.1.0.1 501 broadcast
frame-relay map ip 155.1.0.2 502 broadcast

om
frame-relay map ip 155.1.0.3 503 broadcast
!
router bgp 5
network 150.1.5.0 mask 255.255.255.0
aggregate-address 150.1.0.0 255.255.248.0 as-set summary-only
neighbor 155.1.0.1 remote-as 1

s.c
neighbor 155.1.0.2 remote-as 2
neighbor 155.1.0.3 remote-as 3

Verification

nic
Rack1R3#show ip bgp
BGP table version is 8, local router ID is 10.3.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

Network
*> 150.1.0.0/21
Next Hop
155.1.0.5
tro
Metric LocPrf Weight Path
0 0 5 {1,2} i
ge
Rack1R5#show ip bgp
BGP table version is 8, local router ID is 150.1.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
z@

Network Next Hop Metric LocPrf Weight Path


*> 150.1.0.0/21 0.0.0.0 100 32768 {1,2} i
s> 150.1.1.0/24 155.1.0.1 0 0 1 i
s> 150.1.2.0/24 155.1.0.2 0 0 2 i
s> 150.1.5.0/24 0.0.0.0 0 32768 i
e
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 120 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Aggregation Advertise Map

Objective: Configure R5 to advertise the aggregate 150.X.0.0/21 to R3 without any


specific subnet information. This aggregate should not include the prefix
150.X.3.0/24, and R3 should know that the aggregate is comprised of

om
prefixes that passed through ASs 1, 2, and 5

s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 121 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure BGP on R1, R2, R3, and R5 per the diagram
R5 should peer with R1, R2, and R3
Create the Loopback 150.X.1.1/24 on R1 and advertise it into BGP

om
Create the Loopback 150.X.2.2/24 on R2 and advertise it into BGP
Create the Loopback 150.X.3.3/24 on R3 and advertise it into BGP
Create the Loopback 150.X.5.5/24 on R5 and advertise it into BGP
Configure the BGP aggregate 150.X.0.0/21 on R5

s.c
Use the advertise-map option to exclude the prefix 150.X.3.0/24 from this
aggregate
Include the originating AS-Path information with this aggregate

nic
Final Configuration

R1:
interface Loopback0

!
ip address 150.1.1.1 255.255.0.0

interface Serial0/0

!
encapsulation frame-relay
tro
interface Serial0/0.1 point-to-point
ge
ip address 155.1.0.1 255.255.255.0
frame-relay interface-dlci 105
!
router bgp 1
z@

network 150.1.1.0 mask 255.255.255.0


neighbor 155.1.0.5 remote-as 5

R2:
interface Loopback0
e

ip address 150.1.2.2 255.255.0.0


!
qu

interface Serial0/0
encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 155.1.0.2 255.255.255.0
az

frame-relay interface-dlci 205


!
router bgp 2
network 150.1.2.0 mask 255.255.255.0
.bl

neighbor 155.1.0.5 remote-as 5

R3:
interface Loopback0
ue

ip address 150.1.3.3 255.255.255.0


!
interface Serial1/0
encapsulation frame-relay
!
riq

interface Serial1/0.1 point-to-point


ip address 155.1.0.3 255.255.255.0
frame-relay interface-dlci 305
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 122 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

!
router bgp 3
network 150.1.3.0 mask 255.255.255.0
neighbor 155.1.0.5 remote-as 5

R5:

om
interface Loopback0
ip address 150.1.5.5 255.255.0.0
!
interface Serial0/0
ip address 155.1.0.5 255.255.255.0
encapsulation frame-relay

s.c
frame-relay map ip 155.1.0.1 501 broadcast
frame-relay map ip 155.1.0.2 502 broadcast
frame-relay map ip 155.1.0.3 503 broadcast
!
router bgp 5

nic
network 150.1.5.0 mask 255.255.255.0
aggregate-address 150.1.0.0 255.255.248.0 as-set summary-only advertise-map
ADVERTISE-MAP
neighbor 155.1.0.1 remote-as 1
neighbor 155.1.0.2 remote-as 2
neighbor 155.1.0.3 remote-as 3
!
tro
ip prefix-list R3_LOOPBACK seq 5 permit 150.1.3.0/24
!
route-map ADVERTISE-MAP deny 10
match ip address prefix-list R3_LOOPBACK
ge
!
route-map ADVERTISE-MAP permit 20
z@

Verification

Rack1R3#show ip bgp
BGP table version is 10, local router ID is 10.3.0.1
e

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,


r RIB-failure, S Stale
qu

Origin codes: i - IGP, e - EGP, ? - incomplete


Network Next Hop Metric LocPrf Weight Path
*> 150.1.0.0/21 155.1.0.5 0 0 5 {1,2} i
*> 150.1.3.0/24 0.0.0.0 0 32768 i
az

Rack1R5#show ip bgp
BGP table version is 11, local router ID is 150.1.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
.bl

Origin codes: i - IGP, e - EGP, ? - incomplete


Network Next Hop Metric LocPrf Weight Path
*> 150.1.0.0/21 0.0.0.0 100 32768 {1,2} i
s> 150.1.1.0/24 155.1.0.1 0 0 1 i
ue

s> 150.1.2.0/24 155.1.0.2 0 0 2 i


s> 150.1.3.0/24 155.1.0.3 0 0 3 i
s> 150.1.5.0/24 0.0.0.0 0 32768 i
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 123 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

BGP Allow AS In

Objective: Configure R5 to advertise the aggregate 150.X.0.0/21 without any specific


subnet information. Devices receiving the aggregate should know that it is
comprised of prefixes that passed through ASs 1, 2, 3, and 5. Ensure that
R1, R2, and R3 are able to install this aggregate in their BGP tables

om
s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 124 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

Directions

Configure the topology per the diagram


Configure BGP on R1, R2, R3, and R5 per the diagram
R5 should peer with R1, R2, and R3
Create the Loopback 150.X.1.1/24 on R1 and advertise it into BGP

om
Create the Loopback 150.X.2.2/24 on R2 and advertise it into BGP
Create the Loopback 150.X.3.3/24 on R3 and advertise it into BGP
Create the Loopback 150.X.5.5/24 on R5 and advertise it into BGP
Configure the BGP aggregate 150.X.0.0/21 on R5

s.c
Include the originating AS-Path information with this aggregate
Configure R1, R2, and R3 to accept prefixes with their own AS in the path in
order to receive the aggregate

nic
Final Configuration
R1:
interface Loopback0
ip address 150.1.1.1 255.255.0.0
!
interface Serial0/0

!
encapsulation frame-relay

interface Serial0/0.1 point-to-point


tro
ip address 155.1.0.1 255.255.255.0
ge
frame-relay interface-dlci 105
!
router bgp 1
network 150.1.1.0 mask 255.255.255.0
z@

neighbor 155.1.0.5 remote-as 5


neighbor 155.1.0.5 allowas-in 1

R2:
interface Loopback0
e

ip address 150.1.2.2 255.255.0.0


!
interface Serial0/0
qu

encapsulation frame-relay
!
interface Serial0/0.1 point-to-point
ip address 155.1.0.2 255.255.255.0
az

frame-relay interface-dlci 205


!
router bgp 2
network 150.1.2.0 mask 255.255.255.0
.bl

neighbor 155.1.0.5 remote-as 5


neighbor 155.1.0.5 allowas-in 1

R3:
ue

interface Loopback0
ip address 150.1.3.3 255.255.255.0
!
interface Serial1/0
riq

encapsulation frame-relay
!
interface Serial1/0.1 point-to-point
ip address 155.1.0.3 255.255.255.0
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 125 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

frame-relay interface-dlci 305


!
router bgp 3
network 150.1.3.0 mask 255.255.255.0
neighbor 155.1.0.5 remote-as 5
neighbor 155.1.0.5 allowas-in 1

R5:

om
interface Loopback0
ip address 150.1.5.5 255.255.0.0
!
interface Serial0/0
ip address 155.1.0.5 255.255.255.0

s.c
encapsulation frame-relay
frame-relay map ip 155.1.0.1 501 broadcast
frame-relay map ip 155.1.0.2 502 broadcast
frame-relay map ip 155.1.0.3 503 broadcast
!
router bgp 5

nic
network 150.1.5.0 mask 255.255.255.0
aggregate-address 150.1.0.0 255.255.248.0 as-set summary-only
neighbor 155.1.0.1 remote-as 1
neighbor 155.1.0.2 remote-as 2
neighbor 155.1.0.3 remote-as 3

Verification
tro
Rack1R1#show ip bgp
ge
BGP table version is 8, local router ID is 150.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
z@

Network Next Hop Metric LocPrf Weight Path


*> 150.1.0.0/21 155.1.0.5 0 0 5 {1,2,3} i
*> 150.1.1.0/24 0.0.0.0 0 32768 i

Rack1R2#show ip bgp
BGP table version is 7, local router ID is 150.1.2.2
e

Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,


r RIB-failure, S Stale
qu

Origin codes: i - IGP, e - EGP, ? - incomplete


Network Next Hop Metric LocPrf Weight Path
*> 150.1.0.0/21 155.1.0.5 0 0 5 {1,2,3} i
*> 150.1.2.0/24 0.0.0.0 0 32768 i
az

Rack1R3#show ip bgp
BGP table version is 11, local router ID is 10.3.0.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
.bl

Origin codes: i - IGP, e - EGP, ? - incomplete


Network Next Hop Metric LocPrf Weight Path
*> 150.1.0.0/21 155.1.0.5 0 0 5 {1,2,3} i
*> 150.1.3.0/24 0.0.0.0 0 32768 i
ue

Rack1R5#show ip bgp
BGP table version is 22, local router ID is 150.1.5.5
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
riq

Origin codes: i - IGP, e - EGP, ? - incomplete


Network Next Hop Metric LocPrf Weight Path
*> 150.1.0.0/21 0.0.0.0 100 32768 {1,2,3} i
s> 150.1.1.0/24 155.1.0.1 0 0 1 i
Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007
en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 126 -
CCIE Routing & Switching Lab Workbook Volume I Version 4.1

s> 150.1.2.0/24 155.1.0.2 0 0 2 i


s> 150.1.3.0/24 155.1.0.3 0 0 3 i
s> 150.1.5.0/24 0.0.0.0 0 32768 i

om


s.c
nic
tro
ge
e z@
qu
az
.bl
ue
riq

Accessed by ENRIQUE BLAZQUEZ from 192.33.238.6 at 03:38:52 Jul 09,2007


en

Copyright 2007 Internetwork Expert www.InternetworkExpert.com


- 127 -

You might also like