Professional Documents
Culture Documents
BGP Workbook
BGP Workbook
BGP Workbook
bJJill{j
JOOillr;)W @ill o©
'BG'P
'Workbook
www .noasolutions.com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 1
About the Author
Sikandar Shaik, a dual CCIE (RS/SP# 35012), is a highly experienced and extremely driven senior technical
instructor and network consultant. He has been training networking courses for more than 10 years, teaching on
a wide range of topics including Routing and Switching, Service Provider and Security (CCNA to CCIE). In
addition, he has been developing and updating the content for these courses. He has assisted many engineers in
passing out the lab examinations and securing certifications.
Sikandar Shaik is highly skilled at designing, planning, coordinating, maintaining, troubleshooting and
implementing changes to various aspects of multi-scaled, multi-platform, multi-protocol complex networks as
well as course development and instruction for a technical workforce in a varied networking environment. His
experience includes responsibilities ranging from operating and maintaining PC's and peripherals to network
control programs for multi-faceted data communication networks in LAN, MAN and WAN environments.
Sikandar Shaik has delivered instructor led trainings in several states in India as well as in abroad in countries like
China, Kenya and UAE. He has also worked as a Freelance Cisco Certified Instructor globally for Corporate
Major Clients.
Acknowledgment
First and foremost I would like to thank the Almighty for his continued blessings and for always being there for
me. You have given me the power and confidence to believe in myself and pursue my dreams. I could never
have done this without the faith I have in you. Secondly I would like to thank my family for understanding my
long nights at the computer. I have spent a lot of time on preparing workbooks and this workbook would not
have been possible without their support and encouragement. I would also like to recognize the cooperation of
my students who took my trainings and workbooks. I believe my workbooks have helped them in upskilling
themselves with respect to the subject and technologies and I will continue preparing workbooks for the
updated technology versions.
Shaik Gouse Moinuddin Sikandar
CCIE x 2 (RS/SP)
Feedback
Please send feedback if there are any issues with respect to the content of this workbook. I would also
appreciate suggestions from you which can improve this workbook further. Kindly send your feedback and
suggestions at info@noasolutions.com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 2
INDEX
BGP Concepts & Terminology..............................................................................................6
Types of ISP Connections 12
Options of BGP connecting to Internet.....................................................................................15
BGP Neighbors 17
LAB: Basic IBGP Peering 20
BGP Split Horizon Rule 24
LAB: IBGP Peering using loopbacks 27
Configuring BGP Authentication on Cisco IOS: 38
Peer groups 41
Lab - Peer Groups 42
Route reflector 46
Lab : route reflector 49
Lab: route reflector usinglooback 52
Lab : route reflector with two servers for redundancy..................................... 54
EBGP Configuration ................ .................. ...... ........................ .................. ... 59
BGP next hop behavior 60
LAB: Basic EBGP Configuration & Verify Next-hop Behavior 63
LAB : EBGP peering using Loopback Interfaces (using EBGP multihop): .... ... ... ..... 66
Synchronization rule: ......................................................................... 71
LAB: Verify BGP Synchronization Rule 73
BGP Attributes overview............................................................................ 80
AS-path /next-hop/Orgin attributes ............. ...... ........................ .................. ... 81
Weight Attribute.........................................................................................................................88
Lab: Using Weight Attribute 91
Clearing the BGP Session 99
Lab : Weight Attribute using Route-maps ...................................................... 102
Understanding In/out .... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ... ..... 105
Local Preference.............................................................................................................................. 109
Lab: Using Local Preference ....................................................................... 111
Lab : Local preference using Route-maps
118
BGP Path Selection Process
127
AS-Path prepending...................................................................................................................129
Lab: AS-path Prepending
134
Multi-Exit Discriminator (Metric) .............................................................
139
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 3
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
What we Learn
► Autonomous Systems.
► IGP & EGP
► Basic BGP features
► BGP's loop prevention mechanism
► When to use BGP
► When not to use BGP
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 6
BGP Autonomous
Systems
EGPs: BGP
!
Autonomous System 100 Autonomous System 200
IGP-EGP
EGPs: BGP
!
Autonomous System 100 Autonomous System 200
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 7
BGP Features
► Open Standard
► Exterior Gateway protocol
► Designed for Inter-AS Domain Routing
► Classless.
0
Support FLSM, VLSM, CIDR, auto and manual summary (BGP-4)
Path Vector
10.1.1.
0
"' 6
400
10 .1.1.0 10.1.1.0
AS65200 65300 6 AS 65300 S
00
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page
B
BGP - AS Path Advertisement
20.2.2.0
AS
65444
20.2.2.0 20.2.2.0
AS 65222 65333 AS 65333
65444 65444
► BGP is application layer protocol uses TCP for reliability , TCP port 179
► Metric = Attributes
► Administrative distance
20 External updates ( EBGP)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page
9
BGP's loop prevention mechanism
172.31.254 °"23
AS-PathEmpty
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page
1O
BGP's loop prevention mechanism
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 11
Types of ISP Connections
0
Single Homed
0
Dual-homed site
0
Multi-homing
0
Dual Multi-homed
Connecting to the Internet with BGP
0
Default route from provider(s)
0
Some routes + default route -
0
All routes (full table) -
► Single Homed
► Dual-homed site
► Multi-homing
► Dual Multi-homed
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 12
Single homed site
Dual-homed site
ASN80 ASN 1, ISP 1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 13
Multi-homing
Dual Multi-homed
► You can take multi-homing a step ASN80
ASN 1, ISP 1
further and be dual-multi-homed,
with two connections to multiple
ISPs.
► This gives the most redundancy.
► BGP is used with the ISPs and
can be used internally also.
ASN 1, ISP 1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 14
Connecting to the Internet
with BGP Route reception options:
AS 64520 172.16.0.0/16
ISP ISP
AS 65000
0.0.0.0
Router C chooses
the lowest IGP
metric to reach the
default network.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 15
Default Routes from All Providers and Partial Table
ISPA
AS 65000
AS 64100
AS 64500
path selection
process can exit to
either AS 65000 or
AS 64900 for
any network.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 16
BGP Neighbors ( IBGP/EBGP)
BGP Neighbors
► BGP neighbors are routers forming TCP connection for exchanging BGP updates.
► Also called as BGP Peers or BGP Speakers.
► Two type of BGP neighbor relationship .
IBGP (Internal BGP)
• EBGP (external BGP)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 17
IBGP neighbors
IBGP Neighbors
EBGP Neighbors
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 1B
BGP Databases ( BGP tables)
Neighbor table
0
A list of all configured BGP neighbors.
0
Has to be manually configured using neighbor command
0
# show ip bgp summary
0
# show ip bgp neighbors
IP routing table
0
List of best paths to destination networks
0
# Sh ip route
2.168.1.2
2.168.1.1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 19
IBGP Configuration Example
R1(config-router)#network10.0.0.0
R1(config-router)# network 1.0.0.0
R1(config-router)# network 4.0.0.0
R1(config-router)#network 11.0.0.0 mask 255.255.255.0
R1(config-router)# exit
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 20
LAB: IBGP Peering
"' \
/
/
I \
I
" '-...
- ---
_.,,/
TASK:
• Configure IBGP peering AS 500 as per the diagram using directly connected Interfaces.
• Make sure that all the routers should be able to see the routes from other routers in the routing
table through BGP
NOTE:
• To advertise with default mask value ex: 10.0.0.0/8 no need to use mask
• to advertise with exact mask other than default like 11.0.0.0/24
• make sure that the mask on the interface( shown in routing table as connected) and in the network
command should be same in order to advertise Routes in BGP.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 22
R3#sh ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer lnQ OutQ Up/Down State/PfxRcd
2.2.2.1 4 500 6 6 8 0 0 00:02:41 3
3.3.3.2 4 500 6 6 8 0 0 00:02:12 3
Here there is No network 40.0.0.0 in the routing table because of BGP SPLIT HORIZON RULE
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 23
BGP Split horizon rule
► An update send by one IBGP neighbor should not be send back to another
IBGP neighbor
► Prevents Routing loops within an same AS.
RT RT
1 2
AS
65001
'-
'--
/
/
, .. "\
/ Y.;-1.., .0 \
I -
..
\
AS 500
( 01.1.1/ .,,-:,.,.,R3
\
\ I
\
" '--
/
/
·-...._ /
·--....
··-··-··-··-- ---
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 24
BGP SPLIT HORIZON RULE
• An update send by one IBGP neighbor should not be send back to another IBGP neighbor
• BGP split-horizon is necessary to ensure that routing loops are not started within an AS full-mesh IBGP
peering is required within an AS for all the routers within the AS to learn about the BGP routes.
AS 65001
Solution:
1. full mesh neighbor ship (means every router should be a neighbor of every other router with in the
AS.)
2. Use Route Reflector
Note: IBGP neighbors need not to be directly connected ( but they must be reachable to each other)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 25
Neighbor V AS MsgRcvd MsgSent TblVer lnQ OutQ Up/Down State/PfxRcd
1.1.1.1 4 500 6 6 36 0 0 00:01:44 4
2.2.2.1 4 500 11 11 36 0 0 00:07:33 3
3.3.3.2 4 500 11 11 36 0 0 00:07:05 3
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 26
IBGP Peering using loopbacks Interfaces
1 3 .0 . : J \
Lo o p b a ck O •,
AS 500
- - -3 8 )R3 /
..." ..:,-:,,''b
.,. j
\ .'\
R1(config)#router bgp 500 ·."-
R1(config-router)#neighbor 12.0.0.1 remote-as 50°'-._
R1(config-router)#neighbor 13.0.0.1 remote-as 500 '- _
R1(config-router)#neighbor 14.0.0.1 remote-as 500 - --- --- -----
R1(config-router)#network 10.0.0.0
R1(config-router)#exit
Active:
The router has sent an open packet and is waiting for a response.
The state may cycle between active and idle.
The neighbor may not know how to get back to this router because of the
following reasons:
0
Neighbor is peering with the wrong address .
0
Neighbor does not have a neighbor statement for this router.
0 AS number is misconfiguration.
0
Neighbor does not have a route to the source IP address of the BGP open packet
generated by this router.
0
Any extra command missing.(update source)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 27
Issues with IBGP peering using Loopbacks
,o ,.,
- '-..
"
"-
'-.
- - --- -- ,/'
/
/
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 28
LAB: IBGP Peering USING LOOPBACKS
,,,,,,- ..
12 . 0 . 0 .1
- ---- '----
Loopback 0
/
/
/ "'--
I
/
"' \ \
13. -
..,;,
' ·..,;,/o Loopback 0
·..,;,
/ Loopback O
: 11 . 0 . 0 . 1
,. d'
\'
I
j
'
I AS 500
'
:
'
\ 0 . 1. 1.
I
/
1/ ·,r
\ ·..,;>,. d'
,r
I
F0/0 ·,r /
\ -
I
,o
'b
\
"' "'
'I-t?,·
'?,·
/
'
'?,· ,
/
'--..
_,,.,,, /
-
TASK:
• Remove the BGP configurations in the previous lab.
• Configure IBGP AS 500 as per the diagram using directly Loopback Interfaces.
• Make sure that IBGP neighbor relationship should not be affected by the physical status of the link
• Make sure that all the routers should be able to see the routes from other routers in the BGP table
On Rl, R2 R3 R4
Rl
Rl(config)#router bgp 500
Rl(config-router)#neighbor 12.0.0.1 remote-as 500
Rl(config-router)#neighbor 13.0.0.1 remote-as 500
Rl(config-router)#neighbor 14.0.0.1 remote-as 500
Rl(config-router)#network 10.0.0.0
Rl(config-router)#no auto-summary
Rl(config-router)#no sync
Rl (config-router)#exit
WAN interfaces not preferably advertised in real networks ( It makes your BGP or routing table more big).
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 29
R2(config)#router bgp 500
R2(config-router)#neighbor 11.0.0.1 remote-as 500
R2(config-router)#neighbor 13.0.0.1 remote-as 500
R2(config-router)#neighbor 14.0.0.1 remote-as 500
R2(config-router)#network 20.0.0.0
R2(config-router)#no auto-summary
R2(config-router)#no sync
R2(config-router)#exit
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 30
R4#sh ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer lnQ OutQ Up/Down State/PfxRcd
11.0.0.1 4 500 0 0 0 0 0 never Active
12.0.0.1 4 500 0 0 0 0 0 never Active
13.0.0.1 4 500 0 0 0 0 0 never Active
Active means its actively trying to establish the neighbor ship (still trying)
Active: The router has sent an open packet and is waiting for a response. The state may cycle between active
and idle. The neighbor may not know how to get back to this router because of the following reasons:
1. Neighbor is peering with the wrong address.
2. Neighbor does not have a neighbor statement for this router.
3. AS number is misconfiguration.
4. Neighbor does not have a route to the source IP address of the BGP open packet generated by
this router.
5. Any extra command missing
R-l#ping 12.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:
R-l#ping 13.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.0.0.1, timeout is 2 seconds:
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 31
Success rate is 0 percent (0/5)
R-l#ping 14.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 14.0.0.1, timeout is 2 seconds:
R-l#sh ip route
Gateway of last resort is not set
Here is the issue is with Routing. To fix it Configure RIP, OSPF, EIGRP any one and make sure that you also
advertise the loopback interface used for IBGP peering.
Rl(config)#router ospf 1
Rl(config-router)#net 10.0.0.0 0.255.255.255 area 0
Rl(config-router)#net 1.0.0.0 0.255.255.255 area 0
Rl(config-router)#net 4.0.0.0 0.255.255.255 area 0
Rl(config-router)#net 11.0.0.0 0.255.255.255 area 0
Rl (config-router)#exit
R2(config)#router ospf 1
R2(config-router)#network 20.0.0.0 0.255.255.255 area 0
R2(config-router)#network 2.0.0.0 0.255.255.255 area 0
R2(config-router)#network 12.0.0.0 0.255.255.255 area 0
R2(config-router)#network 1.0.0.0 0.255.255.255 area 0
R2 (config-router)#end
R3(config)#router ospf 1
R3(config-router)#network 30.0.0.0 0.255.255.255 area 0
R3(config-router)#network 3.0.0.0 0.255.255.255 area 0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 32
R3(config-router)#network 13.0.0.0 0.255.255.255 area 0
R3(config-router)#network 2.0.0.0 0.255.255.255 area 0
R3(config-router)#end
R4(config)#router ospf 1
R4(config-router)#network 40.0.0.0 0.255.255.255 area 0
R4(config-router)#network 4.0.0.0 0.255.255.255 area 0
R4(config-router)#network 3.0.0.0 0.255.255.255 area 0
R4(config-router)#network 14.0.0.0 0.255.255.255 area 0
R4(config-router)#end
R-l#ping 12.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/56/80 ms
R-l#ping 13.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 13.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 56/92/172 ms
R-l#ping 14.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 14.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 48/71/112 ms
Loopback 0
2.2.2.2
10.1.1.1 10.2.2.4
Loopback 0 Loopback 0
1.1.1.1 4.4.4.4
AS 65102
Loopback 0
3.3.3.3
• Update-source command allows the BGP process to use the IP address of a specified interface as the source
IP address of all BGP updates to that neighbor.
• A loopback interface is usually used, because it will be available as long as the router is operational.
• The IP address used in the neighbor command on the other router will be the destination IP address of all
BGP updates and should be the loopback interface of this router.
• The neighbor update-source command is normally used only with IBGP neighbors.
• The address of an EBGP neighbor must be directly connected by default; the loopback of an EBGP neighbor
is not directly connected.
AS 65101
AS 65100 AS 65102
10.1.1.1 10.1.1.2
10.2.2.1 10.2.2.2
2.2.2.2Loo . .
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 34
Rl(config)#Router bgp 500
Rl(config-router)#Neighbor 12.0.0.1 update-source loop 0
Rl(config-router)#Neighbor 13.0.0.1 update-source loop 0
Rl(config-router)#Neighbor 14.0.0.1 update-source loop 0
Rl(config-router)#end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 35
13.0.0.1 4 500 7 7 8 0 0 00:02:58
Rl(config)#int sl/0
R1(config-it)#shutdown
Rl(config)#int sl/0
Rl(config-if)#no shutdown
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 37
Router(config-router)# neighbor {ip-address I peer-group-name} <password string>
AS 65000
"\
\
L o o pback 0
, ,, , 3;;;.l. I /8 )
I
j
R1(config)# router bgp 500 \
R1(config-router)# neighbor 12.0.0.1 passwor cisco123 I
R1(config-router)# neighbor 13.0.0.1 password co123 /
/
R1(config-router)# neighbor 14.0.0.1 password /
_,,,,,.
cisc o.1 23
, · ---- - - - - ---
R1(config-router)# neighbor 12.0.0.1 version 4 -- --
R1(config-router)# neighbor 13.0.0.1 version 4
R1(config-router)# neighbor 14.0.0.1 version 4
TASK
• Make sure that the authentication is established between all the peers and they should use password as
cisco123.
• The peering should establish only if both the routers runs BGP v4
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 39
Rl(config-router)# end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 40
14.0.0.1 4 500 6 6 8 0 0 00:01:20
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 41
BGP- Peer-groups
Apply same policies to multiple neighbors
• useful when many neighbors have the
same policies.
• Updates are generated once per peer
group.
• Configuration is simplified.
....
.... - --- ---
---- ----
/ Loopback o
,' 11.0 .0 . 1
----
R1(config-router)# neighbor 13.0.0.1 peer-group CCIE
R1(config-router)# neighbor 14.0.0.1 peer-group CCIE
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 42
LAB - PEER GROUPS
- - - - - ----- ----
·=- -
'-...
/ ---- Loopback 0
12 .0 .0 . 1
, / "-
I
, /
"' \
I \
i ··:
,? ..,
·,? /0 Loopback 0
·,?
/Loopback 0
: 11.0.0.1
,. d'
\
AS 500
.
I \
F0/0
.
0.1.1.1/
.., I.
·,r
\ ·,?
I
,. d'
,r ..,
\ .,,
-
..,
I
\ /
"' /
"
/
'-...
TASK:
- --
Configure peering between Rl R2 R3 R4 with the below configurations:
• Peering to be established using the loop O ip address ( X. 0.0.1) of every router
• Make sure that the authentication is established between all the peers and they should use password as
cisco123.
• The peering should establish only if both the routers runs BGP v4
• Use minimum commands as possible (peer groups).
• Configure IGP as OSPF area O to Provide reachability between loopbacks
• Advertise only LAN network only in BGP
Rl(config)#router ospf 1
Rl(config-router)#net 10.0.0.0 0.255.255.255 area 0
Rl(config-router)#net 1.0.0.0 0.255.255.255 area 0
Rl(config-router)#net 4.0.0.0 0.255.255.255 area 0
Rl(config-router)#net 11.0.0.0 0.255.255.255 area 0
Rl (config-router)#exit
R2(config)#router ospf 1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 43
R2(config-router)#network 20.0.0.0 0.255.255.255 area 0
R2(config-router)#network 2.0.0.0 0.255.255.255 area 0
R2(config-router)#network 12.0.0.0 0.255.255.255 area 0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 44
R2(config-router)#network 1.0.0.0 0.255.255.255 area 0
R2 (config-router)#end
R3(config)#router ospf 1
R3(config-router)#network 30.0.0.0 0.255.255.255 area 0
R3(config-router)#network 3.0.0.0 0.255.255.255 area 0
R3(config-router)#network 13.0.0.0 0.255.255.255 area 0
R3(config-router)#network 2.0.0.0 0.255.255.255 area 0
R3(config-router)#end
R4(config)#router ospf 1
R4(config-router)#network 40.0.0.0 0.255.255.255 area 0
R4(config-router)#network 4.0.0.0 0.255.255.255 area 0
R4(config-router)#network 3.0.0.0 0.255.255.255 area 0
R4(config-router)#network 14.0.0.0 0.255.255.255 area 0
R4(config-router)#end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 45
R2(config-router)#net 20.0.0.0
R2(config-router)#no auto-summary
R2(config-router)# no synchronization
R2(config-router)# end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 46
14.0.0.1 4 500 5 5 8 0 0 00:00:33
Rl#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
'>
0
'
0.0.0.0 0 32768 i
10.0.0.0
r>i20.0.0.0 12.0.0.1 0 100 0i
r>i30.0.0.0 13.0.0.1 0 100 Oi
r>i40.0.0.0 14.0.0.1 0 100 Oi
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 47
BGP Split Horizon Rule : Review
► An update send by one IBGP neighbor should not be send back to another IBGP
neighbor
► BGP split-horizon is necessary to ensure that routing loops are not started within an
AS
AS 65001
Solution:
1. full mesh neighborship
means every router should be a neighbor of every other router with in AS.
2. Use Route Reflector
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 48
Route Reflector
► Scalable alternative to an iBGP full mesh.
► Allows a router (route reflector - RR) to advertise routes received from an iBGP peer
to other iBGP peers.
► Client updates server.
► Server updates to all the remaining clients.
/
I
\
•.Rl
'---' •• _
ASSOO
---R3
RR _91e,lr.°'
ao_3
RRCUenta - - --. _ _ _ __ _ _ __
_
it /
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 49
AS 500
j
\ RRnrNr
/
/
/
_ .
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 50
LAB: ROUTE REFLECTOR
"
(
/ RR Server
"' \
\
ASSOO ••-·:
0 . 1:
/
--------
R3 _/
---
- - -........R. l
RR Clients
-- ...
RR
_9J.ien&
---------··
TASK
• Configure IBGP AS 500 as per the diagram
• Make sure that all the routers should be able to see the routes from other routers in the routing table
through BGP. Do not use full mesh peering
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 52
R3(config-router)# no synchronization
R3(config-router)# end
R2#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
,., il.0.0.0 1.1.1.1 0 100 0i
'''> 0.0.0.0 0 32768 i
,., i2.0.0.0 2.2.2.2 0 100 0i
'''> 0.0.0.0 0 32768 i
' > il0 .0.0.0 1.1.1.1 0 100 0i
0
'
'
'
Rl#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
,., il.0.0.0 1.1.1.2 0 100 0i
'''> 0.0.0.0 0 32768 i
' > i2.0.0.0 1.1.1.2 0 100 0i
0
'
'
'
R3#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
' > il. 0.0.0 2.2.2.1 0 100 0i
0
'
'
'
Rl and R3 cannot see each other routes in their respective BGP table because of split horizon rule
Rl#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
' > 10.0.0.0
0
'
0.0.0.0 0 32768 i
' > i20.0.0.0
0
'
1.1.1.2 0 100 0i
* i30.0.0.0 2.2.2.2 0 100 0i
R3#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
* >il0.0.0.0 1.1.1.1 0 100 0i
' > i20.0.0.0
0
'
2.2.2.1 0 100 0i
'>
0
'
0.0.0.0 0 32768 i
30.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 54
LAB: ROUTE REFLECTOR USING LOOBACK
/"
= . "' \
/, R2
RR Server
0 ..,,,q,
/ Loopback 0 ..,,V...,,y
\ 11.0.0.1 V 13.0.0.l /
ASS00
- .
30 . 1. 1 , 78
R3 _,,-,/
- --
RR Clie n t s·- - -
_. ,R-R- _glienG
-
TASK:
• Configure BGP AS 500 as per the diagram using Loopnback Interfaces.
• To provide Reachability configure RIPv2 as IGP protocol inside AS 500
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 55
R2#sh ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer lnQ OutQ Up/Down State/PfxRcd
11.0.0.1 4 500 6 6 6 0 0 00:01:03 1
13.0.0.1 4 500 8 8 6 0 0 00:03:32
Rl#show ip bgp summary
Neighbor V AS MsgRcvd MsgSent TblVer lnQ OutQ Up/Down State/PfxRcd
12.0.0.1 4 500 6 6 4 0 0 00:01:55 1
'
0.0.0.0 0 32768 i
10.0.0.0 12.0.0.1 0 100 0i
r>i20.0.0.0
R3#sh ip bgp
Network
r>i20.0.0.0 Next Hop Metric LocPrf Weight Path
'>
0
'
12.0.0.1 0 100 0i
30.0.0.0 0.0.0.0 0 32768 i
Rl#show ip bgp
Network Next Hop Metric LocPrf Weight Path
'>
0
'
0.0.0.0 0 32768 i
10.0.0.0
r>i20.0.0.0 12.0.0.1 0 100 0i
r>i30.0.0.0 13.0.0.1 0 100 0i
R3#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 56
r>il0.0.0.0 11.0.0.1 0 100 0i
r>i20.0.0.0 12.0.0.1 0 100 0i
*> 30.0.0.0 0.0.0.0 0 32768 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 57
LAB: ROUTE REFLECTOR WITH TWO SERVERS FOR REDUNDANCY
12.0.0.1
- o
f,..
·--......
...........
0
/
I
,
I RR server
\
/1.oopback 0
: 11.0.0.1
ASSOO
\
I
!
\ RR server
"
--
........... _...,.,,,,
TASK:
• Configure RIPv2 to provide Reachability between BGP peers
• Configure R2/R4 as RR Server and R1/R3 as Clients
Rl(config)#router rip
Rl(config-router)# version 2
Rl(config-router)# network 1.0.0.0
Rl(config-router)# network 4.0.0.0
Rl(config-router)# network 10.0.0.0
Rl(config-router)# network 11.0.0.0
Rl(config-router)# no auto-summary
Rl (config-router)#exit
R2(config)#router rip
R2(config-router)# version
2
R2(config-router)# network 1.0.0.0
R2(config-router)# network 2.0.0.0
R2(config-router)# network 20.0.0.0
R2(config-router)# network 12.0.0.0
R2(config-router)# no auto-
summary R2(config-router)#
R2(config-router)#end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 58
R3(config)#router rip
R3(config-router)# version 2
R3(config-router)# network 3.0.0.0
R3(config-router)# network 2.0.0.0
R3(config-router)# network 30.0.0.0
R3(config-router)# network 13.0.0.0
R3(config-router)# no auto-summary
R3(config-router)#end
R3#
R4(config)#router rip
R4(config-router)# version 2
R4(config-router)# network 3.0.0.0
R4(config-router)# network 4.0.0.0
R4(config-router)# network 40.0.0.0
R4(config-router)# network 14.0.0.0
R4(config-router)# no auto-summary
R4(config-router)#end
R4#
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 59
R 13.0.2.0 [120/1] via 3.3.3.1, 00:00:12, Seriall/0
R 30.0.0.0/8 [120/1] via 3.3.3.1, 00:00:12, Seriall/0
Rl (RR CLIENT)
Rl(config-router)#network 10.0.0.0
Rl (config-router)#no auto-summary
Rl (config-router)#no synchronization
Rl (config-router)#exit
R3 (RR CLIENT)
R3 (config-router)#network 30.0.0.0
R3 (config-router)#no auto-summary
R3 (config-router)#no synchronization
R3 (config-router)#exit
R2 (RR SERVER)
R2(config)#router bgp 500
R2(config-router)#neighbor 11.0.0.1 remote-as 500
R2(config-router)#neighbor 11.0.0.1 update-source loopback 0
R2(config-router)#neighbor 11.0.0.1 route-reflector-client
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 60
R2(config-router)#network 20.0.0.0
R2(config-router)#no auto-summary
R2(config-router)#no synchronization
R2(config-router)#exit
R4 (RR server)
R4(config-router)#network 40.0.0.0
R4(config-router)#no auto-summary
R4(config-router)#no synchronization
R4(config-router)#exit
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 61
BGP table version is 8, main routing table version 8
4 network entries using 468 bytes of memory
6 path entries using 312 bytes of memory
3/2 BGP path/bestpath attribute entries using 372 bytes of memory
2 BGP rrinfo entries using 48 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1200 total bytes of memory
BGP activity 4/0 prefixes, 7/1 paths, scan interval 60 secs
Rl#sh ip bgp
BGP table version is 8, local router ID is 11.0.3.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
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 62
EBGP basic configuration
R2(config}#router bgp 500
R2(config-router)# neighbor 1.1.1.1 remote-as 500
R2(config-router)# neighbor 2.2.2.2 remote-as 600
R2(config-router)# network 20.0.0.0
RR aerver
RR Client
·. Rl
'-... AS 500
__
..............
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 63
BGP next hop behavior
AS 300
AS 200 192 .10.1.0/30 140.10.0.0/16
150.10.0.0/16 .1
Network Next-HopPath
150.10.0.0/16 192.10 .1.1200
Nex1so .10.o.0116 192.10.1.1200 100
• Usually a loc al network is the nex t
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 64
e
B
G
P
P
e
e
r
s
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 65
BGP next hop behavior
Networ1 Next-HopPath
<
150.10.0.0/16 192.10.1.1200
160.10.0.0/16 192.10.1.1200 100
c ange
between iBGP peers
AS 100
160.10.0.0/16 ► well-known, mandatory Attribute.
► BGP is AS by AS routing Protocol
► Next hop 'I next router
► Next hop= IP to reach next AS
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 66
Default Next-hop Behavior
_.... AS 500
•. Rl
'-
-
......
R1#sh ip bgp
Network
Next Hop Metric LocPrf Weight Path
*>
0.0.0.0 0 32768 i
10.0.0.0
*>i20.0.0.0 1.1.1.2 0 100 0i
* i30.0.0.0 2.2.2.2 0 100 0 600 i
Using next-hop-self
R1#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
*> 10.0.0.0 0.0.0.0 0 32768 i
*>i20.0.0.0 1.1.1.2 0 100 0i
*>i30.0.0.0 1.1.1.2 0 100 0 600 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 67
LAB: Basic EBGP Configuration & Verify Next-hop Behavior
R2
AS 50 0
---.
-.... _
_....
_
.. _
-
Rl(config)#router bgp 500
-
Rl(config-router)# neighbor 1.1.1.2 remote-as 500
Rl(config-router)# network 10.0.0.0
Rl(config-router)# no auto-summary
Rl(config-router)# no synchronization
Rl(config-router)# end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 69
R2#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
' > il0 .0.0.0
0
'
1.1.1.1 0 100 0i
'>
0
'
0.0.0.0 0 32768 i
20.0.0.0
2.2.2.2 0 0 600 i
'>
0
'
30.0.0.0
Rl#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
'>
0
'
0.0.0.0 0 32768 i
10.0.0.0
1.1.1.2 0 100 0i
'
0
> i20.0.0.0
* i30.0.0.0
30.0.0.0 Network not present in the routing table as the next-hop 2.2.2.2 (due to default next-hop behavior of
BGP) is unreachable
To fix this issue
1. either advertise the wan interfaces
2. change the next-hop address to next router address
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 70
router bgp 65101
neighbor 172.16.1.1 remote-as 65100
neighbor 3.3.3.3 remote-as 65101 neighbor
3.3.3.3 update-source Loopback0 neighbor
3.3.3.3 next-hop-self
!
router eigrp 1
network 10.0.0.0
network 2.0.0.0
AS 65101
AS 65100 AS 65102
1-,:1u1:2i ;..11§ ill f.!.: :.!._-!.:. , 1 ..
6;.111.1 .2.2 .2.2.2
2.2.2Loo 3 .. ..,..
10.0.0.0 10.0.0.0
..10
I 0.0. 0 . :ll
• Forces all updates for this neighbor to be advertised with this router as the next hop.
• The IP address used for the next-hop-self option will be the same as the source IP address of the BGP packet.
On R2
Rl#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
'>
0
'
0.0.0.0 0 32768 i
10.0.0.0
1.1.1.2 0 100 0i
' > i20.0.0.0
0
*>i30.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 71
EBGP- Neighbor
Redundancv
'j
Redundant Links o etween two AS ( Ex: ISP).
_ir ;;:\, ,Y
1
7'
....._ ....
2 . 2.2 . 1/8 2 . 2 . 2 . 2/ 8
· --.._ ....-
AS 500 AS 600
;;:'.
Loopbaro "' • / backO
R2 2,i :
,
.. ·....._ _ _
....._ .... ....
ASS00 AS600
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 72
EBGP using Loopbacks
:example
AS 65102
Loopback 0
2.2.2.2
192.168.1.17/28
AS 65101
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 73
I LAB: EBGP NEIGHBOR USING LOOPBACKS
---
Loopbac jcO
s1/0
, _,
I
...-
FO/
0.1.1. / F' 0 / 0
S1/1 s1/1 \
2f . 1. 1. 11
2.2.2.1/8 2.2.2.2/8 R2
'- - - _./
ASSOO AS600
TASK
• Configure EBGP peeringbetween Rl and R2 as per the diagram.
• Make sure that EBGP neighbor relationship should not be affected by the physical status of the link
• Configure Static Routing to provide Reachability between Looback interfaces of Rl & R2.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 74
R-l#ping 12.0.0.1
Type escape sequence to abort.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 75
Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:
From the above ping test we can confirm that there may be either Connectivity or Routing issue.
Rl#ping 1.1.1.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 1.1.1.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/24/56 ms
Rl#ping 2.2.2.2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2.2.2.2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 1/17/52 ms
Rl#sh ip route
C 1.0.0.0/8 is directly connected, Seriall/0
C 2.0.0.0/8 is directly connected, Seriall/1
C 10.0.0.0/8 is directly connected, FastEthernet0/0
11.0.0.0/24 is subnetted, 4 subnets
C 11.0.3.0 is directly connected, Loopback3
C 11.0.2.0 is directly connected, Loopback2
C 11.0.1.0 is directly connected, Loopbackl
C 11.0.0.0 is directly connected, Loopback0
R-l#ping 12.0.0.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 12.0.0.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/46/64 ms
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 76
BGP router identifier 11.0.3.1, local AS number 500
BGP table version is 1, main routing table version 1
Neighbor V AS MsgRcvd MsgSent TblVer lnQ OutQ Up/Down State/PfxRcd
12.0.0.1 4 600 4 4 1 0 0 00:00:21 1
Rl#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
' > 10.0.0.0 0.0.0.0 0 32768 i
0
'
'
R2#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
' > 10.0.0.0
0
'
11.0.0.1 0 0 500 i
' > 20.0.0.0
0
'
0.0.0.0 0 32768 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 77
Synchronization rule:
AS 65500 AS 64520
All routers in AS 65500 are running BGP; there are no matching
IGP routes.
► Safe to have it off only if all routers in the transit path in the AS are running
full-mesh IBGP;
► off by default in Cisco IOS software release 12.2(8)T and later
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 78
BGP Synchronization rule : Verification
R2/R3
R2(config)#router bgp 600
R2(config-router)#synchronization
R2(config-router)#exit
\.
R3
AS 500
R2#sh ip bgp 30.0.0.0
BGP routing table entry for 30.0.0.0/8, version O
Paths: (1 available, no best
path) Not advertised to any
peer Local
2.2.2.2 from 2.2.2.2 (13.0.3.1}
Origin IGP, metric O, localpref 100, valid, internal, not synchronized
R3
R3(config)#router ospf 1
R3(config-router)#network 30.0.0.0 0.255.255.255 area 0
R2/R3
Rx(config)# router bgp 600
Rx(config-router)#no synchronization
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 79
LAB: VERIFY BGP SYNCHRONIZATION RULE
. ... -- ------
.-I
--
- :t.,.....
- ./
-,
'\.
'\
er-
·,1 '
.....(.9. '
'
{ \'
'
\ I
\
AS600 :;.°{1,s
.......-_ -- -----. __ __
R3
TASK:
• Configure BGP peering as per the diagram and advertise all the interfaces inside BGP
• Disable Synchronization Rule on all the routers.
R2#sh ip bgp
BGP table version is 6, local router ID is 12.0.3.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
'
'
'
R3#sh ip bgp
BGP table version is 6, local router ID is 13.0.3.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
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 81
' > il0 .0.0.0 1.1.1.1 0 100 0 500 i
0
'
'
'
0
R2/R3
R2(config)#router bgp 600
R2 (config-router)#synchronization
R2 (config-router)#exit
R2#sh ip bgp
BGP table version is 9, local router ID is 12.0.3.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
'
-;':
1.1.1.1 0 0 500 i
' > 2.0.0.0 0.0.0.0 0 32768 i
0
'
'
'
Rl#sh ip bgp
BGP table version is 12, local router ID is 11.0.3.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
'
'
'
• R3 advertises 30.0.0.0 to R2
• R2 will not use or advertise this network as synchorization rule is enabled, and as per the rule the same
matching route has to be learned from IGP inside AS 600
• TO fix it, Ensure that all the routes used in BGP has to be advertised in IGP running inside AS Or Disable
Synchorization Rule
TASK:
Configure OSPF area O inside AS 600 and advertise all the interafaces as per the Diagram
R3(config)#router ospf 1
R3(config-router)#network 30.0.0.0 0.255.255.255 area 0
R3(config-router)#network 2.0.0.0 0.255.255.255 area 0
R3(config-router)#exit
R2(config)#router ospf 1
R2(config-router)#network 20.0.0.0 0.255.255.255 a 0
R2(config-router)#network 2.0.0.0 0.255.255.255 area 0
R2 (config-router)#exit
R2(config)#
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 83
R2#sh ip bgp
BGP table version is 11, local router ID is 12.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
-;':
1.1.1.1 0 0 500 i
' > 2.0.0.0 0.0.0.0 0 32768 i
0
'
'
'
Rl#sh ip bgp
BGP table version is 24, local router ID is 11.0.3.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
'
'
'
'
R2/R3
R3 (config) # no router ospf 1
R2/R3
Rx(config)# router bgp 600
Rx(config-router)#no synchronization
Rx(config-router)#end
Rl
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 84
Rl(config)#router bgp 500
Rl (config-router)#no synchronization
Rl (config-router)#end
R2#clear ip bgp *
R2#sh ip bgp
BGP table version is 6, local router ID is 12.0.3.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
'
'
'
'
0
Rl#sh ip bgp
BGP table version is 17, local router ID is 11.0.3.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
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 85
Network Next Hop Metric LocPrf Weight Path
1.0.0.0
-;':
1.1.1.2 0 0 600 i
'''> 0.0.0.0 0 32768 i
' > 2.0.0.0 1.1.1.2
0
'
0 0 600 i
' > 10.0.0.0 0.0.0.0
0
'
0 32768 i
' > 20.0.0.0 1.1.1.2
0
'
0 0 600 i
' > 30.0.0.0 1.1.1.2 0 600 i
0
'
Rl#ping 30.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 30.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 16/56/88 ms
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 86
BGP Path-Selection Process
- BGP Attributes
BGP Attributes
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page
BO
BGP ATTRIBUTES
OPTIONA
L
no-
advertise
internet
local-as
Well-known mandatory:
► Must be recognized by all BGP routers.
present in all BGP updates. and passed
on to other BGP routers. MANDATO
RY
► AS path, origin, and next hop.
Well-known discretionary:
► Must be recognized by all BGP routers
and passed on to other BGP routers but
need not be present in an update
► local preference.
e
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page B1
Optional transitive: BGP ATTRIBUTES
COMMUN ORIGINAT
Optional non-transitive: nY OR
local-
as
AS-Path Attribute
BGP - AS Path Advertisement
20.2.2.0
AS 65444
20.2.2.0 20.2.2.0
AS 65222 65333 AS 65333
65444 65444
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 82
AS-Path Attribute
R2
AS200
FQ/01
30.1.,.l/,
AS400
Next-hop Attribute
AS 200 192.10.1.0/30
150.10.0.0/16 .1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 83
► N ext hop = IP to
reach ne xt AS
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 84
BGP next hop behavior
AS 300
AS 200 192.10.1.0/30 140.10.0.0/16
.1
150.10.0.0/16
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 85
e
B
G
P
P
e
e
r
s
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 86
BGP next hop behavior
AS 200 192.10.1.0/30
150.10.0.0/16 .1
•. Rl
__ ...
Rl#sh ip bgp
Net wo rk
Next Hop Metric Lo cPrf Weig ht Pat h
*> 10.0.0
0.0.0.0 0 32768 i
.0
*>i20.0.0.0 1.1.1.2 0 100 0i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 87
* i30 .0.0 .0 2.2.2.2 0 100 0 600 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 88
Using next-hop-self
..........
Origin Attribute
► Origin informs all AS in Internetwork how network got introduced into BGP.
0
IGP (i) adve rtised in BGP using network command
0
EGP (e) Re distri but ed from EGP
0 Incomplete (?) Redistributed in to BGP from IGP or static
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 89
com
RouterA# show ip bgp
BGP table version is 14, local router ID is 172.31.11.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
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 90
com
Weight Attribute
► Weight is Cisco ' s attribute.
► Tells how to exit the AS
► Path with the highest weight is more .
desirable.
- ;
N ,;> ..,._ ...
► Weight is partial attribute.
..
R2
= AS200
► Default weight
0
0 = le a rned routes
F0/01
30.1.1.1/
32.768 = for lo call y i njected
IF0/0
0
routes
r 0 . 1 . 1 . 1/8
Weigh
t
AS = 150
64520
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 91
com
Verifying Weight attribute
R-l #sh ip bgp
Network Next Hop Metric LocPrf W eight Path
* 20.0.0.0 4.4.4.1 0 700 600 i
1.1.1.2 0 0 600i
R-l#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
r> 1.0 .0.0 4.4.4 .1 40000 700 600 i /
U?.°i:.,
r 1.1.1.2 0 0 600 i
*> 2.0.0.0 4.4.4.1 40000 700 600 i
* 1.1.1.2 0 0 600 i
*> 3.0 .0.0 4.4 .4.1 0 40000 700 i '-._ ....A_ SS_OO _......
* 1.1.1.2 0 600 i
r> 4.0.0.0 4.4.4.1 0 40000 700 i
r 1.1.1.2 0 600 700 i
*> 20.0.0.0 4.4.4.1 40000 700 600 i
* 1.1.1.2 0 0 600i
*> 30.0.0 .0 4.4.4.1 40000 700 600 i
* 1.1.1.2 0 600 i
*> 40 .0 .0 .0 4.4.4 .1 0 40000 700 i Rl#traceroute 20.1.1.1
* 1.1.1.2 0 600 700 Type escape sequenc e to abort.
i Tracing the route to 20.1.1.1
1 4.4.4.1196 msec 252 msec 36 msec
2 3.3 .3.1 [AS 700] 116 msec 112 msec64 msec
3 2.2.2.1 [AS 600] 368 msec * 216 msec
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 92
com
► By default BGP appli es weight to all the routes receiving from the specific neighbor to which it was
configured.
► To apply to specific routes we need to use the route-rr
,
'-... . .... AS 500
r 1.1.1.2 0 600 700 i
*> 20.0.0.0 4.4.4.1 40000 700 600 i _,..,..,...
• 1.1.1.2 0 0 600 i
* > 30.0.0.0 4.4.4.1 40000 700 600 i
• 1.1.1.2 0 600 i
* > 40 . 0.0 . 0 4.4.4 .1 0 40000 700 i
• 1.1.1.2 0 600 700 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 93
com
LAB: USING WEIGHT ATTRIBUTE
"' - - AS 600
/ "-
( I ro,o \
\j 0.1.1.1/ J
"- _
.... AS __ _ .
5 00
. <$' • • - - - -- --
_.,,,,,,,.
.(
\
_ _ _ _., , , ,.
TASK:
• Configure basic IBGP and EBGP peering using direcly connected interfaces
• Advertise all the Networks as per the Diagram
• Make sure that the next-hop address should be the next router address
R4#sh ip bgp
BGP table version is 9, local router ID is 14.0.3.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
'
-;':
4.4.4.2 0 500 600 i
-;':
3.0.0.0 4.4.4.2 0 500 600 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 95
-;':
3.3.3.1 0 0 600 i
'''> 0.0.0.0 0 32768 i
' > 4.0.0.0
0.0.0.0 0 32768 i
'
0
-;':
4.4.4.2 0 0 500 i
-;':
10.0.0.0 3.3.3.1 0 600 500 i
'''> 4.4.4.2 0 0 500 i
' ' > 20.0.0.0
0
3.3.3.1 0 600 i
-;':
4.4.4.2 0 500 600 i
30.0.0.0
-;':
4.4.4.2 0 500 600 i
'''> 3.3.3.1 0 0 600 i
' ' > 40.0.0.0
0
0.0.0.0 0 32768 i
R4#
R3#sh ip bgp
BGP table version is 10, local router ID is 13.0.3.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
'
'
'
R3#sh ip bgp
BGP table version is 11, local router ID is 13.0.3.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
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 97
'''> 0.0.0.0 0 32768 i
' > 4.0.0.0 3.3.3.2 0 0 700 i
0
'
'
'
'
R2#sh ip bgp
BGP table version is 10, local router ID is 12.0.3.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
'
'
'
'
-;':
40.0.0.0 1.1.1.1 0 500 700 i
*>i 2.2.2.2 0 100 0700 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 98
TASK:
Configure Rl to prefer exit path via R4 to reach all the Networks.
By default Rl prefer via R2 (1.1.1.2) to reach 20.0.0.0/30.0.0.0 network as it has less number of AS path.
R-l#sh ip bgp
* 20.0.0.0 4.4.4.1
*> 1.1.1.2 0 0600i
,., 30.0.0.0 4.4.4.1 0 700600i
'''> 1.1.1.2 0 600 i
,., 40.0.0.0 1.1.1.2 0 600 700 i
'''> 4.4.4.1 0 0 700 i
Rl#ping 20.1.1.1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 20.1.1.1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 4/99/216 ms
Rl#traceroute 20.1.1.1
Type escape sequence to abort.
Tracing the route to 20.1.1.1
1.1.1.2 264 msec ,., 92 msec
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 99
To change the default preferred route (via R2) to via R4 (4.4.4.1) we need to apply higher weight to R4
R-l#sh ip bgp
Next Hop Metric LocPrf Weight Path
4.4.4.1 40000 700 600 i
1.1.1.2 0 0 600 i
'>
0
'
4.4.4.1 40000 700 600 i
2.0.0.0
1.1.1.2 0 0 600 i
-;':
4.4.4.1 0 40000 700 i
'>
0
'
'
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 101
B 30.0.0.0/8 [20/0] via 4.4.4.1, 00:00:47
Rl#traceroute 20.1.1.1
Type escape sequence to abort.
Tracing the route to 20.1.1.1
Note:
• By default BGP applies weight to all the routes receiving from the specific neighbor to which it was
configured.
• To apply to specific routes we need to use the route-maps ( check next lab)
• Displays networks that are not installed in the RIB and the reason that they were not installed
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 102
Clearing the BGP Session
► Whenever there is an administrative change in routing policy, the BGP session must be
reset before the new policy can take effect.
► You must trigger an update to ensure that the policy is immediately applied to all
affected prefixes and paths.
Hard Reset:
router# clear ip bgp *
0
Resets all BGP connections with this router.
0
Entire BGP forwarding table is discarded.
0
BGP session makes the transition from established to idle: (re-establish the peering)
0
everything must be relearned.
0
Processing the full Internet routing table can take a long time. Bandwidth . Resources.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 103
BGP Soft Reconfiguration
► Soft reconfiguration provides change s in new BGP routing policies w i t h ou t te aring dow n the
sessions.
Router# clear ip bgp {*I neighbor-address} [soft]
Outbound soft reconfiguration
M ore si mp l e
route r resend s all BGP info rmation to the neighbor w ithout resett in g t he conne ctio n( BGP
tab le)
This o p tio n is hig hl y recomme nd ed w hen you are changing o utbo und po li cy.
Alw ays enab led, no t co nfigu rable
The soft out o ptio n does not help if you are changing inbound policy.
Router# clear ip bgp {*Ineighbor-address} (soft out]
0
Inbound soft reconfiguration ( earlier to 12.1 IOS)
M ore co mpl icated
stores the comp l ete BGP tab le of your neighbo r in rout er memory.
Router(config-router)# neighbor [ip-address) so ft-recon figurationinbound
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 104
Type of Reset Advantages Disadvantages
Hard reset No memory overhead. The prefixes in the BGP, IP, and FIB
tables that are provided by the
neighbor are lost.
Not recommended.
Outbound soft reset No configuration, no storing of Does not reset inbound routing table
routing table updates. updates.
Dynamic inbound soft Does not clear the BGP session Both BGP routers must support the
reset or cache. route refresh capability (Cisco IOS
Software Release 12.1 and later
Does not require storing of routing releases).
table updates, and has no
memory overhead.
Configured inbound soft Can be used when both BGP Requires preconfiguration.
reset (uses the routers do not support the
neighbor soft- automatic route refresh capability. Stores all received (inbound) routing
reconfiguraiton policy updates without modification,
command) and is thus memory-intensive.
Recommended only when absolutely
necessary.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 1O
1
WEIGHT using Rou te-maps
Rl#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
•
.
12.0.0.0/ 24 4.4.4.1 0 700 600 i
*> 1.1.1.2 0 0 600 i
12.0.1.0/ 24 4.4.4.1 0 700 600 i
*> 1.1.1.2 0 0 600 i
* 12.0.2 .0/ 24 4.4.4.1 0 700 600 i------------------------,/·
*> 1.1.1.2 0 0 600i /' "
* 12.0.3.0/ 24 4.4.4.1 0 700 600 i :
*> 1.1.1.2 0 0 600 i r I
\-J1.1.1/
'-._ . ... AS 5_ 00 _ _ _........
,,_\',
,,,. '
Rl#sh ip bgp /,',,.,
NetworkNext Hop Metric LocPrf Weight Path
*> 12.0.0.0/244.4.4.1 5000 700600 i , /\ .
AS 700 /
*
*> 12.0.1.0/24
1.1.1.2
4.4.4.1
0 0
5000
600i
700 600 i
·--
*
• 12.0.2.0/ 24
1.1.1.2
4.4.4.1
0
0
0 600i
700 600 i ---
*> 1.1.1.2 0 0 600i
4.4.4.1 0 700 600 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 102
com
LAB : WEIGHT ATTRIBUTE using Route-maps
(
'
TASK:
• Continue from the previous lab and remove the last task configs
• Advertise the 12.0.0.0 of R2 loopbacks in bgp with exact mask
Rl#sh ip bgp
BGP table version is 17, local router ID is 11.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 103
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
-;':
4.4.4.1 0 700 600 i
-;':
1.1.1.2 0 0 600 i
-;':
2.0.0.0 4.4.4.1 0 700 600 i
'''> 1.1.1.2 0 0 600 i
-;':
3.0.0.0 4.4.4.1 0 0 700 i
'''> 1.1.1.2 0 600 i
' > 4.0.0.0 0.0.0.0 0 32768 i
0
'
-;':
4.4.4.1 0 0 700 i
' > 10.0.0.0 0.0.0.0 0 32768 i
0
'
'
-;':
1.1.1.2 0 600 700 i
Here by default Rl prefers via 1.1.1.2 ( R2) to reach the 12.x.x.x Prefixes .
Rl#sh ip route bgp
B 2.0.0.0/8 [20/0] via 1.1.1.2, 00:11:15
B 3.0.0.0/8 [20/0] via 1.1.1.2, 00:11:15
B 20.0.0.0/8 [20/0] via 1.1.1.2, 00:11:15
B 40.0.0.0/8 [20/0] via 4.4.4.1, 00:11:15
12.0.0.0/24 is subnetted, 4 subnets
B 12.0.0.0 [20/0] via 1.1.1.2, 00:10:44
B 12.0.1.0 [20/0] via 1.1.1.2, 00:10:44
B 12.0.2.0 [20/0] via 1.1.1.2, 00:10:44
B 12.0.3.0 [20/0] via 1.1.1.2, 00:10:44
B 30.0.0.0/8 [20/0] via 1.1.1.2, 00:11:15
TASK:
• Make sure that only 12.0.0.0 and 12.0.1.0 both networks should prefer via R4 where as the remaining
should use the default route via R2 :
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 104
Rl(config)#access-list 12 permit 12.0.0.0 0.0.0.255
Rl(config)# access-list 12 permit 12.0.1.0 0.0.0.255
The WEIGHT attribute is local to the router and does not get exchanged between routers;
therefore it is only effective on inbound route maps
• Changes the local Router Path sele ctio n • outbound Ro ut e-maps influence so me
process. other Rou ters Decision
• influence outbound Traffic • influence inbound Traffic
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 105
Rl#sh ip bgp
BGP table version is 16, local router ID is 11.0.3.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
-;':
1.1.1.2 0 600 700 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 107
B 12.0.3.0 [20/0] via 1.1.1.2, 00:00:20
B 30.0.0.0/8 [20/0] via 1.1.1.2, 00:00:20
Rl#traceroute 12.0.0.1
Type escape sequence to abort.
Tracing the route to 12.0.0.1
1 4.4.4.1 68 msec 40 msec 156 msec
2 3.3.3.1 [AS 600] 120 msec 24 msec 8 msec
3 2.2.2.1 [AS 600] 72 msec ,., 116 msec
Rl#traceroute 12.0.1.1
Type escape sequence to abort.
Tracing the route to 12.0.1.1
Rl#traceroute 12.0.2.1
Type escape sequence to abort.
Tracing the route to 12.0.2.1
11.1.1.2132 msec ,., 144 msec
Rl#traceroute 12.0.3.1
Type escape sequence to abort.
Tracing the route to 12.0.3.1
11.1.1.2132 msec ,., 144 msec
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 1OB
Local preference Attribute
► Local preference defines how data traffic should exit from an AS.
► Path with highest preference value is more desirable.
► Default value is 100
► Local preference i s well known. discretionary att ribute.
► It i s advertised only to IBGP neighbor within an AS.
vt.:oref
Needs to go to AS 65350
Local Pref = 150
AS
520
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page
109
Verifying Local preference
All the routes going from AS 600 to reach as -700 ( 40.0.0.0) by
default prefers out via R3
Make sure that R2 and R3 (all the routers in the as 600 should prefer use
path via R2 /R1/R4 using local preference.)
R2#sh ip bgp
Network
Next Hop Metric LocPrf Weight Path
* 40.0.0.0
1.1.1.1 0 500 700 i
*>i
2.2.2.2 0 100 0 700i
R3#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
* > 40.0 .0.0 3.3.3.2 0 0 700 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 11O
LAB: USING LOCAL PREFERENCE
(I
\j
F0/0
0.1.1.
"' ASS00 ../
........ - --- -
1/
,
' 'o
f>t'/,<
( J\,
'
\ AS 700 /
t'/,"'
t'/,"'
Continue the same previous lab just remove the last step of configurations applied so that it uses the default
path selection process without any attributes applied
OR
• IF you start this Lab without any BGP configuration then configure basic IBGP and EBGP as per the diagram
• Verify neighbors and Ensure that it uses the default path selection without any attributes applied
• Ensure that you change the next hop to next Router
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 111
R2(config)#router bgp 600
R2 (config-router)# neighbor 1.1.1.1 remote-as 500
R2(config-router)# neighbor 2.2.2.2 remote-as 600
R2(config-router)# network 20.0.0.0
R2(config-router)# network 2.0.0.0
R2(config-router)# network 1.0.0.0
R2(config-router)# network 12.0.0.0 mask 255.255.255.0
R2(config-router)# network 12.0.1.0 mask 255.255.255.0
R2(config-router)# network 12.0.2.0 mask 255.255.255.0
R2(config-router)# network 12.0.3.0 mask 255.255.255.0
R2(config-router)# no auto-summary
R2(config-router)# no sync
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 112
R2(config)#router bgp 600
R2(config-router)#neighbor 2.2.2.2 next-hop-self
R2#sh ip bgp
BGP table version is 32, local router ID is 12.0.3.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
'
'
'
'
'
'
'
'
'
R3#sh ip bgp
BGP table version is 25, local router ID is 13.0.3.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
'
R2#traceroute 40.1.1.1
Type escape sequence to abort.
Tracing the route to 40.1.1.1
1 2.2.2.2 72 msec 148 msec 32 msec
2 3.3.3.2 140 msec ,., 60 msec
R3#traceroute 40.1.1.1
Type escape sequence to abort.
Tracing the route to 40.1.1.1
1 3.3.3.2 92 msec ,., 168 msec
In order to make sure that all the routers exit AS 600 via R2 we need to change the local-preference value of R2
higher than default
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 114
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 115
R2(config)#router bgp 600
R2(config-router)#bgp default local-preference 400
R2(config-router)#do clear ip bgp * soft
R2#sh ip bgp
BGP table version is 17, local router ID is 12.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
'
'
'
'
'
'
2.2.2.2 0 100 0i
*> 40.0.0.0 1.1.1.1 0 500 700 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 116
Origin IGP, metric 0, localpref 400, valid, internal, best
700
3.3.3.2 from 3.3.3.2 (14.0.3.1)
Origin IGP, metric 0, localpref 100, valid, external
R3#sh ip bgp
BGP table version is 43, local router ID is 13.0.3.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
'
'
'
'
2.2.2.1 0 400 0i
' ' > 30.0.0.0
0
0.0.0.0 0 32768 i
Network Next Hop Metric LocPrf Weight Path
*>i40.0.0.0 2.2.2.1 0 400 0 500 700 i
-;':
3.3.3.2 0 0 700 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 117
B 10.0.0.0/8 [200/0] via 2.2.2.1, 00:02:15
12.0.0.0/24 is subnetted, 4 subnets
B 12.0.0.0 [200/0] via 2.2.2.1, 00:02:11
B 12.0.1.0 [200/0] via 2.2.2.1, 00:02:11
B 12.0.2.0 [200/0] via 2.2.2.1, 00:02:11
B 12.0.3.0 [200/0] via 2.2.2.1, 00:02:11
R3#traceroute 40.1.1.1
Type escape sequence to abort.
Tracing the route to 40.1.1.1
R2#traceroute 40.1.1.1
Type escape sequence to abort.
Tracing the route to 40.1.1.1
1 1.1.1.1 128 msec 84 msec 76 msec
2 4.4.4.1 [AS 500] 220 msec ,., 132 msec
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 118
Local preference using route-map
R3# sh ip b g p
N etwo rk
* > il. 0.0.0 Next Hop Metric LocPti Weig ht Path
• 2.2.2.1 0 400 0i
* i2.0.0.0
3.3.3.2
2.2.2.1 0 400
0 700 500 i
0i _,,,....--
/ "'.;:
-- ..-:/"
** >i3.0.0.0 0.0 .0 .0
2.2.2.1 00 400 327680 i500 700 i
_ (J,.,.,,
•·
• 3.3.3.2 0 0 700 i
*> 0.0.0.0 0 32768 i
* > i4.0.0.0 2.2.2.1 0 400 0500i
• 3.3.3.2 0 0 700 i .....A._ S 500
'-.,. .
Configure AS 600 such that only routes ( 14.0.0.0 and 14.0.1.0) both
networks prefer via R2 to exit the AS
All the remaining networks should use the default exit ( via R3)
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 11B
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 11B
com
R2#sh ip bgp
Network Next Hop
M etric LocPrf Weight Path
* > 14.0.0.0/ 24 1.1.1.1 2000 0 500 700 i
* > 14.0.1.0/24 1.1.1.1 2000 0 500 700 i
* 14.0. 2.0/ 24 1.1.1.1 0 500 700 i
*>i 2.2.2.2 0 100 0 700 i
* 14.0 .3.0/ 24 1.1.1.1 0 500 700 i
*>i 2.2.2.2 0 100 0 700 i
R3#sh ip bgp
Network Next Hop
Metric LocPrf Weight Path
* > i14.0.0.0/24 2.2.2.1 0 2000 0 500700 i
* 3.3.3 .2 0 0 700i
* > i14.0.l. 0/24 2.2.2.1 0 2000 0 500700 i
* 3.3.3.2 0 0 700i
*> 14.0.2.0/ 24 3.3.3.2 0 0 700 i
*> 14.0.3.0/24 3.3.3.2 0 0 700 i
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 119
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 120
com
LAB: LOCAL PREFERENCE USING ROUTE-MAP
, u. ,.,
""'-, AS 600
,
"' ..... AS 500 .,./
R2 loo p backs
14 .0 .0 1 1/ 2 4
14 .0 . l ll / 2 4
14 .0 .2 . 1-( 2 4
14 .0 .3 .1/
TASK:
• Continue with the previous lab configurations
• Only Remove the local preference value on R2
• Advertise the 14.0.0.0 of R4 loopbacks in bgp with exact mask
R2#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
' > 1.0.0.0
0
'
0.0.0.0 0 32768 i
-;': 1.1.1.1 ' > 2.0.0.0 0.0.0.0
0
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 121
0 0 500 i 0 32768 i
,.,i 2.2.2.2 0 100 0i
,., 3.0.0.0 1.1.1.1 0 500 700 i
'''>i 2.2.2.2 0 100 0i
"'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 122
' > 4.0.0.0 1.1.1.1 0 0 500 i
0
'
'
'
'
'
'
0
'
'
0
R3#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
' > il. 0.0.0
0
'
2.2.2.1 0 100 0i
3.3.3.2 0 700 500 i
,., i2.0.0.0 2.2.2.1 0 100 0i
'''> 0.0.0.0 0 32768 i
,., 3.0.0.0 3.3.3.2 0 0 700 i
'''> 0.0.0.0 0 32768 i
,., i4.0.0.0 2.2.2.1 0 100 0 500 i
'> 3.3.3.2 *
0
'
3.3.3.2
' > il0 .0.0.0 2.2.2.1
0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 123
0 0 700 i
0 100 0 500 i
0 700 500 i
0 100 0i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 124
' > il2.0. l.0/ 24 2.2.2.1 0 100 0i
0
'
'
'
0
'
'
'
Here by default both R2 and R3 exit the AS from R3 to reach al R4 14.x.x.x Prefixes.
TASK:
• Configure AS 600 such that only routes ( 14.0.0.0 and 14.0.1.0 ) both networks prefer via R2 to exit the AS
• All the remaining networks should use the default exit ( via R3)
R2
R2(config)#access-list 14 permit 14.0.0.0 0.0.0.255
R2 (config)# access-list 14 permit 14.0.1.0 0.0.0.255
R2 (config-route-map)# exit
R2(config)# route-map LOCAL permit 20
R2 (config-route-map)# exit
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 125
R2(config)# router bgp 600
R2(config-router)# neighbor 1.1.1.1 route-map LOCAL in
R2(config-router)#end
R2#sh ip bgp
BGP table version is 26, local router ID is 12.0.3.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
'
0 0 500 i
-;':
1.1.1.1
0 32768 i
' > 2.0.0.0 0.0.0.0
0
'
,., i 0 100 0i
2.2.2.2
0 500 700 i
-;':
3.0.0.0 1.1.1.1
0 100 0i
'''>i 2.2.2.2
0 0 500 i
' > 4.0.0.0 1.1.1.1
0
'
'
'
'
'
'
'
0 32768 i
' > i30.0.0.0 2.2.2.2
0
'
0 100 0i
-;':
40.0.0.0 1.1.1.1 0 500 700 i
'''>i 2.2.2.2 0 100 0 700 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 126
• Once we configure Local preference on R2 (preferred exit router of AS) for neighbor 1.1.1.1 (Rl) with
direction in (apply to receiving routes).
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 127
• Routes defined in the Route-maps recidving from that neighbor 1.1.1.1 (Rl) will be applied with local
preference value of 2000
• Routes with local preference value applied will also get advertised to all other routers (R3) inside the AS
600.
R3#sh ip bgp
BGP table version is 80, local router ID is 13.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
0 100 0i
-;':
3.3.3.2 0 700 500 i
,., i2.0.0.0 2.2.2.1 0 100 0i
'''> 0.0.0.0 0 32768 i
-;':
3.0.0.0 3.3.3.2 0 0 700 i
'''> 0.0.0.0 0 32768 i
,., i4.0.0.0 2.2.2.1 0 100 0 500 i
'''> 3.3.3.2 0 0 700 i
' > il0 .0.0.0 2.2.2.1 0 100 0 500 i
0
'
'
'
'
'
' '
1
0
0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 129
'>
0
'
0.0.0.0 0 32768 i
30.0.0.0
3.3.3.2 0 0 700 i
'>
0
'
40.0.0.0
R2#traceroute 14.0.0.1
Type escape sequence to abort.
Tracing the route to 14.0.0.10
R2#traceroute 14.0.1.1
Type escape sequence to abort.
Tracing the route to 14.0.1.1
R2#traceroute 14.0.2.1
Type escape sequence to abort.
Tracing the route to 14.0.2.1
R2#traceroute 14.0.3.1
Type escape sequence to abort.
Tracing the route to 14.0.3.1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 130
1 2.2.2.2 132 msec j3f44 msec 64 msec
2 3.3.3.2 188 msec ,., 164 msec
R3#traceroute 14.0.0.1
Type escape sequence to abort.
Tracing the route to 14.0.0.1
R3#traceroute 14.0.1.1
Type escape sequence to abort.
Tracing the route to 14.0.1.1
R3#traceroute 14.0.2.1
Type escape sequence to abort.
Tracing the route to 14.0.2.1
R3#traceroute 14.0.3.1
Type escape sequence to abort.
Tracing the route to 14.0.3.1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 131
BGP Path Selection (order of path selection)
► The BGP forwarding tab le usua lly has mu lt i ple paths fro m which to choose for each
network.
► BGP is not de signed to perform load balanci ng:
0
Paths are chosen because of policy ( att ri butes ).
0
Paths are not chos en based o n bandwidth.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 134
BGP Path-Selection Process
-Advance BGP Attributes
AS-Path Attribute
20.2.2.0
AS 65444
20.2.2.0 20.2.2.0
AS 65222 65333 AS 65333
65444 65444
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 135
AS-Path Attribute
R2
AS200
IrFo.01.1/.101• FW O I
3 0. 1.1. 1/,
AS400
AS-Path Prepending
0
Manual manipulation of AS-path length is
called AS-path Prepending.
0
The AS path should be extended with
multiple copies of the AS number of the
sender.
0
AS-path Prepending is used to:
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 136
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 137
com
Changing outbound Traffic
By default AS-500 exit via R4/R1 to reach AS 700 route (30.0.0.0) because of shortest AS-path
Configure AS-500 to ensure that all routers in AS 500 should exit Rl to reach AS 700 (30.0 .0.0)
0/
l .l /
t 0 . 1.1.1/8
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 138
Changing inbound Traffic using AS-path Prepend
R3#sh ip bgp 10.0.0.0
BGP routing table entry for 10.0.0.0/ 8. version 22
Path s: (2 avai lable. best #1. table Default-IP-Rou ting-Table) •,""'°,.. -.
Adv erti sed to update -group s: .,::-·> R2
1
600 500
2.2.2.1 fr o m 2.2.2.1 (12.0.3.1)
Origin IGP, localpref 100 , v alid, externa l, best
500 500 500 500 500
3.3.3.2 from 3.3.3.2 (14.0 .3.1) IPO/OO. J . 1. 1 /9
30 .1.1.l /
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 139
LAB : AS-path Prepend
....
.
N
d'
,? : t.,..
·,?
- ...d.. '
R2
AS600
I. F0/0
ro/O
30.1.1.1/
j
0. 1. 1. 1/8
AS700
TASK:
• Configure IBGP & EBGP Peering as per the diagram using directly connected interfaces
Rl#sh ip bgp
BGP table version is 9, local router ID is 11.0.3.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
'
'
'
-;':
30.0.0.0 1.1.1.2
1.1.1.2 0 0 0600
600700
i i
*>i 3.3.3.1 0 100 0700 i
' > i40.0.0.0 4.4.4.1 0 100 0i
0
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 141
16 path entries using 832 bytes of memory
7/4 BGP path/bestpath attribute entries using 868 bytes of memory
4 BGP AS-PATH entries using 96 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 2732 total bytes of memory
BGP activity 8/0 prefixes, 27 /11 paths, scan interval 60 secs
R3#sh ip bgp
BGP table version is 14, local router ID is 13.0.3.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
'
0.0.0.0 0 32768 i
-;':
40.0.0.0 2.2.2.1 0 600 500 i
'''> 3.3.3.2 0 0 500 i
TASK:
• By default AS-500 exit via R4/R1 to reach AS 700 route (30.0.0.0) because of shortest AS-path
• Configure AS-500 to ensure that all routers in AS 500 should exit Rl to reach AS 700 (30.0.0.0)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 142
Rl#traceroute 30.1.1.1
Type escape sequence to abort.
Tracing the route to 30.1.1.1
Rl#traceroute 30.1.1.1
Type escape sequence to abort.
Tracing the route to 30.1.1.1
TASK:
• Configure AS 500 to ensure that the traffic from 30.0.0.0 to 10.0.0.0 ( return traffic) should use the same
path as forwarding traffic ( R1-R2-R3)
R3#traceroute 10.1.1.1
Type escape sequence to abort.
Tracing the route to 10.1.1.1
• When you are manually manipulating AS paths, the only valid AS number that you can prepend is the AS
number of the sender.
• Prepending any other AS number will cause problems.
R3#traceroute 10.1.1.1
Type escape sequence to abort.
Tracing the route to 10.1.1.1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 144
MED (Multi Exit Discriminator)
Rl#sh ip bgp
BGP table versi on is 15. local router ID i s 11.0.3.1
Status codes: s suppressed. d damped. h history, • vali d. > best, i - inte rnal.
r RIB-failu re. S Stale
O rigin codes: i - IGP. e - EGP. ? - incomplete
..
Netwo rk Next Hop Metric LocPrf Weight Path
* > 1.0.0.0 0.0.0.0 0 32768 i R2
4.4.4.1 0 700 600 i
1.1.1.2 0 0600 i
• 2.0.0.0
*>
4.4.4.1
1.1.1.2 0
0 700 600 i
0600 i .. - L
* 3.0.0.0
*>
*> 4.0.0.0
4.4.4.1
1.1.1.2
0.0.0.0
0
0
0 700 i
0600 i
32768 i
4"
* 4.4.4.1 0 0700 i
*> 10.0.0 .0 0.0 .0.0 0 32768 i
., 20.0.0.0 4.4.4.1 0 700 600 i
*> 1.1.1.2 0 0600i
AS700
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 145
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 146
com
TASK: Configure AS 500 to exit via Rl - R4( AS 700) to reach AS 600
Rl #sh ip bgp
BGP tab le version is 20. local router ID is 11.0.3.1
Status codes: s suppressed. d damped. h history.• valid. > best . i - internal.
R2
r RIB-failure. S Stale
Orig in codes: i - IGP. e - EGP. ? - incomplete
AS600
l
.
Network Next Hop Metric LocPrf Weight Path
* > 1.0.0.0 0.0.0.0 0 32768 i
4.4.4.1 4000 700 600 i
.
* 1.1.1.2 0 0600 i
'' > 2.0.0.0 4.4.4.1 4000 700 600 i AS SOO
..
*> 3.0.0.0 1.1.1.2
4.4.4.1 0 0 0600
4000i 700 i
1.1.1.2 0600 i
*> 4.0.0.0 0.0.0.0 0 32768 i
4.4.4.1 0 4000 700 i AS700
*> 10.0.0.0 0.0.0.0 0 32768 i
*> 20.0.0.0 4.4.4.1 4000 700 600 i
.
1.1.1.2 0 0600 i
*> 30.0.0.0 4.4.4.1 4000 700 600 i
1.1.1.2 0600 i
4.4.4.1 0 4000 700 i
1.1.1.2 0 600 700 i
TASK:
• Configure AS 500 to ensure that the return traffic from AS-600 also should use the same path ( R2-R3-R4) as
exit .
• Path selection from AS-600 ( return traffic) should not be done based on AS-path (instead use MED)
• Do not use local preference or weight in AS 600
.
R2
2. Modify AS-path
3. Using MED 30 •
R3
AS 500
....,,-,.. ..
Possible solu tio ns using MED : .,.,.. ._\"'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 147
TASK:
• Configure AS 500 to ensure that the return traffic from AS-600 also should use the same path ( R2 -R3 -R4 ) as
exit.
• Path selection from AS-600 ( return traffic) should not be done based on AS-path (instead use MED)
• Do not use local preference or weight in AS 600
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 148
LAB: MULTI-EXIT DISCRIMINATOR (METRIC)
AS600
- 1F0/0
r 0.1.1.1/8
32T
AS 500
R3
f
AS700
TASK:
• Configure basic IBGP and EBGP peering using direcly connected interfaces
• Advertise all the Networks as per the Diagram
• Make sure that the next-hop address should be the next router address
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 150
R3(config)#router bgp 600
R3 (config-router)#neighbor 2.2.2.1 remote-as 600
R3(config-router)#neighbor 3.3.3.2 remote-as 700
R3 (config-router)#network 30.0.0.0
R3 (config-router)#network 3.0.0.0
R3 (config-router)#network 2.0.0.0
R3 (config-router)#no auto-summary
R3 (config-router)#no synchronization
R3 (config-router)#end
R4#sh ip bgp
BGP table version is 9, local router ID is 14.0.3.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
'
-;':
4.4.4.2 0 500 600 i
-;':
3.0.0.0 4.4.4.2 0 500 600 i
-;':
3.3.3.1 0 0 600 i
'''> 0.0.0.0 0 32768 i
' > 4.0.0.0 0.0.0.0 0 32768 i
0
'
-;':
4.4.4.2 0 0 500 i
-;':
10.0.0.0 3.3.3.1 0 600 500 i
'''> 4.4.4.2 0 0 500 i
' > 20.0.0.0 3.3.3.1 0 600 i
0
'
-;':
4.4.4.2 0 500 600 i
-;':
30.0.0.0 4.4.4.2 0 500 600 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 151
'''> 3.3.3.1 0 0 600 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 152
'>
0
'
0.0.0.0 0 32768 i
40.0.0.0
R4#
R3#sh ip bgp
BGP table version is 10, local router ID is 13.0.3.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
'
'
'
'
R2#sh ip bgp
BGP table version is 9, local router ID is 12.0.3.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
'
'
-;':
40.0.0.0 1.1.1.1 0 500 700 i
'''>i 3.3.3.2 0 100 0 700 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 153
R2#sh ip route bgp
B 3.0.0.0/8 [200/0] via 2.2.2.2, 00:22:13
B 4.0.0.0/8 [20/0] via 1.1.1.1, 00:23:11
B 40.0.0.0/8 [200/0] via 3.3.3.2, 00:00:18
B 10.0.0.0/8 [20/0] via 1.1.1.1, 00:23:11
B 30.0.0.0/8 [200/0] via 2.2.2.2, 00:22:13
R3#sh ip bgp
BGP table version is 11, local router ID is 13.0.3.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
'
'
'
'
R2#sh ip bgp
BGP table version is 10, local router ID is 12.0.3.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
'
'
'
'
-;':
40.0.0.0 1.1.1.1 0 500 700 i
'''>i 2.2.2.2 0 100 0 700 i
TASK: Configure AS 500 to exit via Rl- R4( AS 700) to reach AS 600
Rl#sh ip bgp
BGP table version is 15, local router ID is 11.0.3.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
-;':
4.4.4.1 0 700 600 i
-;': 1.1.1.2 0 0 600 i
-;':
2.0.0.0 4.4.4.1 0 700 600 i
'''> 1.1.1.2 0 0 600 i
-;':
3.0.0.0 4.4.4.1 0 0 700 i
'''> 1.1.1.2 0 600 i
' > 4.0.0.0
0.0.0.0 0 32768 i
'
0
-;':
4.4.4.1 0 0 700 i
' > 10.0.0.0
0.0.0.0 0 32768 i
'
0
-;':
20.0.0.0 4.4.4.1 0 700 600 i
*> 1.1.1.2 0 0600i
-;':
30.0.0.0 4.4.4.1 0 700 600 i
'''>
' > 40.0.0.0 1.1.1.2 0 600 i
4.4.4.1 0 0 700 i
'
0
-;':
1.1.1.2 0 600 700 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 155
700 600
4.4.4.1 from 4.4.4.1 (14.0.3.1)
Origin IGP, localpref 100, valid, external
600
1.1.1.2 from 1.1.1.2 (12.0.3.1)
Origin IGP, metric 0, localpref 100, valid, external, best
Rl#traceroute 20.1.1.1
Type escape sequence to abort.
Tracing the route to 20.1.1.1
Rl#traceroute 30.1.1.1
Type escape sequence to abort.
Tracing the route to 30.1.1.1
Rl#sh ip bgp
BGP table version is 20, local router ID is 11.0.3.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
'
-;':
4.4.4.1 4000 700 600 i
-;': 1.1.1.2 0 0 600 i
' > 2.0.0.0 4.4.4.1 4000 700 600 i
0
'
'
'
-;':
4.4.4.1 0 4000 700 i
' > 10.0.0.0 0.0.0.0 0 32768 i
0
'
'
-;':
1.1.1.2 0 600 i
' > 40.0.0.0 4.4.4.1 0 4000 700 i
0
'
TASK:
• Configure AS 500 to ensure that the return traffic from AS-600 also should use the same path ( R2-R3-R4) as
exit.
• Path selection from AS-600 ( return traffic) should not be done based on AS-path (instead use MED)
• Do not use local preference or weight in AS 600
R2#sh ip bgp
BGP table version is 20, local router ID is 12.0.3.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 2 0.0
,., 1.0.0.0 .
'''> 0
'> .
0
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 157
Next Hop 1.1.1.1 M
0.0.0.0 e
0.0.0.0 t
r
i
c
L
o
c
P
r
f
W
e
i
g
h
t
P
a
t
h
5
0
0
i
0
32768 i
0
32768
i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 158
,.,i
2.2.2.2 0 100 0i
,., 3.0.0.0 1.1.1.1 0 500 700 i
'''>i 2.2.2.2 0 100 Oi
' > 4.0.0.0
0
'
1.1.1.1 0 0 500 i
,.,i
2.2.2.2 0 100 0 700 i
'>
0
'
1.1.1.1 0 0 500 i
10.0.0.0 0.0.0.0 0 32768 i
'>
0
'
2.2.2.2 0 100 0i
20.0.0.0 1.1.1.1 0 500 700 i
' > i30.0.0.0 2.2.2.2
0
'
0 100 0 700 i
,., 40.0.0.0
'''>i
R2#traceroute 10.1.1.1
Type escape sequence to abort.
Tracing the route to 10.1.1.1
R3#traceroute 10.1.1.1
Type escape sequence to abort.
Tracing the route to 10.1.1.1
• AS 600 is exiting via R2 as per the based on default AS path ( shortest AS- path) to reach AS 500 (10.0.0.0)
• In order to ensure that we can ask AS 600 to configure local preference higher on R3( exit router) to prefer.
Possible solutions :
1. Using local preference in AS 600 ( But here we cannot use local preference or weight inside AS 600 as per
the requirement).
2. Modify AS-path ( Alternate solution will be , on AS 500 we can modify the AS-path and increase the AS
path while advertising to R2 ( AS 600) .
3. Using MED ( here our requirment is modify the return traffic based on Metric and not based on AS-path)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 159
R3#sh ip bgp 10.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 160
BGP routing table entry for 10.0.0.0/8, version 28
Paths: (2 available, best #2, table Default-IP-Routing-Table)
Advertised to update-groups:
2
700 500
3.3.3.2 from 3.3.3.2 (14.0.3.1)
Origin IGP, localpref 100, valid, external
500
2.2.2.1 from 2.2.2.1 (12.0.3.1)
Origin IGP, metric 0, localpref 100, valid, internal, best
R3#
R2#sh ip bgp
BGP table version is 22, local router ID is 12.0.3.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
'
'
'
• You should use the MED in the route selection process only if both (all) paths come from the same AS.
• Use the bgp always-compare-med command to force the router to compare the MED even if the paths come
from different autonomous systems.
• You need to enable this option in the entire AS; otherwise, routing loops can occur.
R2/R3
Rx(config)#router bgp 600
Rx(config-ro uter)# bgp always-compare-med
Rx(config-router)#exit
R2#traceroute 10.1.1.1
Type escape sequence to abort.
Tracing the route to 10.1.1.1
R3#traceroute 10.1.1.1
Type escape sequence to abort.
Tracing the route to 10.1.1.1
• AS-path is compared for BGP path selection and shortest AS-path is prefered in order to ensure that path
selection process to be done based on MED( metric) and not based on AS-path
• we can Configure AS 600 routers to ignore AS-path and compare MED value
• we are assuming that there is no local preference or weight used in AS 600 (incase if weight or
localpreference used in AS 600 then it will not use MED )
• MED is weaker metric than Localpreference or weight
R2/R3
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 164
BGP summarization
SUMMARIZATION
AS 1
192.168.8.0/22
- - - - ►
so
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 165
BGP Summarization (Aggregation)
► It reduces the size of routing table
► It minimizes the number of routing updates.
► More complex than IGP protocols
In order to summarize at least one subnet must be in the BGP table (# sh ip bgp)
AS 1
192 .168 .8 .0/2
2- - - - ►
so
R2#sh ip bgp I in 13
''> 13.0.0.0/24 2.2.2.2 0 0 300 i
'' > 13.0.1.0/ 24
* > 13.0.2 .0/
2.2.2.2
2.2.2.2
0 0 300 i
0 0 300 i I
24 2.2.2.2 0 0 300 i I
'' > 13.0.3 .0/
24
AS \ 1 3. 0. 3. 1/ 2
300
_.,,,..3. 8
"-.:,_ R3 ,'
R2#sh ip bgp I in 13
'' > 1, 3 0.0.0 / 24 2.2.2.2 0 0 300 i
* > 13.,0 ,0 0/ 22 2.,2 2.2 0 0 300 I
'' > 13.0.1.0/ 24 2.2.2.2 0 0 300 i
'' > 13.0.2.0/2 4 2.2.2 .2 0 0 300 i
'' > 13.0.3.0/24 2.2.2.2 0 0 300 i
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 166
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 167
com
R3(config)#router bgp 300
R3(config-router)#aggregate-address 13.0.0.0 255.255.252.0 summary-only
R3#sh ip bgp I in 13
BGP tab le version is 16, lo cal router ID
s > 13.0.0.0/24
is 13.0.3 .1
0.0.0.0 0 32768 i I
* > 13.0.0.0/22 0.0.0.0 32768 i I
s > 13.0.1.0/24 0.0.0.0 0 32768 i
s > 13.0.2.0/24 0.0.0.0 0 32768 i
s > 13.0.3 .0/24 0.0.0.0 0 32768 i _ _..,,.. ,,,.,-- -·--. .
/' · R3 loopbac ks"'
AS200 .' f / -1.,,.,.. 13 . 0 . 0 . 1/ 24 '.
, - 0 13 .0 . 1.1/ 24 \
13 .0.2 . 1/ 24
1 3. 0. 3. 1/ 2
FO/
_..,,..3o y .1 8
"-.:,. R3 ••
R2#sh ip bgp I in 13
'' > 13.0 .0 .0/2 2 2.2.2.2 0
0 300 i
R2#sh ip bgp I in 14
s> 14.0 .0.0/ 24 2.2.2 .2 0 300 400 i
*> 0.0 .0.0 32768 i
14.0.0.0/22
5 > 14. 0. 1.0/24 2.2.2.2 0 300 400 i
s> 14 .0. 2.0/24 2.2.2 .2 0 300 400 i
s> 14.0 . 3.0/24 2.2.2.2 0 300 400 i
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 168
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 169
com
BGP summarization: AS-set option
► Aggregation hides information previous found in the specific prefixes. This includes all
attributes, such as NEXT_HOP, AS_PATH and so on.
► The new prefi x appea rs to be originated from within the local AS.
Ro uti ng lo op s
:. , .,,,,.-·· - .
_
. ", Rl AS 100/
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 170
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 171
com
TASK:
• Configure R2 to preserve the AS path information along with agregate address
' ·
, \ .:, /. 1
- .
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 172
Suppress-Maps
I
/ -i -- -=.-
• Configure RI to advertise the summary address (11.0 .0 .0/2 2) along with two speciififc prefixes( 11.0 .0.1/2 4,
11.0.1.1/24) 12.0 .0.1, 2 ♦ ••
: !!!::::: \
Rl (config)#access-list 11 permit 11.0.2.0 0.0.0.255 ( M
·. :.,,..,._. ._._,,.. :
I
Rl (config)#access-list 11 permit 11.0 . 3.0 0.0.0.255 ,,$,• · -:.-. /
.._Y '-- J\2- - . .--;; .:;: "\
Rl(config)#route-map SUP permit 10 , · .0:::::!
• 13.0 .0 . l/ :Z4 •.
Rl (config-route-map)#match ip address 11
Rl (config-route-map)#exit - :" .UM ::: · " '
, 13.0.3 . 1/ 24
- ..
11,0 . 1. 1/ 24 •
!!: :i !: :, . ' 30y .1 •
/ .·
/ ,,,,,-:- - _....·
,,,, . . . -- ·· · ·- ---...
0 ,,"• ·- ....... ..
11.:::::S.. V..,, -.;ttt locipHCb R41oop11Mb . \
· •
,, 14 .0 .0 . 1/ 24
14.0.1,1/ :14
12.0.10.1/24
12.0 . 11. 112• :
. 1
\ •• 1 :; 1 4. 0, 2. 1 / 24 1 2, 0 11.1/24 /
i--= 14 . 0.3 . 1 / 24 12.0 . 13.1/24 •·
....... g.................
_ .,,..,....
/
Rl(config)#router bgp 100
Rl (config-router)#aggregate-address 11.0.0.0 255.255.252.0 suppress-map SUP summary-only
Suppress-Maps
Rl#sh ip bgp I in 11
BGP table version is 69. local ro ut er ID is 1
> 11.0 .0.0/ 24 0.0.0 .0 0
1
-.0.3-. 1-
32768?
*> 11.0.0.0/22 0.0.0.0 32768 i
> 11.0 .1.0/24 0.0.0.0 0 32768?
11.0. 2.0/ 24 0.0.0.0 0 32768 ?
.0. 3.0/24 0.0.0.0 0 32768 ?
s> 12.0. 11.0/24 1.1.1.2 0 200 300 400 i
R2#sh ip bgp in 11
* > 11.0.0.0 /24 1.1.1.1 0 0100?
*> 11.0 .0.0/ 22 1.1.1.1 0 0100 i
* > 11.0. 1.0/24 1.1.1.1 0 0100?
* > 12 .0.11.0/2 4 2.2.2.2 0 300 400 i
1 .1.,,.
RS#sh ip bgp I in 11 i
\' - ..- :.-- ·
'' > 11.0.0.0/ 24 10.1.1.1 0 0100?
''> 11.0.0.0/ 22 10.1.1.1 0 0100 i
*> 11.0. 1.0/24 10.1.1.1 0 0 100?
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 173
Un-Suppress-Maps
R l (config)#ip prefix-list CClE permit 11.0.0 .0/2 4 Rl (config )#ip prefix-list CCIE
permit 11.0 .1.0/24
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 174
LAB : BGP Summarization (Aggregation):
--.
,,,..----0 --
I
0f;< . . \
. 0
..
N
-
-
..
_ _,,,, ,,,..---
i> / ' 'R3 loopbac k
y· _13.0.0.1/24 ,
AS 200 \
--
I
:.,..,0, 13 .0 .1. 1 / 24
•il ,·i)_, \
/ -: <P 13.0.2.1/24
\' 13.0.3.1/24
'
) AS300\
TASK:
• configure BGP on R1/R2/R3 as per the diagram
• Advertise the loopback interfaces of R3 in BGP using Network command
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 175
R3(config-ro uter)# netw o rk 13.0.2.0 mask 255.255.255.0
R3(config-ro uter)# netw o rk 13.0.3.0 mask 255.255.255.0
R3(config-router)#end
R2#sh ip bgp
BGP table version is 20, local router ID is 12.0.3.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
'
'
Rl#sh ip bgp
BGP table version is 10, local router ID is 11.0.3.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
'
' '>
0
1.1.1.2 0 0 200 i
10.0.0.0 0.0.0.0 032768 i
' > 13.0.0.0/24 1.1.1.2 0 200 300 i
0
'
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 177
' > 13.0.2.0/24 1.1.1.2 0 200 300 i
0
'
'
'
'
0
TASK:
• Configure R3 to summarize loopback routes as 13.0.0.0/22
R2#sh ip bgp I in 13
'> 2.2.2.2 0 0 300 i
0
'
'
'
13.0.2.0/24
'>
0
'
13.0.3.0/24
R3#sh ip bgp
BGP table version is 12, local router ID is 13.0.3.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
'
'
'
'
'
R2#sh ip bgp I in 13
' > 13.0.0.0/24 2.2.2.2 0 0 300 i
0
'
'
'
2.2.2.2 0 0 300 i
• Aggregate-address command advertises the aggregate route along with the individual prefixes.
• if we want to suppress(remove) those individual prefixes and advertise only the summary address we use
summary-only command
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 178
R3(config)#router bgp 300
R3(config-router)#aggregate-address 13.0.0.0 255.255.252.0?
advertise-map Set condition to advertise attribute
as-set Generate AS set path information
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 179
attribute-map Set attributes of aggregate
nlri Nlri aggregate applies to
route-map Set parameters of aggregate
s umma !Y-o n l)'.'. Filter more S Qe cific routes from u date 9
suppress-map Conditionally filter more specific routes from updates
<er>
• If you didn't specify any additional options to the command, it will create a new prefix in the BGP table,
with an empty AS_PATH.
• It would look like the new prefix was originated in the local AS.
• The new prefix will automatically have the weight value of 32768 and get a special attribute called
ATOMIC_AGGREGATE assigned.
• The ATOMIC AGGREGATE attribute is informational, and tells the other BGP speakers that this prefix is a
result of route aggregation and some information (like AS_PATH or other attributes) from the original
prefixes may be missing.
• BGP attaches another attribute called AGGREGATOR to the summarized prefix. This attribute specifies the
AS number and the BGP router-ID of the aggregating router.
• Just like the ATOMIC_AGGREGATE, the new attribute is also informational.
R3#sh ip bgp I in 13
BGP table version is 16, local router ID is 13.0.3.1
s> 13.0.0.0/24 0.0.0.0 0 32768 i
*> 13.0.0.0/22 0.0.0.0 32768 i
s> 13.0.1.0/24 0.0.0.0 0 32768 i
s> 13.0.2.0/24 0.0.0.0 0 32768 i
s> 13.0.3.0/24 0.0.0.0 0 32768 i
R2#sh ip bgp I in 13
' > 13.0.0.0/22 2.2.2.2 0 0 300 i
0
'
R2#sh ip bgp
BGP table version is 25, local router ID is 12.0.3.1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 180
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
0 32768 i
,., 2.0.0.0 2.2.2.2
0 0 300 i
'> 0.0.0.0 0 32768 i
0
'
'
'
'
AS-SET option :
• Aggregation hides information previous found in the specific prefixes. This includes all attributes, such as
NEXT_HOP, AS_PATH and so on.
• The new prefix appears to be originated from within the local AS.
• This causes no problems if all specific prefixes belong to the local AS.
• However, when you summarize prefixes learned from other ASes, information hiding may result in the
following
1. Suboptimal routing, due to the loss of path information, such as AS_PATH, MED and so on.
2. Routing lo o ps, as removal of AS_PATH attribute and replacement it with an empty list will prevent BGP
loop-detection mechanism from working properly.
• To overcome it, it is possible to insert a special new member into the AS_PATH of the newly created
summary prefix.
• This can be done with an option called AS_SET
• Once we configure AS_SET the AS numbers found in all AS_PATHs of the specific prefixes.
• This list of AS numbers is unordered, unlike the regular AS_SEQUENCE element. It's only use is for routing
loop prevention mechanism.
• when BGP receives a prefix it scans the AS_PATH attribute. If the local AS number is found in any of the
AS_SET or AS_SEQUENCE elements, the prefix is dropped.
• By default, the aggregated address in BGP will not include the AS-Set information.
• In order to force the use of this information, specify the as-set option
o (Config-router)# aggregate-address <subnet> <mask>as-set.
TASK:
• Continue with same configs and add R4 to existing topology
• Configure R4 in AS 400 and advertise loopbacks of R4 in BGP
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 181
_ .,..,,,, ......--- ------
-i> / ' ' R3 loopback
, - - _ \P 13.0.0.1/24 ,
:,,,,,,"".: '
, ·,,i)_,0,
13 .0 .1. 1 / 2 4 \
d' 13.0.2.1/24
1 3. 0. 3. 1/ 2 4
\.
.
}
FO/
370 .1 s
,
R3 .,..,,,- -
'--- _
'?,· '.
Rl AS 100/
.....-.-- ---- -
.,..,,,, <?,<· ?,· - - -
R4
\ AS 400
__ .,..
,,,,
R4(config)#router bgp 400
R4(config-router)#no auto-summary
R4(config-router)#no synchronization
R4(config-router)#neighbor 3.3.3.1 remote-as 300
R4(config-router)#network 40.0.0.0
R4(config-router)#network 14.0.0.0 mask 255.255.255.0
R4(config-router)#network 14.0.1.0 mask 255.255.255.0
R4(config-router)#network 14.0.2.0 mask 255.255.255.0
R4(config-router)#network 14.0.3.0 mask 255.255.255.0
R4(config-router)#end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 183
BGP activity 15/0 prefixes, 15/0 paths, scan interval 60 secs
R3#sh ip bgp
BGP table version is 21, local router ID is 13.0.3.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
'
'
'
'
'
'
'
'
'
'
0
R2#sh ip bgp I in 14
' > 14.0.0.0/24 2.2.2.2 0 300 400 i
0
'
'
'
R2#sh ip bgp I in 14
s> 14.0.0.0/24 2.2.2.2 0 300 400 i
*> 14.0.0.0/22 0.0.0.0 32768 i
s> 14.0.1.0/24 2.2.2.2 0 300 400 i
s> 14.0.2.0/24 2.2.2.2 0 300 400 i
s> 14.0.3.0/24 2.2.2.2 0 300 400 i
R2#sh ip bgp
BGP table version is 25, local router ID is 12.0.3.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
'
'
0
'
'
Rl#sh ip bgp
BGP table version is 35, local router ID is 11.0.3.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
'
1.1.1.2 0 0 200 i
' > 10.0.0.0
0
'
0.0.0.0 0 32768 i
'>
0
'
1.1.1.2 0 200 300 i
13.0.0.0/22
*> 14.0.0.0/22 1.1.1.2 0 0 200 i
' > 20.0.0.0 1.1.1.2 0 0 200 i
0
'
'
'
R3#sh ip bgp I in 14
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 186
' > 14.0.0.0/24 3.3.3.2 0 0400 i
0
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 187
*> 14.0.0.0/22 2.2.2.1 0 0200 i
' > 14.0.1.0/24 3.3.3.2 0 0400 i
0
'
'
'
0
R4#sh ip bgp I in 14
BGP table version is 13, local router ID is 14.0.3.1
' > 14.0.0.0/24 0.0.0.0 0 32768 i
0
'
'
'
'
TASK:
• Configure R2 to preserve the AS path information along with agregate address
'
0.0.0.0 0 32768 i
' > 10.0.0.0
0
'
1.1.1.1 0 0100 i
'>
0
'
2.2.2.2 0 0 300 i
13.0.0.0/22 s> 2.2.2.2 0 300 400 i
14.0.0.0/24
'> 0.0.0.0 32768 i
0
'
14.0.0.0/22
s> 14.0.1.0/24 2.2.2.2 0 300 400 i
s> 14.0.2.0/24 2.2.2.2 0 300 400 i
s> 14.0.3.0/24 2.2.2.2 0 300 400 i
'
'
30.0.0.0
'>
0
'
40.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 188
Rl#sh ip bgp I in 14.
,., > 14.0.0.0/22 1.1.1.2 0 0 200 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 189
advertise-map Set condition to advertise attribute
as-set Generate AS set path information
attribute-map Set attributes of aggregate
route-map Set parameters of aggregate
summary-only Filter more specific routes from updates
suppress-map Conditionally filter more specific routes from updates
<er>
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 190
/
\ .'
( I
\
"
10 . 1-.,1. 1/ 8
. _ __ R1 AS
·· - -- --...
"
,o \ 'b
1 00 /
. ,,,
...
0
'!
,,,,.- . -. >•
\ '!,·
loopbacka R4 loopb cka \
'\ .. 0
14 .0 .0 . 1/ 24
14 .0 . 1. 1/ 24
12 .0 . 10 .1 / 2 4
12 .0 . 11 . 1/ 2 4
.......
14 .0 . 3 . 1/ 2 4 12 .0 .13.1/ 2 4,
0
I \.
I'
R4 o 14 .0 .2 . 1/
24 12 .0 .12 .1/ 2 4 /
{ . ----.-..._- f .- .. ,,/
-'-.. i AS400
. .,,,
.
\. RS
ASSOO
/
-- -- --- -·-
.-
'-..
Rl(config)#router bgp 100
··-
Rl(config-router)#neighbor 10.1.1.5 remote-as 500
Rl (config-router)#exit
TASK:
• Advertise the loopback interfaces of R2 ( 12.0.0.1/24 , 12.0.1.1/24, 12.0.2.1/24, 12.0.3.1/24) in BGP
• Add lopback interfaces on R4 as given and adveritsed them in BGP on R4
• (12.0.10.1/24, 12.0.11.1/24, 12.0.12.1/24, 12.0.103.1/24)
R4(config)#int loop 10
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 192
R4(config-if)# ip address 12.0.10.1 255.255.255.0
R4(config-if)# int loop 11
R4(config-if)# ip address 12.0.11.1 255.255.255.0
R4(config-if)# int loop 12
R4(config-if)# ip address 12.0.12.1 255.255.255.0
R4(config-if)# int loop 13
R4(config-if)# ip address 12.0.13.1 255.255.255.0
R4(config-if)#exit
TASK:
• Configure Rl to summarize the 12. Networks ( in to one summary address) before it advertises to other
routers (RS)
R2#sh ip bgp I in 12
BGP table version is 34, local router ID is 12.0.3.1
' > 12.0.0.0/24 0.0.0.0 0 32768 i
0
'
'
'
'
'
'
'
'
Rl#sh ip bgp I in 12
' > 12.0.0.0/24 1.1.1.2 0 0 200 i
0
'
'
'
'
'
'
'
Rl#sh ip bgp I in 12
s> 12.0.0.0/24 1.1.1.2 0 0 200 i
' > 12.0.0.0/20 0.0.0.0 32768 i
0
'
R5#sh ip bgp
BGP table version is 10, local router ID is 10.1.1.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
'
0 0100 i
' > 2.0.0.0 10.1.1.1
0
'
0100 200 i
,., 10.0.0.0 10.1.1.1
0 0 100 i
'> 0.0.0.0
0
'
0 32768 i
' > 12.0.0.0/20 10.1.1.1 0 0100 i
0
'
'
'
'
'
R5#sh ip bgp I in 12
' > 12.0.0.0/20 10.1.1.1
0
'
0 0100 i
TASK:
Confiure Rl to preserve the AS path information when summarizing 12. Networks
Rl#sh ip bgp I in 12
s> 12.0.0.0/24 1.1.1.2 0 0 200 i
' > 12.0.0.0/20 0.0.0.0 32768 i
0
'
Rl#sh ip bgp I in 12
s> 12.0.0.0/24 1.1.1.2 0 0 200 i
'> 0.0.0.0 100 32768 {200,300,400} i
0
'
12.0.0.0/20
s> 12.0.1.0/24 1.1.1.2 0 0 200 i
s> 12.0.2.0/24 1.1.1.2 0 0 200 i
s> 12.0.3.0/24 1.1.1.2 0 0 200 i
s> 12.0.10.0/24 1.1.1.2 0 200 300 400 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 194
s> 12.0.11.0/24 1.1.1.2 0 200 300 400 i
s> 12.0.12.0/24 1.1.1.2 0 200 300 400 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 195
s> 12.0.13.0/24 1.1.1.2 0 200 300 400 i
RS#sh ip bgp I in 12
' > 12.0.0.0/20 10.1.1.1 0 0 100 {200,300,400} i
0
'
SUPPRESS-MAP:
• When you specify the summary-only keyword, all specific prefixes are suppressed.
• It is possible to suppress prefixes selectively, using a route-map associated via the parameter suppress-map.
• The prefixes permitted by this route-map are suppressed; prefixes denied by this route-map are NOT
suppressed when performing summarization.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 196
/ R3loopb cb "'
11.0.0.1/ 24,
( 11.0.1.1/ 24.)
11.0.2.1/24
\ 11.0.3.1/24
/
-'?I•
Rl AS 100
-
. _./
-- -- -. ,o r,\'ti
-··
< loopbacb R4loopb cb\
(
- -
o 14.0.0.1/ 2412.0.10.1/ 24
--
14.0.1.1/ 2412.0.11.1/24
.
00
' --
R4o-"! 14.0.2.1/ 24 12.0.12.1/24 /
( \ f. ;
14.0.3.1/ 24 12.0.13.1/ 24 ,
,,,-/
. .. g
I - ----"--- -- '- . AS 400
- .-
-..--
Rl(config)#route-map CONNECTED - permit
- - 10
Rl(config-route-map)#match interface loopback 0
- -
Rl(config-route-map)#match interface loopback 1
Rl(config-route-map)#match interface loopback 2
Rl(config-route-map)#match interface loopback 3
R1(config-route-map)#exit
Rl#sh ip bgp I In 11
BGP table version is 52, local router ID is 11.0.3.1
' > 11.0.0.0/24 0.0.0.0 0 32768?
0
'
'
'
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 197
Rl(config)# access-list 11 permit any
Rl#sh ip bgp I in 11
BGP table version is 69, local router ID is 11.0.3.1
' > 11.0.0.0/24 0.0.0.0 0 32768?
*> 11.0.0.0/22 0.0.0.0 32768 i
' > 11.0.1.0/24 0.0.0.0 0 32768?
11.0.2.0/24 0.0.0.0 0 32768 ?
.0.3.0/24 0.0.0.0 0 32768?
s> 12.0.11.0/24 1.1.1.2 0 200 300 400 i
R2#sh ip bgp I in 11
' > 11.0.0.0/24 1.1.1.1 0 0 100 ?
' > 11.0.0.0/22 1.1.1.1 0 0 100 i
0
'
'
R5#sh ip bgp I in 11
'> 10.1.1.1 0 0100?
0
'
'
11.0.0.0/22
' > 11.0.1.0/24
0
'
UNSUPPRESS-MAP:
• Local networks are advertised into BGP and aggregated by the border BGP speakers.
• It is often desirable to load-balancing traffic ingress to the local AS, so that traffic to some subnets enters via
one BGP peer and the other peer is used as the entry point for other subnets.
• Tto accomplish this, you need to advertise all specific prefixes on both uplinks and use AS_PATH prepending
to modify prefixes preference.
• This scheme implements load balancing and provides backup in case of any uplink failures.
TASK:
• Remove the Aggregation done on the Rl in the previous task.
• Confiure Rl to advertise 11.0.0.0/24, 11.0.1.0/24 (unsuppress) when it adveritse only to R2 along with
summary Route.
• The other neighbors should receive only summary routes and should not recieve the above two
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 198
routes mentioned.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 199
Rl(config)#no access-list 11
Rl(config)#no route-map SUP
• When the aggregate route is advertised to the selected peer, all the suppressed prefixes found in the local
BGP table are matched against the configured unsuppress-map.
• The matching prefixes are advertised in addition to the summary prefix.
• Other peers or the local BGP table are not affected by this configuration.
Rl#sh ip bgp I
in 11
BGP table version is 72, local router ID is 11.0.3.1
' > 11.0.0.0/24 0.0.0.0 0 32768?
0
'
'
'
'
Rl#sh ip bgp I in 11
BGP table version is 77, local router ID is 11.0.3.1
s> 11.0.0.0/24 0.0.0.0 0 32768?
' > 11.0.0.0/22 0.0.0.0 32768· 1
s> 11.0.1.0/24 0.0.0.0 0 32768?
s> 11.0.2.0/24 0.0.0.0 0 32768?
s> 11.0.3.0/24 0.0.0.0 0 32768?
s> 12.0.11.0/24 1.1.1.2 0 200 300 400 i
'
0.0.0.0 0 32768?
R2#sh ip bgp I in 11
' > 11.0.0.0/24
0
'
'
'
1.1.1.1 0 0100?
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 200
' > 12.0.11.0/24 2.2.2.2 0 300 400 i
0
'
'
RS#sh ip bgp I in 11
' > 11.0.0.0/22 10.1.1.1 0 0100 i
0
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 201
BGP Route-filtering options
► You might need to control exactly which routes are advertised or redistributed, or which paths are
chosen .
► Advertise only some specific Routes to Neighbor (Security reasons)
► Redistribute Specific Routes
► Preventing Routing loops
► Path Manipulation of some specific Routes
► Changing Metric and Metric-type for specific routes
► Changing The Administrative Distance for Specific Routes
► With BGP
• Control li ng routes to be adve rti sed to ISP
• Control routes to g et in to routing table
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 202
com
BGP route Filtering
ASN 80 ASN 1, ISP 1
ASN 2, ISP 2
ASN 1, ISP 1
ASN 80
TASK:
• Configure Rl to block network 20 .0.0 .0 from getting in to its routing/BGP table of Rl
• use Di stribution list / Access-li st.
FO/OI
4.4.4.1 from 4.4.4.1 (14.0 .3.1)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 203
com
TASK:
• Configure Rl to block network 20.0.0 .0 from getting in to its routing/BGP table of Rl
• use Distribution list /Access-list.
IPO/O F0/01
3 0 . 1 . 1.1 /
.0 . 1 . 1 1/8
TASK:
• Configure Rl to block network 20.0.0 .0 from getting in to its routing/BGP table of Rl
IPO/O PO/OI
30.1 .1 .1 /
.0 . 1 . 1 1/ 8
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 1BO
LAB: BGP Filtering Using ACL. Prefix-list. Route-maps
.....
.
N
IS'
-i>
..,
·,i)./
·,i
....d.. '
R2
AS 200
I. F0/0
AS 100 ,.
30.1.1.1/
j
r 0.1.1.1/ 8
AS300
AS400
TASK:
• Configure Basic EBGP configuration as per the diagram
• Advertise all directly connected interfaces as per diagram
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 1B
1
R3(config-router)#neighbor 3.3.3.2 remote-as 400
R3(config-router)#network 30.0.0.0
R3(config-router)#network 3.0.0.0
R3(config-router)#network
2.0.0.0 R3(config-router)#exit
Rl#sh ip bgp
BGP table version is 10, local router ID is 11.0.3.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
'
-;':
1.1.1.2 0 200 300 i
-;':
4.0.0.0 4.4.4.1 0 0400 i
'''> 0.0.0.0 0 32768 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 182
' > 10.0.0.0 0.0.0.0 0 32768 i
0
'
'
R3#sh ip bgp
BGP table version is 12, local router ID is 13.0.3.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
'
-;':
2.2.2.1 0 0200 i
-;':
3.0.0.0 3.3.3.2 0 0400 i
'''> 0.0.0.0 0 32768 i
' > 4.0.0.0 3.3.3.2 0 0400 i
0
'
-;':
2.2.2.1 0200100 i
-;':
10.0.0.0 3.3.3.2 0400100 i
'''> 2.2.2.1 0200100 i
-;':
20.0.0.0 3.3.3.2 0 400 100 200 i
'''> 2.2.2.1 0 0200 i
' > 30.0.0.0 0.0.0.0 0 32768 i
0
'
-;':
40.0.0.0 2.2.2.1 0 200 100 400 i
'''> 3.3.3.2 0 0400 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 183
TASK:
• Configure Rl to block network 20.0.0.0 from getting in to its routing/BGP table of Rl
• use Distribution list / Access-list.
Rl#sh ip bgp
BGP table version is 9, local router ID is 11.0.3.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
'
-;':
4.4.4.1 0 400 300 i
-;':
3.0.0.0 1.1.1.2 0 200 300 i
'''> 4.4.4.1 0 0400 i
-;':
4.0.0.0 4.4.4.1 0 0400 i
'''> 0.0.0.0 0 32768 i
' > 10.0.0.0 0.0.0.0 0 32768 i
0
'
'
-;':
4.4.4.1 0 400 300 200 i
' > 30.0.0.0 1.1.1.2 0 200 300 i
0
'
-;':
4.4.4.1 0 400 300 i
-;':
40.0.0.0 1.1.1.2 0 200 300 400 i
'''> 4.4.4.1 0 0400 i
To filter Routes either we can configure inbound or outbound direction depending on the router selected to configure .
As per the requirement either we can configure
• On Rl to filter inbound reciveing from both neighbors (
R2/R4) or
• on R2/R4 filter BGP while advertising (outbound)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 184
In this task, the output documented based on the first possible solution( Rl inbound)
OR
'
'
'
'
'
'
'
'
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 186
LAB : BGP filtering using IP prefix-list
R2
AS 200
1- F0/0
F0/0
30.1.1.1/
j
r 0.1.1.1/ 8
AS400
Rl(config)#no access-list 20
Rl(config)#exit
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 187
1.1.1.2 from 1.1.1.2 (12.0.3.1)
Origin IGP, metric 0, localpref 100, valid, external, best
'
'
'
'
1.1.1.1 0 0100 i
'' > 20.0.0.0
0
0.0.0.0 0 32768 i
' > 30.0.0.0 2.2.2.2 0 0 300 i
0
'
'
'
'
'
'
'
'
3.3.3.1 0 0 300 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 188
' > 40.0.0.0 0.0.0.0 0 32768 i
0
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 189
% Network not in table
'
'
'
'
1.1.1.1 0 0100 i
'' > 20.0.0.0
0
0.0.0.0 0 32768 i
' > 30.0.0.0 2.2.2.2 0 0 300 i
0
'
'
'
'
'
'
'
'
'
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 190
Rl#clear ip bgp * soft
TASK:
• Advertise 12.0.0.0 ( four loopback interfaces) of R2 using BGP network command
• Configure Rl to filter the routes ( 12.0.0.0/24 & 12.0.1.0/24) getting in to BGP table /Routing table
• Configure Prefix-based Based filtering only on Rl
R2 Loopbacks
12 .0 .0 .1 / 24
12 .0 .0 .1 / 24
C'I 12.0.0.1/24
i> .,; 2 .0 .0 .1 / 24
..
·;.> ./
·;.>
,. d'
R2 ,
AS200
-1 F0/0
roto
30 . 1. 1.
j
0. 1. 1.1 /8 1/
AS300
AS400
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 191
R2 (config-router)#network 12.0.0.0 mask 255.255.255.0
R2 (config-router)#network 12.0.1.0 mask 255.255.255.0
R2 (config-router)#network 12.0.2.0 mask 255.255.255.0
R2(config-router)#network 12.0.3.0 mask 255.255.255.0
R2 (config-router)#exit
R2#sh ip bgp
BGP table version is 21, local router ID is 12.0.3.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 LocPrfWeight Path
,., 1.0.0.0 1.1.1.1 0 0 100 i
'''> 0.0.0.0 0 32768 i
-;':
2.0.0.0 2.2.2.2 0 0 300 i
'''> 0.0.0.0 0 32768 i
-;':
3.0.0.0 1.1.1.1 0100 400 i
'''> 2.2.2.2 0 0 300 i
' > 4.0.0.0 1.1.1.1 0 0100 i
0
'
-;':
2.2.2.2 0 300 400 i
' > 10.0.0.0 1.1.1.1 0 0100 i
0
'
'
'
'
'
'
'
-;':
40.0.0.0 1.1.1.1 0100 400 i
Network Next Hop Metric LocPrf Weight Path
'''> 2.2.2.2 0 300 400 i
Rl#sh ip bgp
BGP table version is 22, local router ID is 11.0.3.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
'
-;':
4.4.4.1 0 400 300 i
-;':
3.0.0.0 1.1.1.2 0 200 300 i
'''> 4.4.4.1 0 0400 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 192
-;':
4.0.0.0 4.4.4.1 0 0400 i
'''> 0.0.0.0 0 32768 i
' > 10.0.0.0 0.0.0.0 0 32768 i
0
'
-;':
12.0.0.0/24 4.4.4.1 0 400 300 200 i
'''> 1.1.1.2 0 0200 i
-;':
12.0.1.0/24 4.4.4.1 0 400 300 200 i
'''> 1.1.1.2 0 0200 i
-;':
12.0.2.0/24 4.4.4.1 0 400 300 200 i
'''> 1.1.1.2 0 0200 i
-;':
12.0.3.0/24 4.4.4.1 0 400 300 200 i
'''> 1.1.1.2 0 0200 i
-;':
20.0.0.0 4.4.4.1 0 400 300 200 i
'''> 1.1.1.2 0 0200 i
' > 30.0.0.0 1.1.1.2 0 200 300 i
0
'
-;':
4.4.4.1 0 400 300 i
-;':
40.0.0.0 1.1.1.2 0 200 300 400 i
'''> 4.4.4.1 0 0400 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 193
1.1.1.2 from 1.1.1.2 (12.0.3.1)
Origin IGP, metric 0, localpref 100, valid, external, best
'
'
'
'
'
'
'
'
'
'
'
'
'
4.4.4.2 0 0 100 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 194
' > 2.0.0.0 3.3.3.1 0 0 300 i
0
'
'
'
'
'
'
'
'
'
'
'
TASK:
• Remove the BGP filtering done in the previous task.
TASK:
• Configure loopback interfaces with their respective subnet mask given below.
Loopback 10 172.16.0.1/24
Loopback 11 172.16.1.1/25
Loopback 12 172.16.2.1/26
Loopback 13 172.16.3.1/27
Loopback 14 172.16.4.1/28
Loopback 15 172.16.5.1/29
Loopback 16 172.16.6.1/30
• Advertise loopback interfaces on R2 using RIPv2 and redistribute in to BGP
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 195
ro,o I
1- F0/0 3 . 1. 1. 1 , /
0.1. 1. 1 / 8 0
AS300
R2 (config)#interface LoopbacklO
R2(config-if)# ip address 172.16.0.1 255.255.255.0
R2 (config-if)#interface Loopbackl 1
R2(config-if)# ip address 172.16.1.1 255.255.255.128
R2 (config-if)#interface Loopback12
R2(config-if)# ip address 172.16.2.1 255.255.255.192
R2 (config-if)#interface Loopback13
R2(config-if)# ip address 172.16.3.1 255.255.255.224
R2 (config-if)#interface Loopback14
R2(config-if)# ip address 172.16.4.1 255.255.255.240
R2 (config-if)#interface Loopback15
R2(config-if)# ip address 172.16.5.1 255.255.255.248
R2 (config-if)#interface Loopback16
R2(config-if)# ip address 172.16.6.1 255.255.255.252
R2 (config-if)#exit
R2(config)#router rip
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 196
com
R2 (config-router)#ver 2
R2 (config-router)#no auto-summary
R2 (config-router)#network
172.16.0.0 R2 (config-router)#exit
R2#sh ip bgp
BGP table version is 38, local router ID is 12.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
0 32768 i
,., 2.0.0.0
2.2.2.2
0 0 300 i
'> 0.0.0.0
0
'
0 32768 i
,., 3.0.0.0
1.1.1.1
0100 400 i
'> 2.2.2.2
0
'
0 0 300 i
' > 4.0.0.0
1.1.1.1
0
'
0 0100 i
* 2.2.2.2 0 300 400 i
' > 10.0.0.0 1.1.1.1 0 0100 i
0
'
'
'
'
'
'
'
'
0 300 400 i
' > 172.16.0.0/24 ' > 0.0.0.0 0 32768?
0 0
' '
'
' '
'
'
0.0.0.0 0 32768?
TASK: 0.0.0.0 0 32768?
• Configure Rl to fitler BGP routes part of subnet 172.16.0.0 and with subnetmask in between /27- /30
Rl#sh ip bgp
BGP table version is 24, local router ID is 11.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 197
1.0.0.0
-;':
1.1.1.2 0 0 200 i
'''> 0.0.0.0 0 32768 i
,., 2.0.0.0 4.4.4.1 0 400 300 i
'''> 1.1.1.2 0 0200 i
' > 3.0.0.0
4.4.4.1 0 0400 i
'
0
-;':
12.0.0.0/24 4.4.4.1 0 400 300 200 i
'''> 1.1.1.2 0 0200 i
-;':
12.0.1.0/24 4.4.4.1 0 400 300 200 i
'''> 1.1.1.2 0 0200 i
-;':
12.0.2.0/24 4.4.4.1 0 400 300 200 i
'''> 1.1.1.2 0 0200 i
-;':
12.0.3.0/24 4.4.4.1 0 400 300 200 i
'''> 1.1.1.2 0 0200 i
Network Next Hop Metric LocPrf Weight Path
,., 20.0.0.0 4.4.4.1 0 400 300 200 i
'''> 1.1.1.2 0 0200 i
-;':
30.0.0.0 4.4.4.1 0 400 300 i
'''> 1.1.1.2 0 200 300 i
,., 40.0.0.0 1.1.1.2 0 200 300 400 i
'''> 4.4.4.1 0 0400 i
-;':
172.16.0.0/24 4.4.4.1 0 400 300 200?
'''> 1.1.1.2 0 0 200?
-;':
172.16.1.0/25 4.4.4.1 0 400 300 200?
'''> 1.1.1.2 0 0 200?
-;':
172.16.2.0/26 4.4.4.1 0 400 300 200?
'''> 1.1.1.2 0 0 200?
-;':
172.16.3.0/27 4.4.4.1 0 400 300 200?
'''> 1.1.1.2 0 0 200?
-;':
172.16.4.0/28 4.4.4.1 0 400 300 200?
'''> 1.1.1.2 0 0 200?
-;':
172.16.5.0/29 4.4.4.1 0 400 300 200?
'''> 1.1.1.2 0 0 200?
-;':
172.16.6.0/30 4.4.4.1 0 400 300 200?
'''> 1.1.1.2 0 0 200?
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 199
AS-Path Filtering
► Several scenario s require BGP route filtering based on AS path.
, Announce on ly local route s to the I SP- AS path needs to be empty
0
Select route s based on a sp ecific AS number in the AS path
, Accept rout es for sp ecific AS on ly from so m e BGP neighbors
R2
► AS-pat h fil ter s use regular expressions AS200
IFQ/0
0 . 1 . 1 .1/ 8
R4 #sh ip bgp
BGP table version is 10, local router ID Is 14.0.3.1
Status codes: s suppressed. d damped. h history. * valid. > best. i - internal.
AS400
r RI8-failu re, S Stale
Origin codes: I - !GP. e • EGP. l • In comp lete
R4#sh ip bgp
BGP table version is 10, local router ID is 14.0.3 .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
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 200
com
CHAR USAGE
Start of str i ng
$ End of string
[] Range of characters
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 201
► A range of characters matches any single character in the range.
• Examp le s: [1234] or [1--4]
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 202
Matches any delimiter (beginning, end, white space, tab, comma)
ip as-path access-list 1 permit _100_
200 100 500?
700231100 i
500 2100 200 ?
100 200 300 i
Parentheses can be used to group smaller regular expressions into larger expressions.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 203
Sample Regular Expressions
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 204
LAB AS-PATH filters using Regular expression
.
.. d'
. i>
·i) ·i)
,l
.
....
.
R2 N . <..
9
AS200
,
I. F0/0
F0/0
30.1.1.1/
j
r .0 1.1.1/ 8
AS300
TASK:
• Confgure EBGP & advertise all the connected interfaceas per the diagram
Rl#sh ip bgp
BGP table version is 10, local router ID is 11.0.3.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
'
1.1.1.2 0 200300i
,., 4.0.0.0 4.4.4.1 0 0400 i
'''> 0.0.0.0 0 32768 i
'> 0.0.0.0 0 32768 i
0
'
'
'
40.0.0.0
TASK:
• Configure Rl to recieve/send all prefixes only from R2 ( deny from R4)
• Use AS-path Access-list
Rl#sh ip bgp
BGP table version is 10, local router ID is 11.0.3.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
-;':
1.0.0.0
1.1.1.2 0 0 200 i
'''> 0.0.0.0 0 32768 i
-;':
2.0.0.0 4.4.4.1 0 400 300 i
'''> 1.1.1.2 0 0200 i
' > 3.0.0.0 4.4.4.1 0 0400 i
0
'
-;':
1.1.1.2 0 200 300 i
-;':
4.0.0.0 4.4.4.1 0 0400 i
'''> 0.0.0.0 0 32768 i
' > 10.0.0.0 0.0.0.0 0 32768 i
0
'
'
-;':
30.0.0.0 4.4.4.1 0 400 300 i
'''>
' > 40.0.0.0
'
1.1.1.2
4.4.4.1 0
0 200 300 i
0400 i
0
R4#sh ip bgp
BGP table version is 9, local router ID is 14.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RIB-failure, S Stale
'
-;':
4.4.4.2 0 0100 i
-;':
10.0.0.0 3.3.3.1 0 300 200 100 i
'''> 4.4.4.2 0 0100 i
-;':
20.0.0.0 3.3.3.1 0 300 200 i
'''> 4.4.4.2 0100 200 i
' > 30.0.0.0 3.3.3.1 0 0 300 i
0
'
-;':
4.4.4.2 0 100 200 300 i
' ' > 40.0.0.0
0
0.0.0.0 0 32768 i
By default the prefixes learned from both the neighbors and advertised to both.
1. To filter all the Routes either we can use match ( all prefixes) using ACL or prefix-list and deny them
in/out
Or
2. We can also use AS-path Filtering more efficient and easy way to do ..
Network 3 0
,., 1.0.0.0 . '' > 4.0.0.0
0
'''> 0
' '>
0
.
2.0.0.0 0
' '>
0
.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 208
Next Hop 1.1.1.2 M
0.0.0.0 e
1.1.1.2 t
1.1.1.2 r
0.0.0.0 i
c
L
o
c
P
r
f
W
e
i
g
h
t
P
a
t
h
2
0
0
i
0
32768 i
0
0 200
i
0
2
0
0
3
0
0
i
0
32768
i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 209
'>
0
'
0.0.0.0 0 32768 i
10.0.0.0 1.1.1.2 0 0 200 i
'>
0
'
1.1.1.2 0 200 300 i
20.0.0.0
'>
0
'
30.0.0.0
R4#sh ip bgp
BGP table version is 12, local router ID is 14.0.3.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
'
3.3.3.1 0 300 200 i
' > 2.0.0.0
0
'
3.3.3.1 0 0 300 i
,., 3.0.0.0
3.3.3.1 0 0 300 i
'''> 0.0.0.0 0 32768 i
' > 4.0.0.0
0
'
0.0.0.0 0 32768 i
'>
0
'
3.3.3.1 0 300 200 100 i
10.0.0.0 3.3.3.1 0 300 200 i
'>
0
'
3.3.3.1 0 0 300 i
20.0.0.0 0.0.0.0 0 32768 i
'>
0
'
30.0.0.0
'>
0
'
40.0.0.0
TASK:
• Configure Rl to block all the prefixes originating from AS 300
Rl#sh ip bgp
BGP table version is 13, local router ID is 11.0.3.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
'
0
'
1.1.1.2 0 200 300 i
' > 3.0.0.0
0
'
0.0.0.0 0 32768 i
' ' > 4.0.0.0
0
0.0.0.0 4 0 32768 i
'>
0
0
'
1.1.1.2 0 0 200 i
10.0.0.0 .
1.1.1.2 0 200 300 i
'>
0
0
'
1.1.1.2 0 200 300 400 i
20.0.0.0 .
' '>
0
0
30.0.0.0 .
0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 210
M t ic LocPrf Weight Path 0 0
e r 200 i
0 32768 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 211
Network Next Hop Metric LocPrf Weight Path
' > 3.0.0.0
0
'
1.1.1.2 0 200 300 i
'> 1.1.1.2 0 200 300 i
0
'
30.0.0.0
Rl#sh ip as-path-access-list 10
AS path access list 10
deny -300$
permit_,.,
Rl#sh ip bgp
BGP table version is 15, local router ID is 11.0.3.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
'
0.0.0.0 0 32768 i
1.1.1.2 0 0 200 i
' > 2.0.0.0
0
'
1.1.1.2 0 0 200 i
' > 4.0.0.0
0
'
0.0.0.0 0 32768 i
'>
0
'
0.0.0.0 0 32768 i
10.0.0.0 1.1.1.2 0 0 200 i
'>
0
'
'
40.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 21O
Network Next Hop Metric LocPrf Weight Path
' > 3.0.0.0
0
'
1.1.1.2 0 200 300 i
'>
0
'
1.1.1.2 0 200 300 i
30.0.0.0
TASK: Configure Rl to filter routes learned & originating from neighbor AS-200
Rl#sh ip bgp
BGP table version is 13, local router ID is 11.0.3.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
'
'
'
'
'
'
' '>
0
'
'
Rl#sh ip bgp
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 211
BGP table version is 19, local router ID is 11.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 212
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
'
'
'
'
'
'
'
'
'
'
' '>
0
'
1.1.1.2 0 0 200 i
'>
0
'
1.1.1.2 0 0 200 i
20.0.0.0
'
1.1.1.2 0 0 200 i
' > 3.0.0.0
0
'
1.1.1.2 0 200 300 i
' > 4.0.0.0
0
'
0.0.0.0 0 32768 i
'>
0
'
0.0.0.0 0 32768 i
10.0.0.0 1.1.1.2 0 0 200 i
'>
0
'
1.1.1.2 0 200 300 i
20.0.0.0 1.1.1.2 0 200 300 400 i
'>
0
'
30.0.0.0
'>
0
'
40.0.0.0
'
'>
0
'
'
Rl#sh ip as-path-access-list
AS path access list 1 deny_,.,
Rl#sh ip bgp
BGP table version is 24, local router ID is 11.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RIB-failure, S Stale
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 215
Origin codes: i - IGP, e - EGP, ? - incomplete
'
1.1.1.2 0 0 200 i
' > 4.0.0.0
0
'
0.0.0.0 0 32768 i
'>
0
'
0.0.0.0 0 32768 i
10.0.0.0 1.1.1.2 0 0 200 i
'>
0
'
20.0.0.0
'> 3.0.0.0
1.1.1.2 0 200 300 i
'
0
'> 4.0.0.0
0.0.0.0 0 32768 i
'
0
'> 10.0.0.0
0.0.0.0 0 32768 i
'
0
'> 20.0.0.0
1.1.1.2 0 0 200 i
'
0
'> 30.0.0.0
1.1.1.2 0 200 300 i
'
0
'> 40.0.0.0
1.1.1.2 0 200 300 400 i
'
0
TASK:
Configure R2 such that it should not advertise prefixes originating in its own local AS to its neighbor (R3)
R2#sh ip bgp
BGP table version is 23, local router ID is 12.0.3.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
'
'
4.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 217
-;':
2.2.2.2 0 300 400 i
' > 10.0.0.0 1.1.1.1 0 0100 i
0
'
'
'
'
0
'
0.0.0.0 0 32768 i
' > 2.0.0.0
0
'
0.0.0.0 0 32768 i
'>
0
'
0.0.0.0 0 32768 i
20.0.0.0
'
0.0.0.0 0 32768 i
'> 3.0.0.0 2.2.2.2 0 0 300 i
0
'
'
'
0
'
'
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
1.1.1.1 0 0100 i
'>
0
'
1.1.1.1 0 0100 i
10.0.0.0
R3#sh ip bgp
BGP table version is 21, local router ID is 13.0.3.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
'
-;':
3.0.0.0 3.3.3.2 0 0400 i
'''> 0.0.0.0 0 32768 i
-;':
4.0.0.0 2.2.2.1 0200100 i
'''> 3.3.3.2 0 0400 i
' > 10.0.0.0 2.2.2.1 0 200 100 i
0
'
'
'
0
'
'
'
'
'
'
TASK: Configure Rl to block all the prefixes originating in AS 400 moving through AS 300
Rl#sh ip bgp
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
'
'
'
'
'
0
'
'
0
'
40.0.0.0
Rl#sh ip bgp
BGP table version is 18, local router ID is 11.0.3.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
'
'
'
'
'
'
'
0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 222
BGP Communities
Well-Known , user-Defined
BGP Communities
loopbackO
► The community attribute is a 192 .168 ,6 .0 / 24
transitive optional attribute .
► Communities can be used to mark a
set of prefixes that share a common
property .
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 21B
com
BGP community types
Well known (pre-defined)
► Own communities loopback O
192 .
168 .6 .0/24
loopbacll: O
13.0.0.1/24
AS 123
loopback O
11.0.0.1/24
RS
no-export : toopback 0
19'2. 168.6 .0/ 24
Do not advertise to EBGP peers,
keep this route within an AS only.
no-advertise :
Do not advertise this route to any
R2
peer, internal or external.
. . .. .
Internet:
loopback o
Ad vertise this route to the internet loopbacll: 0 13.0.0.1/24
community, 11.0.0.1/24
.
.
local-as:
!
use in confederation scenarios
prevent the transmit of packets
outside the local Sub AS.
RS
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 219
com
TASK: Community no-advert ise
• R5 advertises network 192.168.5.0/24 to Rl in AS 123 .
• Configure R5 such that Rl should not advertise the same above network (192.168.5.0/24) to any of the IBGP
or EBGP neighbor.
$$
..,.
,,.,..,.
.
RS (config )# ro uter bgp 500 R5
RS (config-router)#neighbor 10.1.1.1 send-community
R5
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 220
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 221
TASK: using NO EXPORT well known Community Attribute:
30 . 1. 1.1/1
loopback 0
R6(co n fig)# access-li st 6 permit 192.168.6.0 0.0 .0.255 11.0.0.1/24
AS 123
()
loopback 0
ll.0.0.1/24 30 . 1. 1.
1/8
AS 123
R5
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 222
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 223
com
LAB: COMMUITIES WELL KNOWN
,,,,.
,,,.. '--
---
I \
(
' loopback 0
\ 11.0.0.1/24
AS123
,,,.- -
-
/Assoo
'
loopbaci 0
92.16sls .0124
'
I
I
TASK:
• Configure Basic IBGP and EBGP configuration as per the diagram
• Advertise all the interfaces in BGP
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 224
Rl (config-router)#end
R3(config-router)#network 2.0.0.0
R3(config-router)#network 3.0.0.0
R3(config-router)#network 13.0.0.0 mask 255.255.255.0
R3(config-router)#network 30.0.0.0
R3(config-router)#exit
Rl#sh ip bgp
BGP table version is 16, local router ID is 11.0.3.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
'
-;':
10.1.1.5 0 0 500 i
' > 11.0.0.0/24 0.0.0.0 0 32
0
'
'
'
'
'
'
Rl#
R3#sh ip bgp
BGP table version is 79, local router ID is 13.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
'
'
'
'
'
'
-;':
30.1.1.6 0 0 600 i
,., i40.0.0.0 1.1.1.1 0 100 0400 i
'''> 3.3.3.2 0 0400 i
' > i19 2.168.5.0 1.1.1.1 0 100 0500 i
0
'
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 227
R3#sh ip bgp 192.168.5.0
BGP routing table entry for 192.168.5.0/24, version 164
Paths: (1 available, no best path)
Flag: 0x820
Not advertised to any peer
500
1.1.1.1 (inaccessible) from 1.1.1.1 (11.0.3.1)
Origin IGP, metric 0, localpref 100, valid, internal
RS(config-route-map)#set community?
<1-4294967295> community number
aa:nn community number in aa:nn format
additive Add to the existing community
internet Internet (well-known community)
local-AS Do not send outside local AS (well-known community)
no-advertise Do not advertise to any peer (well-known community)
no-export Do not export to next AS (well-known community)
none No community attribute
<er>
TASK:
• Remove the Community configs from RS and reconfigure the same task on Rl
R4(config)#int sl/1
R4(config-if)#no shutdown
R4(config-if)#end
TASK:
• Remove the previous task configurations from R6 and R3
• Reconfigure the same using no-export attribute on R3
R6(config)#no access-list 6
R6(config)#end
Advertised to update-groups:
1
123 600
tl-.4.4.2 from 4.4.4.2 (11.0.3.1)
Origin IGP, localpref 100, valid, external, best
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 234
Now the route is learned from only one side ( Rl) Shutdown the link between Rl and R4 to verify
R4(config)#int sl/1
R4(config-if)#shutdown
R4(config-if)#end
R4(config)#int sl/1
R4(config-if)#no shutdown
R4(config-if)#end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 235
TASK: using Local-AS
• Configure Rl to advertise 11.0.0.0/24 only to all the routes with in the same AS (123).
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 237
User-defined communities
Its value is a 32-bit number (range 0 to
4,294,967.200) .
...
tagged with a set of communities.
High-order 16 bits
AS600
, contain the AS number of the AS that defines the
community meaning.
Low-order 16 bits
e
0
lo cal si gnificance.
TASK:
• configure Rl to tag 11.0.0.0/24,11.0.1.0/24 ( looopback 0 & 1) interfaces with community tag 500:10
• configure Rl to tag 11.0 .2.0/2 4,1 1.0.3.0/2 4 ( looopback 2 & 3) interfaces with community tag 500:20 NfTW 0R
• Ensure that Rl should advertise loopbacks to both EBGP neighbors with their respective community.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 238
R2# sh ip bg p 11.0.0.0/ 24
BGP rout ing tab le entry for 11.0 .0 .0 / 24, versi on 20
Path s: (2 available, best #2. table Default -IP-Routing-Table)
Flag: 0x880
Advertised to update-group s: R2 (config) #lp bgp-community new-format
2
500
4.4.4.2 (metric 129) from 14.0 .0. 1 (14.0 .3.1)
Or igin IGP. m etric 0, lo calpref 100, va lid , int ernal
500
1.1.1.1 from 1.1.1.1 (11.0.3 .1)
Or igin IGP. metric 0, localpref 100 , v alid , external, best
Community: 32768010
11.0.2.1/24
11.0.3.1/24
2
500
4.4.4.2 (metric 129) from 14.0 .0 .1 (14 .0.3 .1)
Or igin IGP. m etric 0 . l ocalpr ef 100. valid. interna l
e
0
500
1.1.1.1 from 1.1.1.1 (11.0. 3.1)
Or igin IGP. metric 0 . l ocalpre f 100 . v alid . exte rnal. best
Community: 500:10
TASK:
• Configure AS 600 to ensure that routes with
• community tag 500:10 uses R2 as default ex i·
• community tag 500:20 uses R4 as default exi
• Use local preference attribute.
11.0.2.1/24
11.0.3.1/24
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 239
R2# sh ip bgp
BGP table version i s 24. local rout er ID is 12.0.3.1
St atu s codes: s supp r essed. d damped. h histo ry. • valid. > best. i - internal.
r RIB-failure. S St ale
Origin codes: i - IGP. e - EGP. ? - inco mplete
R4#sh ip bgp
BGP tab le version is 33, local router ID is 14.0 .3.1
St atus codes: s su pp ressed. d damped . h history . • v alid. > best. i - in
ternal. r RIB-fai lure. S Stale
Or igin co d es: i - IGP, e - EGP. ? - inco mpl ete
...
loopback 0
.0.1
N
1S '
.;, :t .,...
·.;, -t
- ./
....<..9
R2
1 n n , ,,,
loopb 11:0
1 1. 0 . 2 .1 / 24 1
1 1. 0 . 3 .1 / 24 ". 0. C
-1 F0/0
3 8
0.1.1.1/ 8
OSPF area 0
ASSOO
AS600
TASK:
• Configure OSPF as IGP inside AS 600 TO provide reachability:
• Configure IBGP peering using loopback O interfaces inside AS 600 and EBGP using connnected interfaces.
R2(config)#router ospf 1
R2(config-router)#network 20.0.0.0 0.255.255.255 area 0
R2(config-router)#network 2.0.0.0 0.255.255.255 area 0
R2(config-router)#network 12.0.0.0 0.255.255.255 area 0
R2 (config-router)#exit
R3(config)#router ospf 1
R3(config-router)#network 30.0.0.0 0.255.255.255 area 0
R3(config-router)#network 3.0.0.0 0.255.255.255 area 0
R3(config-router)#network 13.0.0.0 0.255.255.255 area 0
R3(config-router)#network 2.0.0.0 0.255.255.255 area 0
R3(config-router)#exit
R4(config)#router ospf 1
R4(config-router)#network 40.0.0.0 0.255.255.255 area 0
R4(config-router)#network 14.0.0.0 0.255.255.255 area 0
R4(config-router)#network 3.0.0.0 0.255.255.255 area 0
R4(config-router)#exit
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 242
R3#sh ip ospf neighbor
Neighbor ID Pri State Dead Time Address Interface
12.0.3.1 0 FULU - 00:00:33 2.2.2.1 Seriall/0
14.0.3.1 0 FULU - 00:00:33 3.3.3.2 Seriall/1
R4#sh ip bgp
BGP table version is 23, local router ID is 14.0.3.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
'
'
'
'
'
'
,., i
1.1.1.1 0 100 0 500 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 244
' > 11.0.3.0/24 4.4.4.2 0 0 500 i
0
'
'
R2#sh ip bgp
BGP table version is 16, local router ID is 12.0.3.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
'
TASK:
• configure Rl to tag 11.0.0.0/24,11.0.1.0/24 ( looopback 0 & 1) interfaces with community tag 500:10
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 245
• configure Rl to tag 11.0.2.0/24,11.0.3.0/24 ( looopback 2 & 3) interfaces with community tag 500:20
• Ensure that Rl should advertise loopbacks to both EBGP neighbors with their respective community.
Rl(config-route-map)#set community?
<1-4294967295> community number
aa:nn community number in aa:nn format
additive Add to the existing community
internet Internet (well-known community)
local-AS Do not send outside local AS (well-known community)
no-advertise Do not advertise to any peer (well-known community)
no-export Do not export to next AS (well-known community)
none No community attribute
<er>
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 247
1.1.1.1 from 1.1.1.1 (11.0.3.1)
Origin IGP, metric 0, localpref 100, valid, external, best
Community: 32768010
In Cisco IOS® Software Release 12.0 and later, you can configure communities in three different formats called
decimal, hexadecimal, and AA:NN.
• set community 30:20
• set community 0x1E0014
• set community 1966100
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 249
Origin IGP, metric 0, localpref 100, valid, internal
R2 (config-route-map)#match community 10
R2 (config-route-map)#set local-preference
200 R2 (config-route-map)#exit
R2#sh ip bgp
BGP table version is 24, local router ID is 12.0.3.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
'
R3#sh ip bgp
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 251
BGP table version is 19, local router ID is 13.0.3.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
'
'
R4#sh ip bgp
BGP table version is 31, local router ID is 14.0.3.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
'
-;':
11.0.0.0/24 4.4.4.2 0 0 500 i
'''>i 1.1.1.1 0 200 0 500 i
-;':
11.0.1.0/24 4.4.4.2 0 0 500 i
'''>i 1.1.1.1 0 200 0 500 i
' > 11.0.2.0/24 4.4.4.2
0 0 500 i
'
0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 252
R4(config)#ip community-list standard CCIER4?
deny Specify community to reject
permit Specify community to accept
R4#sh ip bgp
BGP table version is 33, local router ID is 14.0.3.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
'
'
R4#traceroute 11.0.0.1
Type escape sequence to abort.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 253
Tracing the route to 11.0.0.1
R4#traceroute 11.0.3.1
Type escape sequence to abort.
Tracing the route to 11.0.3.1
R3#sh ip bgp
BGP table version is 21, local router ID is 13.0.3.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
'
'
'
'
0
'
R3#traceroute 11.0.0.1
Type escape sequence to abort.
Tracing the route to 11.0.0.1
R3#traceroute 11.0.3.1
Type escape sequence to abort.
Tracing the route to 11.0.3.1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 254
BGP Advance options
BGP Confederations
Route-reflector Clusters
BGP Dampening
remove-private-as
-
ASN
123 ASN4
G) Updm: 5
ASJ'
210.0.M
ATH4S
® :;.:
(65003&6001)
45
®!1s °.:tj6500l65001)45
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 255
IBGP full mesh issues
R1
With iB G P, every router in the BGP autonomous system must
be fu lly meshed .
La rge number of TCP sessio ns
Unncessa ry d up l icatio n of ro ut i ng traffic
Manua l configuration
Solution:
1. Route Reflector
2. BGP confederations
-
.
'I R45
I
I
I
I
I '
\\ ® :.::
@3 ASY ATH: (IS5001)
1
1
(65001)45
21.0.0.M
!
1
4 5
I '
' '
I
' '
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 256
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 257
com
BGP confederations Facts
► Confederations are usable only for huge autonomous systems where you can afford to
split them into several sub-ASes.
► Each sub-AS in a confederation needs to have its internal iBGP peers either fully
meshed, or use route reflection internally,
► the confederations are not much of an advantage for small ASes having a few BGP
routers. ASN 123
.........•.,
·.,,.,·:.-.·
·ij ASN67
-- ·
ASN45 8
:
®!1i :. fl60)366C01J45
@ :1sf85(l02Mll)l).S
· -
., AS 500
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 258
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 259
com
,/ ·,.
-· ' R3#sh ip bgp
..
'\
(, ; / °'' ·· * i 2.2.2.1 0 100 0i
. - '' ii,
., '-: '-" .
'-
., ..., \ \
'-·.
/.....--- - - l '- .. f '\ ' • 3.0.0.0 3.3.3.2 0 100 0 (4000) i
·.
\
0 '-. _ _..
:;1 '-
' ,.. ...- ,.,,
._\
.\ I
: '
*>
*> 4.0.0.0
•* >10,0,0,0
i
0.0.0.0
3.3.3.2
4.4.4.2
1.1.1.1 0
0
0 100
32768 i
0 4000) i
0100100 0500i
0 (4000) 500 i
.
_.,,,./ Network Next Hop Metric LocPrf We ight Path
'-
• 1,.0 0, 0 4.4.4.1 0600i
R4#sh ip bgp 1.1.1.2 0 0600i
Netwo rk Next Hop M etr ic LocPrf Weight Path *> 0,0,0,0 0 32768 i
• 1.0, 0 .0 4.4,4.2 0 0 500 i * 2,0,0,0 4.4.4.1
0600i
*> 2.2.2.1 0 100 0 (2300) i *> 1.1.1.2
0 600 i 0
* > 2.0,0,0 3.3.3.1 0 100 0 (2300) i • 3.0.0 .0 4.4.4.1 0 0 600 i
* > 3.0.0.0 0.0.0.0 0 32768 i 1.1.1.2 0 600 i
.
*>
3.3.3.1 0 100 0 (2300) i * 4.0,0.0 1.1.1.2 0600 i
* 4.0.0.0 4.4.4.2 0 0 500 i 4.4,4.1 0 0600 i
*> 0.0.0.0 0 32768 i *> 0.0.0.0 0 32768 i
* > 10,0,0,0 4.4.4.2 0 0500i *> 10.0.0.0 0.0.0.0 0 32768 i
1.1.1.1 0 100 0 (2300) 500 i • 20.0,0,0 4.4.4.1 0600i
1.1.1.2 *> 20.0.0.0 2.2.2.1 0 100 0 (2300) i *> 0 0600i
*> 30.0.0.0 3.3.3.1 0 100 0 (2300) i • 30,0,0,0 4.4.4.1 06
0.0 .0.0 0 32768 i *> 1.1.1.2 0600i
• 40,0,0,0 1.1.1.2 0600 i
*> 4.4.41. 0 0600 i
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 260
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 261
com
LAB: BGP Confederations
/
-- - - -.......... -
\
R2
\
\
"' , AS2300
Rl#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
-;':
1.0.0.0 4.4.4.1 0 600 i
-;':
1.1.1.2 0 0 600 i
'''> 0.0.0.0 0 32768 i
-;':
2.0.0.0 4.4.4.1 0 600 i
'''> 1.1.1.2 0 0 600 i
-;':
3.0.0.0 4.4.4.1 0 0 600 i
'''> 1.1.1.2 0 600 i
-;':
4.0.0.0 1.1.1.2 0 600 i
-;':
4.4.4.1 0 0 600 i
'''> 0.0.0.0 0 32768 i
' > 10.0.0.0 0.0.0.0 0 32768 i
0
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 263
,., 20.0.0.0 4.4.4.1 0 600 i
,., > 1.1.1.2
0 0 600 i
,., 30.0.0.0 4.4.4.1 0 600 i
,., > 1.1.1.2
0 600 i
,., 40.0.0.0 1.1.1.2 0 600 i
,., > 4.4.4.1
0 0 600 i
R3#sh ip bgp
Network Next Hop Metric LocPrf Weight Path
' > il. 0.0.0
0
'
2.2.2.1 0 100 0i
' > 2.0.0.0
0
0.0.0.0 0 32768 i
'
,.,i
2.2.2.1 0 100 0i
,., 3.0.0.0
3.3.3.2 0 100 0 (4000) i
'''> 0.0.0.0 0 32768 i
' > 4.0.0.0
0
'
'
2.2.2.1 0 100 0i
'>
0
'
0.0.0.0 0 32768 i
30.0.0.0 3.3.3.2 0 100 0 (4000) i
'>
0
'
40.0.0.0
Next Hop Metric LocPrf Weight Path
R4#sh ip bgp
4.4.4.2 0 0 500 i
Network
2.2.2.1 0 100 0 (2300) i
,., 1.0.0.0
3.3.3.1 0 100 0 (2300) i
'''> 0.0.0.0 0 32768 i
' > 2.0.0.0 3.3.3.1
0
'
0 100 0 (2300) i
' > 3.0.0.0
0
'
4.4.4.2 0 0 500 i
0.0.0.0 0 32768 i
,., 4.0.0.0
4.4.4.2 0 0 500 i
'''> 1.1.1.1 0 100 0 (2300) 500 i
' > 10.0.0.0
0
'
2.2.2.1 0 100 0 (2300) i
3.3.3.1 0 100 0 (2300) i
*> 20.0.0.0 0.0.0.0 0 32768 i
'>
0
'
30.0.0.0
'>
0
'
40.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 265
B 4.0.0.0/8 [200/0] via 3.3.3.2, 00:02:03
B 20.0.0.0/8 [200/0] via 2.2.2.1, 00:03:44
B 40.0.0.0/8 [200/0] via 3.3.3.2, 00:02:03
B 10.0.0.0/8 [200/0] via 1.1.1.1, 00:03:39
• Configure Rl to make sure that 10.0.0.0 should be advertised by R2 within the sub-AS ( 2300) and should
not get advertised to other Sub -AS (AS 4000)
• Shutdown he Rl - R4 link for verification..( to make sure that 10.0.0.0 not coming from R1-R4 reaching AS-
2300)
Rl(config)#int sl/1
R1(config-it)#shutdown
Once we configure Local preference on R2( preferred exit router of AS) for neighbor 1.1.1.1 (Rl) with direction
in (apply to receiving routes).
• All Routes learned from from that neighbor 1.1.1.1 (Rl) will be applied with local preference value of 400
• Samething will also be advertised to all other routers(R3) inside the AS 600.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 267
Route Reflector
► Scalable alternative to an iBGP full mesh.
► Allows a router (route reflector - RR) to advertise routes received from an iBGP peer to other iBGP
peers.
► Client updates serve r.
► Server updates to all the remaining clie nts.
_/
/ RR Server
{
\
ASSOO
AS 500
RRsener I
/
.
/
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 268
Route Reflector Clusters
► A group of redundant route reflectors and their clients form a cluster.
► Route reflector rules divide a transit AS into smaller areas (called clusters).
► Each cluster must have a unique cluste r-I D.
Cluster AS21
1 2
Route Reflector
Clusters NETWOR ONLINE ACADEMY
► Each time a route is refle cted , the cluster-ID is added to the cluster-list BGP attribute.
► The route that already contains the local cluster-ID in the cluster-list is not reflected.
► Each cluster contains route reflectors and route reflector clients.
Cluster AS21
1 2
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 269
IBGP peering should be ertablished using loopback O interface
Rt should be conngured as: RR server for clients: RS & R4
R3 s:hould be configured as RR server for dients: R6 & R2
IBGP peering should be established only between Rt & R3 to exchange BGP Information between dusters
BGP rooter -id has to be loopback O Ip addres s:.
R4( coofigll routcr bgp 500 ,,,,...-. ·
R4(cooflg-router)l bgp router-Id 14.0.0 .1
/
R4(cooflg-router)l nelghbor 11.0.0.1 remote-as: 500 _. / ·
R4(coofig -router)l nelghbor 11.0.0.1 update-source loopback 0 /
RS(conflg)# router bgp 500 /
RS(config-router)l bgp router-id 15.0.0. 1
RS(config-router)I neighbor 11.0.0. 1 remote-as 500
RS(conflg-router)# neighbor 11.0.0. 1 updat rceloopback0 ,._, ,,
! I
....
' 11 . 0 .0 . 1/24
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 270
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 271
com
R2#sh ip bgp 60.0.0.0
BG P r out ing table entry fo r 60 .0.0.0/ 8, versio n 3
_.- --- --- ··- --- - --
Paths: (1 avail able, best #1, table Default-I P-Routing-Table. RIB-failure(17)),-··
_....
Not adve rt ised to any peer /
Local /
16.0 .0.1 (m etric 2300416) from 13.0.0.1 (13.0.0 .1) /
Origin IGP. metric O. loca lpref 100. valid. int ernal, best /
Origin ator : 16.0.0.1, Cluster li st: 13.0 .0 .1 :
/ LoopNck O \0 ../'
; 11 .0 .0 . l !J 1.... .,. y.. - loopk,ckO
_
! ( y 11.0.0.1/24
loo pbac k O
13 .0 .0 .1/ 24
/ /
BGP routing table entry for 60.0.0.0/8. version 27 /
Paths: (1 available. best #1. table Default -IP-Routin g-Table, RIB -failur e(17.) .. -. ... _.... /
Flag: 0x820
,1
[ ""·',
a -- -- - - ---- --., ,(. - - - - · _ _.-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 272
com
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. Page 273
com
Route Reflector Clusters
Originator-ID
• Additional Route Reflector Loop-Prevention Mechanisms
• Every time a route is reflected, the router-ID of the originating IBGP router is stored in the originator-ID BGP
attribute.
• A router receiving an IBGP route with originator-ID set to its own router-ID ignores that route.
• The BGP path selection procedure is modified to take into account cluster-list and originator-ID.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 274
LAB : Route Reflector Clusters
--- .......
60.
" '
1. 1 . 1/
AS600
I 172.16.36.6 / 24
\
I
/ Loopback 0
11 .0 .0 .1
I
1
10.1. . 1 / 8
I
\ 172.16 15.1/ 24
I loopback 0
\
13 .0.0 .1 /
24
I
I 0
I
I AS 500
I
RS --....
40 ::;-1
- "'! 1
f;! '"!
I
I • i
\ 50.- 1.- 1. 1/
- 8-
- - - ---- -- -.:::-:::- ::..: =--._ I _ . - - ---
-
................................................... _
TASK:
• configure EIGRP 100 to provide reachablity with in the AS
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 276
R3 (config-router)#no auto-summary
R3 (config-router)#network 13.0.0.0
R3 (config-router)#network 30.0.0.0
R3 (config-router)#network 3.0.0.0
R3 (config-router)#network 2.0.0.0
R3 (config-router)#network 172.16.0.0
R3 (config-router)#network 172.16.0.0
R3 (config-router)#exit
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 277
[90/2812416] via 1.1.1.2, 00:24:31, Seriall/0
D 50.0.0.0/8 [90/156160] via 172.16.15.5, 00:25:00, FastEthernet0/0
D 2.0.0.0/8 [90/2681856] via 1.1.1.2, 00:32:10, Seriall/0
D 3.0.0.0/8 [90/2681856] via 4.4.4.1, 00:32:10, Seriall/1
D 20.0.0.0/8 [90/2172416] via 1.1.1.2, 00:33:37, Seriall/0
172.16.0.0/24 is subnetted, 3 subnets
D 172.16.36.0 [90/2684416] via 4.4.4.1, 00:32:10, Seriall/1
[90/2684416] via 1.1.1.2, 00:32:10, Seriall/0
D 172.16.37.0 [90/3193856] via 4.4.4.1, 00:32:10, Seriall/1
[90/3193856] via 1.1.1.2, 00:32:10, Seriall/0
D 40.0.0.0/8 [90/2172416] via 4.4.4.1, 00:32:30, Seriall/1
12.0.0.0/24 is subnetted, 4 subnets
D 12.0.0.0 [90/2297856] via 1.1.1.2, 00:33:29, Seriall/0
D 12.0.1.0 [90/2297856] via 1.1.1.2, 00:33:30, Seriall/0
D 12.0.2.0 [90/2297856] via 1.1.1.2, 00:33:30, Seriall/0
D 12.0.3.0 [90/2297856] via 1.1.1.2, 00:33:34, Seriall/0
13.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
D 13.0.1.0/24 [90/2809856] via 4.4.4.1, 00:32:15, Seriall/1
[90/2809856] via 1.1.1.2, 00:32:15, Seriall/0
D 13.0.0.1/32 [90/2809856] via 4.4.4.1, 00:32:15, Seriall/1
[90/2809856] via 1.1.1.2, 00:32:15, Seriall/0
D 13.0.3.0/24 [90/2809856] via 4.4.4.1, 00:32:15, Seriall/1
[90/2809856] via 1.1.1.2, 00:32:15, Seriall/0
D 13.0.2.0/24 [90/2809856] via 4.4.4.1, 00:32:15, Seriall/1
[90/2809856] via 1.1.1.2, 00:32:15, Seriall/0
14.0.0.0/24 is subnetted, 4 subnets
D 14.0.2.0 [90/2297856] via 4.4.4.1, 00:32:06, Seriall/1
D 14.0.3.0 [90/2297856] via 4.4.4.1, 00:32:06, Seriall/1
D 14.0.0.0 [90/2297856] via 4.4.4.1, 00:32:06, Seriall/1
D 14.0.1.0 [90/2297856] via 4.4.4.1, 00:32:06, Seriall/1
D 60.0.0.0/8 [90/2812416] via 4.4.4.1, 00:24:28, Seriall/1
[90/2812416] via 1.1.1.2, 00:24:28, Seriall/0
D 30.0.0.0/8 [90/2809856] via 4.4.4.1, 00:01:04, Seriall/1
[90/2809856] via 1.1.1.2, 00:01:04, Seriall/0
15.0.0.0/24 is subnetted, 1 subnets
D 15.0.0.0 [90/156160] via 172.16.15.5, 00:25:15, FastEthernet0/0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 278
R3#sh ip route eigrp
16.0.0.0/24 is subnetted, 1 subnets
D 16.0.0.0 [90/156160] via 172.16.36.6, 00:26:20, FastEthernet0/0
D 1.0.0.0/8 [90/2681856] via 2.2.2.1, 00:33:59, Seriall/0
D 50.0.0.0/8 [90/2812416] via 3.3.3.2, 00:26:49, Seriall/1
[90/2812416] via 2.2.2.1, 00:26:49, Seriall/0
D 4.0.0.0/8 [90/2681856] via 3.3.3.2, 00:33:59, Seriall/1
D 20.0.0.0/8 [90/2172416] via 2.2.2.1, 00:34:53, Seriall/0
172.16.0.0/24 is subnetted, 3 subnets
D 172.16.15.0 [90/2684416] via 3.3.3.2, 00:33:59, Seriall/1
[90/2684416] via 2.2.2.1, 00:33:59, Seriall/0
D 40.0.0.0/8 [90/2172416] via 3.3.3.2, 00:33:59, Seriall/1
D 10.0.0.0/8 [90/2809856] via 3.3.3.2, 00:00:14, Seriall/1
[90/2809856] via 2.2.2.1, 00:00:14, Seriall/0
11.0.0.0/8 is variably subnetted, 4 subnets, 2 masks
D 11.0.3.0/24 [90/2809856] via 3.3.3.2, 00:33:59, Seriall/1
[90/2809856] via 2.2.2.1, 00:33:59, Seriall/0
D 11.0.2.0/24 [90/2809856] via 3.3.3.2, 00:34:01, Seriall/1
[90/2809856] via 2.2.2.1, 00:34:01, Seriall/0
D 11.0.1.0/24 [90/2809856] via 3.3.3.2, 00:34:01, Seriall/1
[90/2809856] via 2.2.2.1, 00:34:01, Seriall/0
D 11.0.0.1/32 [90/2809856] via 3.3.3.2, 00:34:01, Seriall/1
[90/2809856] via 2.2.2.1, 00:34:01, Seriall/0
12.0.0.0/24 is subnetted, 4 subnets
D 12.0.0.0 [90/2297856] via 2.2.2.1, 00:34:55, Seriall/0
D 12.0.1.0 [90/2297856] via 2.2.2.1, 00:34:55, Seriall/0
D 12.0.2.0 [90/2297856] via 2.2.2.1, 00:34:55, Seriall/0
D 12.0.3.0 [90/2297856] via 2.2.2.1, 00:34:55, Seriall/0
14.0.0.0/24 is subnetted, 4 subnets
D 14.0.2.0 [90/2297856] via 3.3.3.2, 00:33:52, Seriall/1
D 14.0.3.0 [90/2297856] via 3.3.3.2, 00:33:52, Seriall/1
D 14.0.0.0 [90/2297856] via 3.3.3.2, 00:33:52, Seriall/1
D 14.0.1.0 [90/2297856] via 3.3.3.2, 00:33:52, Seriall/1
D 60.0.0.0/8 [90/156160] via 172.16.36.6, 00:26:14, FastEthernet0/0
15.0.0.0/24 is subnetted, 1 subnets
D 15.0.0.0 [90/2812416] via 3.3.3.2, 00:27:00, Seriall/1
[90/2812416] via 2.2.2.1, 00:27:00, Seriall/0
TASK:
Configure IBGP peering in AS 500
• IBGP peering should be established using loopback 0 interface
• Rl should be configured as RR server for clients RS & R4
• R3 should be configured as RR server for clients R6 & R2
• IBGP peering should be established only between Rl & R3 to exchange BGP information between clusters
• BGP router-id has to be loopback 0 Ip address.
• advertise only LAN interface in BGP for verification.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 279
Rl(config)#router bgp 500
Rl (config-ro uter)# bgp router-id 11.0.0.1
Rl (config-ro uter)# neighbor 14.0.0.1 remote-as 500
Rl (config-ro uter)# neighbor 14.0.0.1 update-source loopback 0
Rl (config-ro uter)# neighbor 14.0.0.1 route-reflector-client
Rl(config-router)#neighbor 15.0.0.1 remote-as 500
Rl(config-router)#neighbor 15.0.0.1 update-source loopback 0
Rl (config-router)#neighbor 15.0.0.1 route-reflector-client
Rl(config-router)#network 10.0.0.0
Rl (config-router)#exit
Rl#sh ip bgp
BGP table version is 27, local router ID is 11.0.0.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RIB-failure, S Stale
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 280
Origin codes: i - IGP, e - EGP, ? - incomplete
'
R3#sh ip bgp
BGP table version is 30, local router ID is 13.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
'
0.0.0.0 0 32768 i
30.0.0.0 16.0.0.1 0 100 0i
r>i60.0.0.0
Rl#sh ip bgp
BGP table version is 33, local router ID is 11.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
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 283
Local
16.0.0.1 (metric 2814976) from 11.0.0.1 (11.0.0.1)
Origin IGP, metric 0, localpref 100, valid, internal, best
Originator: 16.0.0.1, Cluster list: 11.0.0.1, 13.0.0.1
TASK:
• Configure R3 to change the cluser-id to 30.1.1.1
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 284
BGP Route-Dampening
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 285
LAB: ROUTE DAMPENING
loopback 0
120.0.1/ 24
..
\
F0/0
- - • loopback 0
11.0.0.1/ 24
f
0.1.1.1/
....._ A S S OO /
TASK: - - - - -·
• Configure IBGP and EBGP peering as per the diagram using connected interfaces
• Advertise Directly connected interfaces ( f0/0 & loopback 0)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 286
R3(config-router)# no auto-summary
R3(config-router)# end
R2#sh ip bgp
BGP table version is 37, local router ID is 12.0.3.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
'
'
'
'
'
'
0
'''Mar 1 01:59:08.111: BGP(0): Created dampening structures with halflife time 15, reuse/suppress 750/2000
R2#
Give some time for the interface to show console message as down and later use no shutdown command
R2#sh ip bgp
BGP table version is 40, local router ID is 12.0.3.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
'
'
'>
0
'
0.0.0.0 0 32768 i
12.0.0.0/24 h 2.2.2.2 0 0 600 i
13.0.0.0/24 0.0.0.0 0 32768 i
' > 20.0.0.0
0
'
2.2.2.2 0 0 600 i
' > 30.0.0.0
0
'
R2#
History state:
► After a single route flap, the route is assigned a penalty, and the dampening state of the route is set to
History.
► The default penalty for a route flap is 1000.
► Each time the route flaps, the penalty increases.
R2#sh ip bgp 13.0.0.0
BGP routing table entry for 13.0.0.0/24, version 40
Paths: (1 available, no best path)
Flag: 0x820
Not advertised to any peer
600 (history entry)
2.2.2.2 from 2.2.2.2 (13.0.3.1)
Origin IGP, metric 0, localpref 100, external
Dampinfo: penalty 988, flapped 1 times in 00:00:17
R3(config-if)#shutdown
R3(config-if)#no shutdown
R3(config-if)#shutdown
R3(config-if)#no shutdown
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 288
R2#sh ip bgp
BGP table version is 50, local router ID is 12.0.3.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
'
'
'
'
'
Rl#sh ip bgp
BGP table version is 50, local router ID is 11.0.3.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
'
0.0.0.0 32768 i
'>
0
'
0.0.0.0 0 32768 i
11.0.0.0/24 1.1.1.2 0 100 0i
' > i12.0.0.0/
0
'
1.1.1.2 0 100 0i
24 1.1.1.2 0 100 0 600 i
' > i20.0.0.0
0
'
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 289
R2#clear ip bgp dampening
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 290
The above command clears BGP route dampening information and unsuppresses the suppressed routes,
R2#sh ip bgp
BGP table version is 51, local router ID is 12.0.3.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
'
'
0.0.0.0 0 32768 i
*> 13.0.0.0/24 2.2.2.2 0 0 600 i
' > 20.0.0.0 0.0.0.0 0 32768 i
0
'
2.2.2.2 0 0 600 i
Rl#sh ip bgp
BGP table version is 51, local router ID is 11.0.3.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
'
0.0.0.0 32768 i
'>
0
'
0.0.0.0 0 32768 i
11.0.0.0/24 1.1.1.2 0 100 0i
' > il2.0.0.0/
0
'
1.1.1.2 0 100 0 600 i
24 1.1.1.2 0 100 0i
' > i13.0.0.0/
0
'
1.1.1.2 0 100 0 600 i
24
' > i20.0.0.0
0
'
'
TASK:
• Remove the dampening configured for all routes
• Configuree BGP dampening on R2 for only network 13.0.0.0/24 learned from R3
• Set halftime - 2 , max-supresstime - 8 , remaining default values
R2(config-route-map)#set dampening 2 ?
<1-20000> penalty to start reusing a route
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 291
R2(config-route-map)#set dampening 2 750 2000?
<1-255 > Maximum duration to suppress a stable route
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 292
R2(config-route-map)#set dampening 2 750 2000 8
R2 (config-route-map)#exit
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 293
Removing Private AS Numbers
disable the propagation of private AS numbers to EBGP peers in a serv ice provider network.
► The private AS numbers must be removed from the AS path before the customer BGP routes are
advertised to other service providers.
If the customer has been assigned a private AS number, this AS number must never be advertised
by any router to the rest of the I nt ernet .
PO/
DI
30 . l. l .l , /
R3
AS 300
R3#sh ip bgp
BGP table version is 32 . local router ID is 13.0.3.1
Status codes: s suppr esse d. d d amped. h hi story. • v alid. > best, i - internal. r
RIB-failure. S St ale
Origin code s: i - IGP. e - EGP, ? - incomplete
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 294
NOTE:
Private AS numbers followed by public AS numbers
are not removed because the command's visibility is
o nly o n the last (tail end) AS number.
AS300
R3#sh ip bgp
* > 40.0.0 .0 2.2.2.1 0 200 65 111 400 i
you may reconfigure the lo cal BGP speakers to use the new AS number but ad vertise the o ld AS in BGP
OPEN messages and BGP u pdates.
l
OldAS200
R2 (config-router)#end NewAS222
•.., ,.
""0
AS 100 ,r ool.1
. l. /
.,'\·. '
Rl
AS400
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 295
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 296
R3#sh ip bgp
BGP tab le version is 18. local ro uter ID is 13.0.3.1
St atu s codes: s sup pr essed. d damped. h hist o ry. • valid. > best. i -
internal. r RIB-failure. S Stale
Origin codes: i - IGP. e - EGP. ? - incomplete
.
*> 0.0.0.0 0 32768 i
*> 3.0.0.0 0.0.0.0 0 32768 i
3. 3. 3.2 0 0400 i
*> 10.0.0.0 2.2.2.1 0 200 222 200 100 i
*> 20.0.0.0 2.2.2.l 0 0 200 222 i
AS400
All BGP prefixes advertised to this eBGP peer would have the AS
num bers <OldAS> <NewAS> preprended in front of every BGP
R2
update's AS_PATH attribute Old AS 200
New AS 222
This is needed to avoid BGP ro ut i ng loo ps.
AS 100
R3#sh ip bgp Rl
BGP table versi on is 24. local router ID is 13.0 .3.1
St atu s code s: s suppressed. d damped. h hist o ry. • valid. > best. i -
internal. r RIB-failure. S St ale AS400
Origin codes: i - IGP. e - EGP. ? - incomplete
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 297
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 298
when co nfigur in g the hide local AS f eatur e. the external peers w o ul d see both the local- NETWDR
AS and the real AS n u mb er prepended in fro nt of the AS_PATH .
Som etime s. it is de sir able to com pl etely hide the " real" AS number (the one config ur ed via
router bgp < RealA S > command ).
To acco mp lish this, use the no-prepend replace-as paramete rs to the l o cal-as com m and .
R2
Old AS 200
New AS 222
"8400
AS 100
Rl
R3#sh ip bgp
BGP table versi on i s 30. local router ID is 13.0 .3.l
Status code s: s suppressed. d damped, h histo ry, * valid , > be st , i - inte rnal, "8400
r RIB-failure, S Stale
Origin co de s: i - IGP. e - EGP. ? - inco mplete
0
Network Next Hop Metric LocPrf Weight Path f
* > l. 0.0 .0 2.2.2.l 0 0 200i
* 2.0 .0.0 2.2.2.l 0 0200 i
*> 0.0.0.0 0 32768 i
* > 3.0.0.0 0.0.0.0 0 32768 i
* 3.3.3.2 0 0 400 i
*> 2.2.2.l 0200100 i
10.0.0.0 2.2.2.l 0 0200 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 299
BGP Support for Dual AS Configuration
for Network AS Migrations
► Allows you to merge a secondary AS under a primary AS without disrupting customer peering
sessions
► Allows a router to appear, to external peers, as a member of secondary AS during the AS
migration
► Allows a network operator to merge the autonomous systems and then later migrate customers to
new configurations during normal service windows without disrupting existing peering
arrangements
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 300
LAB: Remove Private-AS
..
..
.
.
d' -- ....
N .......d..
... '
.....
R2
AS200 .
-1 ro/o
30 . 1. 1. 1 /
j
R3
Rl
AS300
F0/0
0 -1. 1.1 /8
TASK: Configure EBGP as per the diagram and advertise connected interfaces
R2#sh ip bgp
BGP table version is 27, local router ID is 12.0.3.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
'
'
'
R3#sh ip bgp
BGP table version is 32, local router ID is 13.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
2.2.2.1 0 0 200 i
,., 2.0.0.0
2.2.2.1 0 0 200 i
'''> 0.0.0.0 0 32768 i
'>
0
'
2.2.2.1 0 200 65111 i
10.0.0.0 2.2.2.1 0 0 200 i
'>
0
'
0.0.0.0 0 32768 i
20.0.0.0
'>
0
'
30.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 302
Network Next Hop Metric LocPrf Weight Path
' > 1.0.0.0
0
'
2.2.2.1 0 0 200 i
,., 2.0.0.0
2.2.2.1 0 0 200 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 303
'''> 0.0.0.0 0 32768 i
*> 10.0.0.0 2.2.2.1 0200 i
'> 2.2.2.1 0 0200 i
0
'
'
30.0.0.0
• configure EBGP peering between R1-R4 as per the diagram
• advertise connected interfaces of R4 using BGP Network command.
.
.
.. IS
C'I
i> :t,.
. -.. '
...
R2
AS200
"i> .,
, ..I
-1 F0/0
,
30.1.1.1/
.
0.1.1.1/8
R3
AS300
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 305
0 BGP filter-list cache entries using O bytes of memory
BGP using 2044 total bytes of memory
BGP activity 21/13 prefixes, 32/24 paths, scan interval 60 secs
Rl#sh ip bgp
BGP table version is 19, local router ID is 11.0.3.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
'
'
'
'
'
'
'
0
R2#sh ip bgp
BGP table version is 30, local router ID is 12.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
'
'
'
'
0
R3#sh ip bgp
BGP table version is 37, local router ID is 13.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
2.2.2.1
,., 2.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 306
M
e
t
r
i
c
L
o
c
P
r
f
W
e
i
g
h
t
P
a
t
h
0 0 200 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 307
'''> 0.0.0.0 0 32768 i
r> 3.0.0.0 2.2.2.1 0 200 65111 400 i
'>
0
'
2.2.2.1 0 200 65111 400 i
4.0.0.0
' > 10.0.0.0 2.2.2.1 0200 ii
'> 2.2.2.1 0 0200 i
0
'
'
30.0.0.0
'> 2.2.2.1 0 200 65111 400 i
0
'
40.0.0.0
NOTE:
• Private AS numbers followed by public AS numbers are not removed because the command's visibility is only
on the last (tail end) AS number.
• Private AS numbers are removed from the tail of the AS path before the update is sent.
• Private AS numbers followed by a public AS number are not removed.
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 308
BGP Hide Local-Autonomous System Feature
• The Hide Local Autonomous System feature could be useful when migrating an autonomous system to a
different AS number. When the AS has multiple eBGP peering links, it may become time consuming to
negotiate the AS number change with all peering partners.
• In this case, you may reconfigure the local BGP speakers to use the new AS number but advertise the old AS
in BGP OPEN messages and BGP updates.
• This can be done per-eBGP peer basis using the command neighbor <IP> local-as <OldAS>
• The local-as <OldAS>command instructs the local router to advertise the <OldAS>number in BGP OPEN
messages instead of the AS number specified with router bgp <NewAS>command
R2
Old AS 200
New AS 222
AS 100 F0/0 .I
-1 ro,o 0 .1. 1. 1 /
0. 1. 1.1 /8
Rl
AS400
TASK: configure EBGP and advertise all connected interfaces as per the diagram
Rl#sh ip bgp
BGP table version is 90, local router ID is 11.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 310
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
'
'
'
'
R3#sh ip bgp
BGP table version is 18, local router ID is 13.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
'
-;':
3.3.3.2 0 0400 i
*> 10.0.0.0 2.2.2.1 0 200 222 200 100 i
' > 20.0.0.0 2.2.2.1 0 0 200 222 i
0
'
'
'
R4#sh ip bgp
BGP table version is 63, local router ID is 14.0.3.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
'
'
'
'
'
0.0.0.0 0 32768 i
• All BGP prefixes advertised to this eBGP peer would have the AS numbers <OldAS> <NewAS> preprended
in front of every BGP update's AS_PATH attribute.
• Thus, the external system may continue with the local system using the old AS number. In addition to that,
the external system will see the updates coming from the <OldAS> looking like they first transited
<NewAS>.
• This is needed to avoid BGP routing loops.
• If you specify the no-prepend keyword, then any routes receivedfrom the eBGP peer will not have
<OldAS> prepended upon reception.
• no-prepend feature applies only to inbound learned routes. All externally advertise routes still have the local
as number prepended.
R2#sh ip bgp
BGP table version is 8, local router ID is 12.0.3.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
'
'
'
'
'
R2#sh ip bgp
BGP table version is 16, local router ID is 12.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
'
'
'
'
R3#sh ip bgp
BGP table version is 24, local router ID is 13.0.3.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
'
-;':
2.0.0.0 2.2.2.1 0 0 200 222 i
'''> 0.0.0.0 0 32768 i
' > 3.0.0.0 0.0.0.0 0 32768 i
0
'
'
'
'
'
0
R4#sh ip bgp
BGP table version is 65, local router ID is 14.0.3.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
'
'
-;':
3.0.0.0 3.3.3.1 0 0 300 i
'''> 0.0.0.0 0 32768 i
' > 10.0.0.0 3.3.3.1 0 300 200 222 100 i
0
'
'
'
'
• when configuring the hide local AS feature, the external peers would see both the local-AS and the real AS
number prepended in front of the AS_PATH.
• Sometimes, it is desirable to completely hide the "real" AS number (the one configured via router bgp
<RealAS>command).
• To accomplish this, use the no-prepend replace-as parameters to the local-as command.
• This combination will replace the real AS number with the one specified in the local-ascommand. The
respective neighbor will be completely tricked into thinking that all routers are received from the AS
number configured with the local-ascommand, as this number will appear in the AS_PATH and BGP OPEN
message.
• Keep in mind that such replacement could lead to routing loops, if the original AS was partitioned using two
AS numbers.
R3#sh ip bgp
BGP table version is 30, local router ID is 13.0.3.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
'
-;':
2.0.0.0 2.2.2.1 0 0200 i
'''> 0.0.0.0 0 32768 i
' > 3.0.0.0 0.0.0.0 0 32768 i
0
'
'
'
'
'
0
R4#sh ip bgp
BGP table version is 69, local router ID is 14.0.3.1
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RI 8-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
'
-;':
3.0.0.0 3.3.3.1 0 0 300 i
'''> 0.0.0.0 0 32768 i
' > 10.0.0.0 3.3.3.1 0 300 200 100 i
0
'
'
'
'
0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 315
BGP Support for Dual AS Configuration for Network AS Migrations
• Allows you to merge a secondary AS under a primary AS without disrupting customer peering sessions
• Allows a router to appear, to external peers, as a member of secondary AS during the AS migration
• Allows a network operator to merge the autonomous systems and then later migrate customers to new
configurations during normal service windows without disrupting existing peering arrangements
TASK: Reconfigure R2( AS222) to ensure even if we change the EBGP peers ( R1/R3) to form peering with new
AS it should not effect the neighborship between R2 & R1/R3.
Configures the EBGP neighbor to establish a peering session using the real AS number(from the local BGP
routing process) or by using the AS number configured with the ipaddressargument (local-as)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 317
R3(config)#router bgp 300
R3(config-router)#no neighbor 2.2.2.1 remote-as 200
R3(config-ro uter)# neighbor 2.2.2.1 remote-as 222
R3(config-router)#end
R3#sh ip bgp
BGP table version is 42, local router ID is 13.0.3.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
'
-;':
2.0.0.0 2.2.2.1 0 0 222 i
'''> 0.0.0.0 0 32768 i
' > 3.0.0.0 0.0.0.0 0 32768 i
0
'
'
'
'
'
0
R4#sh ip bgp
BGP table version is 105, local router ID is 14.0.3.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 1 .0
' > 1.0.0.0 0
0
'
'
,., 3.0.0.0 0
'''> .
'> 0
0
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 318
Next Hop 3.3.3.1 Metric
3.3.3.1 LocPrf
3.3.3.1 Weight
0.0.0.0 Path
3.3.3.1 0
30
0
22
2
0
0 300
i
0
0 300
i
0
32768 i
0
300
222
10
0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 319
'>
0
'
3.3.3.1 0 300 222 i
20.0.0.0 3.3.3.1 0 0 300 i
'>
0
'
0.0.0.0 0 32768 i
30.0.0.0
'>
0
'
40.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 320
LAB : BGP allowas-in
.
.
N -
i>·i).s-.
,
-
.,,.... d'
R2
..
ASSOO
-1 F0/0
ro10
j
0. 1. 1.1 /8 30 . 1. 1. l /
Rl
AS 1000
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 321
R4(config-router)#network
3.0.0.0 R4(config-router)#end
R2#sh ip bgp
BGP table version is 8, local router ID is 12.0.3.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
'
'
'
'
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 322
Rl#sh ip bgp
BGP table version is 7, local router ID is 11.0.3.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
'
1.1.1.2 0 0 500 i
' > 3.0.0.0
0
'
1.1.1.2 0 500 i
'>
0
'
0.0.0.0 0 32768 i
10.0.0.0 1.1.1.2 0 0 500 i
'>
0
'
1.1.1.2 0 500 i
20.0.0.0
'>
0
'
30.0.0.0
TASK:
• Configure R1/R4 to exchange BGP routes between them without changing AS number (BGP allowas-in)
Rl#sh ip bgp
BGP table version is 7, local router ID is 11.0.3.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
'
1.1.1.2 0 0 500 i
' > 3.0.0.0
0
'
1.1.1.2 0 500 i
'>
0
'
0.0.0.0 0 32768 i
10.0.0.0 1.1.1.2 0 0 500 i
'>
0
'
1.1.1.2 0 500 i
20.0.0.0
'>
0
'
30.0.0.0
Rl#sh ip bgp
BGP table version is 8, local router ID is 11.0.3.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
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 323
'>
0
'
Next Hop Metric LocPrf Weight Path 0 0
20.0.0.0 1.1.1.2 500 i
'>
0
'
0.0.0.0 0 32768 i
30.0.0.0 1.1.1.2 0 0 500 i
'>
0
'
1.1.1.2 0 500 i
40.0.0.0 0.0.0.0 0 32768 i
1.1.1.2 0 0 500 i
1.1.1.2 0 500 i
1.1.1.2 05001000 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 324
R4#sh ip bgp
BGP table version is 7, local router ID is 14.0.3.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
'
3.3.3.1 0 500 i
' > 2.0.0.0
0
'
3.3.3.1 0 0 500 i
,., 3.0.0.0
3.3.3.1 0 0 500 i
'''> 0.0.0.0 0 32768 i
'>
0
'
3.3.3.1 0 500 i
20.0.0.0 3.3.3.1 0 0 500 i
'>
0
'
0.0.0.0 0 32768 i
30.0.0.0
'>
0
'
40.0.0.0
R4#sh ip bgp
BGP table version is 8, local router ID is 14.0.3.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
'
3.3.3.1 0 0 500 i
' > 2.0.0.0
0
'
3.3.3.1 0 0 500 i
,., 3.0.0.0
3.3.3.1 0 32768 i
'''> 0.0.0.0
'>
0
'
3.3.3.1 05001000 i
10.0.0.0 3.3.3.1 0 500 i
'>
0
'
3.3.3.1 0 0 500 i
20.0.0.0 0.0.0.0 0 32768 i
'>
0
'
30.0.0.0
'>
0
'
40.0.0.0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 325
Tracing the route to 10.1.1.1
1 3.3.3.1 20 msec 36 msec 20 msec
2 2.2.2.1 [AS 500] 28 msec 68 msec 48 msec
3 1.1.1.1 [AS 500] 48 msec ,., 160 msec
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 326
1Pv6 BGP
IPV6-
BGP
► BG P-4 was designed to carry o nly 1Pv4 routing i nfo rmat io n
► T o support multiple network layer p ro to co ls, IETF extended BGP-4 by i ntrod ucing Multip ro toco l
BGP (MP-BGP)
► 1 Pv6 BGP puts 1Pv 6 network layer i nfo rmat io n into the attr i b utes of network la yer reachable
information (N LRI) and N EXT _HO P.
► T he N EXT _HO P attribute of 1 Pv6 BGP is identified by an 1 Pv6 unicast address or 1Pv6 lo cal link
add ress.
assuming yo u are famil iar with BGP4+ w it h 1 Pv4, 1Pv6 is not so different or any more co mp le x
when getting started
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 327
IPV6 IBGP - EBGP
Rl(config)#ipv6 unicast-routing
R2
Network Next Hop Metric LocPrf Weight
Loopbaclt 0
Path 200 1::2/ 128
*> i2001 ::l /128 2001:12::l 0 100 0i
* > 2001::2/128 .. 0 32768 i
''> 2001::3/128 2001:23::3 0 0600 i Loopb ack 0
200 1::3 / 128
* i2001:12::/ 64 2001:12::1 0 100 Oi
*> .. 0 32768 i
R3
• 2001:23:: / 64 2001:23::3 0 0600 i Rl
ASSOO
Neighbor
V AS MsgRcvd MsgSent TblVer lnQ OutQ Up/ Down St ate/ PfxRcd
2001:12::1
4 500 7 7 6 0 0 00:02:31 2
2001:23::3
4 600 5 6 5 0 0 00:00:08 2
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 328
Rl #sh ip bgp ipv6 unicast
BGP table versi on is 7. local router ID is 11.0.3.1
Status codes: s suppressed, d damped. h history . • valid, > best. i - internal.
r RIB-failure. S Stale
Origin codes: i - \GP. e - EGP. ? - incomplete
R2
N etw ork Next Hop Metric LocPrf Weight Path Loopbaclr: 0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 329
IPV6 - EBGP using Loopbacks
R2
Loopback 0
2001::2/ 128
Loopback O
AS 500 200 1 ee3/
128
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 330
LAB : Basic IPV6 IBGP and EBGP configurations
Loopback 0
2001::2/ 128
Loopback 0
Loopback 0 2001::3/128
2001::1/128
R3
Rl
ASSOO AS 600
TASK:
• IPV6 addressing is preconfigured as per the diagram
• Configure IBGP and EBGPpeering using directly connected interfaces
• Adveritse all connected interfaces inside BGP as per the diagram.
R1(config)#ipv6 unicast-routing
R2(config)#ipv6 unicast-routing
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions.com Page 31O
R2(config-router)#neighbor 2001:23::3 remote-as 600
R2 (config-ro uter)# add ress-family ipv6 unicast
R2(config-router-af)#neighbor 2001:12::1 activate
R2(config-router-af)#neighbor 2001:23::3 activate
R2(config-router-af)#network 2001::2/128
R2(config-router-af)#network 2001:12::/64
R2(config-router-af)#network 2001:23::/64
R2 (config-router-af)#exit
'
2001:12::1 0 100 0i
> i2001::1/128
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 311
0
'
'
2001::1/128 '
0
'
'
TASK
• Configure R2 to change the Next-hop address to its own address when it sends update to Internal routers
(Rl)
'
2001::1/128 '
0
'
2001:12::2 0 100 0i
' > 2001:23::3 0 100 0 600 i
0
'
2001:12::/64 .. 0 32768 i
,., i 2001:12::2 0 100 0i
' > i2001:23::/ 64 2001:12::2 0 100 0i
0
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 313
Status codes: s suppressed, d damped, h history, ,., valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
'
2001::1/128 '
0
'
2001:12::2 0 100 0i
' > 2001:12::2 0 100 0 600 i
0
'
2001:12::/64 .. 0 32768 i
,., i 2001:12::2 0 100 0i
' > i2001:23::/ 64 2001:12::2
0
'
0 100 0i
Rl#ping 2001::3
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::3, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 36/59/84 ms
Rl#ping 2001::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to 2001::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 20/37/76 ms
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 314
LAB: IPV6 IBGP & EBGP Advance Configurations
R2
Loopback 0
2001::2/128
RIPng
Loopback 0
AS 500 200 1::3 / 12 8
AS600 R4 Loopback 0
2001::4/128
TASK:
• IPV6 addressing is preconfigured as per the diagram
• Configure RIPng as IGP protocol inside AS 500 to provide NLRI between loopbacks
• Configure IBGP using following parameters inside AS 500
1. Do not use full mesh ( use Route Reflector R2 as server R1/R3 as Clients)
2. Configure Authentication between iBGP peers using password cisco123.
3. Use minimum number of commands possible ( use Peer groups)
• Adveritse all connected interfaces inside BGP as per the diagram.
R1(config)#ipv6 unicast-routing
R1(config)#ipv6 router rip
CCIE Rl(config-rtr)#exit
Rl(config)#int sl/0
R1(config-if)#ipv6 rip CCIE enable
Rl (config-if)#exit
Rl(config)#int loop 0
R1(config-if)#ipv6 rip CCIE enable
Rl (config-if)#exit
R2(config)#ipv6 unicast-routing
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 315
R2(config)#ipv6 router rip CCIE
R2 (config-rtr)#exit
R2(config)#int sl/0
R2(config-if)#ipv6 rip CCIE enable
R2 (config-if)#int sl/1
R2(config-if)#ipv6 rip CCIE
enable R2(config-if)#int loop 0
R2(config-if)#ipv6 rip CCIE enable
R2 (config-if)#end
R3(config)#ipv6 unicast-routing
R3(config)#ipv6 router rip CCIE
R3(config-rtr)#exit
R3(config)#int sl/0
R3(config-if)#ipv6 rip CCIE
enable R3(config-if)#int loop 0
R3(config-if)#ipv6 rip CCIE
enable R3(config-if)#end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 316
via FE80::CE02:1EFF:FED0:0, Seriall/0
R 2001::2/128 [120/2]
via FE80::CE02:1EFF:FED0:0, Seriall/0
R 2001::3/128 [120/3]
via FE80::CE02:1EFF:FED0:0, Seriall/0
R 2001:23::/64 [120/2]
via FE80::CE02:1EFF:FED0:0, Seriall/0
TASK:
• Configure IBGP using following parameters inside AS 500
• Do not use full mesh ( use Route Reflector R2 as server R1/R3 as Clients)
• Configure Authentication between iBGP peers using password cisco123.
• Use minimum number of commands possible ( use Peer groups)
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 317
R2(config-router-af)# network 2001::2/128
R2(config-router-af)# network 2001:12::/64
R2(config-router-af)# network 2001:23::/64
R2 (config-router-af)# exit-address-family
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 318
0 BGP route-map cache entries using 0 bytes of memory
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 319
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 1649 total bytes of memory
BGP activity 5/0 prefixes, 7/0 paths, scan interval 60 secs
'
'
0
'
.. 0 32768 i
' > i2001::2/128 2001::2 0 100 0i
0
'
'
'
L
o
c
P
r
f
W
e
i
g
h
t
P
a
t
h
1
0
0
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www. noasolutions. com Page 31B
' > i2001::2/128 2001::2 0100 0i
0
'
.. 0 32768 i
' > i2001:12::/64 2001::2 0 100 0i
0
'
'
R4(config)#ipv6 unicast-routing
R4(config)#ipv6 route 2001::1/128 2001:14::1
R4(config)#ipv6 route 2001::3/128 2001:34::3
R4(config)#end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 319
Rl(config)#router bgp 500
Rl(config-router)#neighbor 2001::4 remote-as 600
Rl(config-router)#neighbor 2001::4 update-source loopback 0
Rl(config-router)#neighbor 2001::4 ebgp-multihop
Rl(config-router)#neighbor 2001::4 password cisco123
Rl (config-ro uter)# add ress-family ipv6 unicast
Rl(config-router-af)#neighbor 2001::4 activate
Rl(config-router-af)#network 2001:14::/64
Rl (config-router-af)#end
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 320
R4#sh ip bgp ipv6 unicast
BGP table version is 9, local router ID is 14.0.3.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
'
-;':
2001:12::/64 2001::3 0 500 i
2001::1 0 0 500 i
,., 2001:14::/64 2001::3 0 500 i
0 32768 i
2001::1 0 0 500 i
,., 2001:23::/64 2001::3 0 0500 i
2001::1 0 500 i
,., 2001:34::/64 2001::3 0 0500 i
0 32768 i
2001::1 0 500 i
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 322
TASK: Congiure R1/R3 to change the next-hop when they advertise to IBGP neighbors:
address-family ipv6
neighbor 2001::2 activate
neighbor 2001::4 activate
network 2001::1/128
network 2001:12::/64
network 2001:14::/64
exit-address-family
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 323
neighbor 2001::4 password cisco123
neighbor 2001::4 update-source Loopback0
address-family ipv6
neighbor 2001::2 activate
neighbor 2001::4 activate
network 2001::3/128
network 2001:23::/64
network 2001:34::/64
exit-address-family
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 324
Rl(config-route-map)# exit
'
.. 0 32768 i
' 2001::2 0 100 0i
0
'
' >
0
'
0 100 0i
2001::4/128 0 32768 i
,., i2001:12::/64 2001::2 0 200 0 600 i
'''> .. 0 32768 i
-;':
2001:14::/64 2001::4
'''> ..
' > i2001:23::/ 64
0
'
2001::2 0 100 0i
' > 2001:34::/64 2001::4 0 200 0 600 i
0
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 326
600
2001::4 from 2001::4 (14.0.3.1)
Origin IGP, metric 0, localpref 100, valid, external
'
2001::1 0 100 0i
> i2001::1/128 '
2001::2 0 100 0i
' > i2001::2/128
0
0 32768 i
' >
0
'
2001::3/128
' > i2001::4/128 2001::1 0 200 0 600 i
0
'
'
'
NOA solutions, N.K Arcade, 2nd & 3rd floor,Opposite to banjara function hall,Banjarahills Road-no-
1 Hyderabad, INDIA. +91 40 65890380, +91 7036826345 www.noasolutions.com Page 327