Border Gateway ProtocolBGP
Lab Guide
2
Configuration Loading
To load a new configuration into startup-configFrom the enable mode, perform these 3 steps:
1. Write eraseAnswer ‘y’ and wait a few seconds
2. Copy <file-name> startup-configPress ‘enter’ to the question and wait a few seconds
3. ReloadAnswer ‘y’ and wait for reboot
3
Labs UsedLab Name Flash File2-a Global BGP Config2-b eBGP Neighbor Interface2-c eBGP Networks2-d eBGP Neighbor Loopback2-e iBGP Neighbors2-f Weight2-g Local Preference2-h AS Path2-i Multi Exit Discriminator
4
Labs UsedLab Name Flash File4-a Route Reflectors4-b Peer Groups4-c Route Maps4-d AS Path Filters4-e Prefix Lists4-f Communities4-g Aggregation4-h Redistribution
5
LAB 1: Setup / Familiarization• Purpose:
– Review physical connectivity• Tasks
– Review equipment used– Review lab guide– Establish basic router identity
• Hostname• Passwords: enable and vty – use “cisco”• Login
• Commands used– Show ip route– Show version– Show running-config
6
Lab 1 - Physical Setup 1
TRAINING PC
CO NSO LE AUX
Cis
co
2
61
1
ACTLINKACTLINK
ETHERNET 1 ETHERNET 0
TRAINING PC
TRAINING PC
CONSOLE AUX
Cisc
o
26
11
ACTLINKACTLINK
ETHERNET 1 ETHERNET 0
CONSOLE AUX
Cisc
o
26
11
ACTLINKACTLINK
ETHERNET 1 ETHERNET 0
CONSOLE AUX
Cisc
o
26
11
ACTLINKACTLINK
ETHERNET 1 ETHERNET 0
CONSOLE AUX
Cisc
o
26
11
ACTLINKACTLINK
ETHERNET 1 ETHERNET 0
CONSOLE AUX
Cisc
o
26
11
ACTLINKACTLINK
ETHERNET 1 ETHERNET 0
CONSOLE AUX
Cisc
o
26
11
ACTLINKACTLINK
ETHERNET 1 ETHERNET 0
CONSOLE AUX
Cisc
o
26
11
ACTLINKACTLINK
ETHERNET 1 ETHERNET 0
Catalyst 2900 SERIES10Base T/100Base TX
XL
1x 2x 3x 4x 5x 6x 7x 8x 9x 10x 11x 12x 13x 14x 15x 16x 17x 18x 19x 20x 21x 22x
MODEMODE
SYSTEM RPSSYSTEM RPS
100Base-FX23 24
Async
Terminal
Server (c2611)
Cat 2924
Cat 2924
Seattle
San Francisco
Los Angeles
San Diego
Phoenix
El Paso
New Orleans
Portland
Dallas
Catalyst 2900 SERIES10Base T/100Base TX XL
1x 2x 3x 4x 5x 6x 7x 8x 9x 10x 11x 12x 13x 14x 15x 16x 17x 18x 19x 20x 21x 22x
MODEMODE
SYSTEM RPSSYSTEM RPS
100Base-FX
23 24
Ethernet e0/0
IT
DomainCONSOLE AUX
Cisc
o
26
11
ACTLINKACTLINK
ETHERNET 1 ETHERNET 0
Atlanta
CONSOLE AUX
Cisc
o
26
11
ACTLINKACTLINK
ETHERNET 1 ETHERNET 0
New York Ethernet e0/1
Cat 2924Catalyst 2900 SERIES10Base T/100Base TX XL
1x 2x3x 4x
5x 6x7x 8x
9x 10x11x 12x
13x 14x15x 16x
17x 18x19x 20x
21x 22x
MODEMODE
SYSTEM RPSSYSTEM RPS
100Base-FX
23 24
7
Reverse Telnet Guidetty cable Router Name PC
2033 0/1 San Francisco Training 1
2034 0/2 Los Angeles Training 2
2035 0/3 San Diego Training 3
2036 0/4 Phoenix Training 4
2037 0/5 El Paso Training 5
2038 0/6 Dallas Training 6
2039 0/7 New Orleans Training 7
2040 0/8 Seattle
2041 1/1 Portland Training 8
2042 1/2 Atlanta Training 9
2043 1/3 New York Training 10
8
Lab 1 - Physical Setup 2
Frame
RelayRouter
RouterRouter
Router
RouterRouterRouterRouterRouter
Router
Router
San
Francisco
New YorkAtlantaNew
OrleansDallas
El Paso
Phoenix
San
Diego
Portland
Los
Angeles
Seattle
9
LAB 2-a: Configuration - eBGP• Purpose
– Get external BGP (eBGP) up and running• Tasks
– Configure the BGP Autonomous System– Configure IP information on interfaces (ethernet and
loopback• Configuration Commands used
– Router BGP <ASN>• Commands used
– Show ip route - Ping– Show ip bgp– Show ip bgp summary - Show ip bgp neighbor
10
Lab 2-a: ASN setup
Router
Router
Router
Router
RouterRouterRouter
Router
Router
Router
San
Francisco
New York
Atlanta
New
Orleans
DallasEl PasoPhoenix
San
Diego
PortlandLos
Angeles
ASN
1
ASN 10
ASN
9
ASN
8
ASN
7
ASN 6ASN 5
ASN
4
ASN
3
ASN
2
11
Lab 2-a: IP setup
Router
Router
Router
Router
RouterRouterRouter
Router
Router
Router
San
Francisco
New York
Atlanta
New
Orleans
DallasEl PasoPhoenix
San
Diego
PortlandLos
Angeles
201.0.100.0
209.0.100.0
208.1.100.0
207.0.100.0
206.1.100.0205.0.100.0
204.1.100.0
203.0.100.0
202.1.100.0
210.1.100.0
e 0/0
e 0/1 e 0/0
e 0/0
e 0/0
e 0/0
e 0/1
e 0/1
e 0/1
e 0/1
/ 30
12
Lab 2-a: Worksheet 1• Router (city) _______________ Lab #____• E0/0 ____.0.100.____ /30
– Connected to ___________ Lab#____ Interface E__/__
• E0/1 ____.1.100.____ /30– Connected to ___________ Lab#____ Interface E__/__
• Loopback 1 ____.1.102.1 /24• Loopback 2 ____.2.102.1 /25• Loopback 3 ____.3.102.1 /26
13
Lab 2-a: Worksheet 2• Commands used:
– __________________ purpose ___________________– __________________ purpose ___________________– __________________ purpose ___________________– __________________ purpose ___________________
• Output from:– Show ip route: ____________________– Show ip bgp: ____________________– Show ip bgp summary: _______________
• Are you seeing bgp neighbors?• Are you seeing bgp routes from neighbors?
14
LAB 2-b: Configuration - eBGP• Purpose
– Understand the configuration steps for eBGP neighbors– Understand communication between eBGP speakers
• Tasks– Configure BGP neighbors (interface peering)
• Configuration Commands used– Neighbor A.B.C.D remote-as <ASN>
• Commands used– Show ip route - Debug ip bgp events– Show ip bgp - Debug ip bgp updates– Show ip bgp summary– Show ip bgp neighbor
15
Lab 2-b: Worksheet 1
• Router (city) ___________ Lab #___ ASN ___• E0/0 peer:
– City name __________ Lab #___ ASN ___– (local to you) IP addr _____.0.100._____– (remote) IP addr _____.0.100._____
• E0/1 peer– City name __________ Lab #___ ASN ___– (local to you) IP addr _____.1.100._____– (remote) IP addr _____.1.100._____
16
Lab 2-b: Worksheet 2• Commands used:
– __________________ purpose ___________________– __________________ purpose ___________________
• Output from:– Show ip route: ____________________– Show ip bgp: ____________________– Show ip bgp summary: _______________
• Are you seeing bgp neighbors?– IP address ____.0.100.____ ASN ____– IP address ____.1.100.____ ASN ____
• Are you seeing bgp routes from neighbors?
17
LAB 2-c: Configuration - eBGP• Purpose
– Announce networks externally across AS boundaries• Tasks
– Configure BGP network statements• Configuration Commands used
– Router bgp <ASN>• Network ______ mask ______
• Commands used– Show ip route– Show ip bgp– Show ip bgp summary– Show ip bgp neighbor
18
Lab 2-c: Worksheet 1• Router (city)_______________ Lab #___ ASN ___
• Loopback 1 _____.1.102.1 /24– Network _____.1.102._____ mask 255.255.255._____
• Loopback 2 _____.2.102.1 /25– Network _____.2.102._____ mask 255.255.255._____
• Loopback 3 _____.3.102.1 /26– Network _____.3.102._____ mask 255.255.255._____
19
Lab 2-c: Worksheet 2• Commands used:
– __________________ purpose ___________________– __________________ purpose ___________________
• Output from:– Show ip route: ____________________– Show ip bgp: ____________________– Show ip bgp summary: _______________
• Are you seeing bgp routes from neighbors?– _______________________ mask /____– _______________________ mask /____– _______________________ mask /____
20
LAB 2-d: Configuration - eBGP• Purpose
– Get eBGP up and running using Loopback peering• Tasks
– Delete eBGP neighbor [interface peering] configuration– Create interface Loopback 10
• ____.1.1.1 /32– Create neighbor configuration using remote interface
Loopback IP address• Configuration Commands used for Neighbor
– remote-as• Commands used
– Show ip bgp - Show ip bgp summary– Show ip bgp neighbor
21
Lab 2-d: Worksheet 1• Router (city) ___________ Lab #___ ASN ___• E0/0 peer: (peer to remote Loopback address)
– City name __________ Lab #___ ASN ___– (local to you Loopback 10) IP addr
_____._____._____._____– (remote Loopback 10) IP addr _____._____._____._____
• E0/1 peer: (peer to remote Loopback address)– City name __________ Lab #___ ASN ___– (local to you Loopback 10) IP addr
_____._____._____._____– (remote Loopback 10) IP addr _____._____._____._____
22
Lab 2-d: Worksheet 2• Commands used:
– __________________ purpose ___________________– __________________ purpose ___________________– __________________ purpose ___________________– __________________ purpose ___________________
• Output from:– Show ip route: ____________________– Show ip bgp: ____________________– Show ip bgp summary: _______________
• Are you seeing bgp neighbors?• Are you seeing bgp routes from neighbors?
23
LAB 2-e: Configuration - iBGP• Purpose
– Understand the configuration steps for iBGP neighbors– Understand communication between iBGP speakers
• Tasks– Delete BGP process– Create BGP process using ASN 88– Peer with Seattle router: 182.16.100.100– Create and announce Loopback 1 network
• Configuration Commands used– Neighbor, synchronization
• Commands used– Show ip bgp - Show ip bgp summary– Show ip bgp neighbor
24
Lab 2-e: IP Setup
Router
RouterRouter
Router
RouterRouterRouterRouterRouter
Router
Router
San
Francisco
New YorkAtlantaNew
OrleansDallas
El Paso
Phoenix
San
Diego
Portland
Los
Angeles
Seattle
Catalyst
182.16.100.0 / 24
e 0/0
25
Lab 2-e: Worksheet 1
• Router (city) __________ Lab #___ ASN _88_• E0/0 peer: (start with peer to Seattle)
– City name: Seattle ASN _88_– (local to you) IP addr 182.16.100._____– (remote) IP addr 182.16.100.100
26
Lab 2-e: Worksheet 2• Commands used:
– __________________ purpose ___________________
– __________________ purpose ___________________
– __________________ purpose ___________________
• Are you seeing BGP table entries from neighbors?– _______________________ mask /____
• Next Hop _________________________
• Are you seeing IP routes?– _______________________ mask /____
• Next Hop _________________________
27
LAB 2-f: Attribute - Weight• Purpose
– Determine the effect of altering the WEIGHT Attribute• Tasks
– Load new config for “Lab-2-F”– Configure BGP AS and Neighbors– Announce Loopback 2 and 3– Change the ‘weight’ attribute on a neighbor
• Configuration Commands used– Neighbor A.B.C.D weight 50
• Commands used– Show ip bgp - Show ip route
28
Lab 2-f: AS Setup
Router
Router
Router
Router
RouterRouterRouter
Router
Router
Router
San
Francisco New York
Atlanta
New
Orleans
DallasEl Paso
Phoenix
San
Diego
Portland
Los
Angeles
ASN
1
ASN 10
ASN
9
ASN
8
ASN
7
ASN 6
ASN 5
ASN
4
ASN
3
ASN
2
29
Lab 2-f: PVC SetupPDX (902) – LAX (209)PDX (903) – SND (309)PDX (908) – ATL (809)SFO (102) – LAX (201)SFO (105) – ELP (501)LAX (201) – SFO (102)LAX (203) – SND (302)LAX (209) – PDX (902)SND (302) – LAX (203)SND (309) – PDX (903)PHX (405) – ELP (504)PHX (406) – DAL (604)PHX (407) – NOL (704)
ELP (501) – SFO (105)ELP (504) – PHX (405)ELP (506) – DAL (605)DAL (604) – PHX (406)DAL (605) – ELP (506)DAL (609) – NYC (906)NOL (704) – PHX (407)NOL (708) – ATL (807)NOL (709) – NYC (907)ATL (807) – NOL (708)ATL (809) – PDX (908)NYC (906) – DAL (609)NYC (907) – NOL (709)
30
Lab 2-f: IP SetupPDX (902) – LAX (209)PDX (903) – SND (309)PDX (907) – ATL (709)SFO (102) – LAX (201)SFO (105) – ELP (501)LAX (203) – SND (302)PHX (405) – ELP (504)PHX (406) – DAL (604)PHX (407) – NOL (704)ELP (506) – DAL (605)DAL (609) – NYC (906)NOL (708) – ATL (807)NOL (709) – NYC (907)
92.29.1.0 /3093.39.1.0 /3097.79.1.0 /3012.21.1.0 /3015.51.1.0 /3023.32.1.0 /3045.54.2.0 /3046.64.2.0 /3047.74.2.0 /3056.65.2.0 /3069.96.2.0 /3078.87.2.0 /3079.97.2.0 /30
31
Lab 2-f: Worksheet• Commands used:
– __________________ purpose ___________________– __________________ purpose ___________________
• Are you seeing multi paths to the same destination?– AS Path 1 _____________ AS Path 2 _____________
• Are you seeing BGP table entries from neighbors?– _______________________ mask /____
• Next Hop _________________________
• Are you seeing IP routes?– _______________________ mask /____
• Next Hop _________________________
32
LAB 2-g: Attribute - Local Pref
• Purpose– Determine the effect of altering the LOCAL-PREF
Attribute• Tasks
– Remove the ‘weight’ command from the last lab– Create a route-map containing a Local Pref set– Apply the route-map to the neighbor
• Configuration Commands used– Route-map loc-pref permit 10
Set local-preference– Router BGP <ASN>
• Neighbor A.B.C.D route-map loc-pref in
33
Lab 2-g: AS Setup
Router
Router
Router
Router
RouterRouterRouter
Router
Router
Router
San
Francisco New York
Atlanta
New
Orleans
DallasEl Paso
Phoenix
San
Diego
Portland
Los
Angeles
ASN
1
ASN 10
ASN
9
ASN
8
ASN
7
ASN 6
ASN 5
ASN
4
ASN
3
ASN
2
34
Lab 2-g: Worksheet• Commands used:
– __________________ purpose ___________________– __________________ purpose ___________________
• Are you seeing mult paths to the same destination?– AS Path 1 _____________ AS Path 2 _____________
• Are you seeing BGP table entries from neighbors?– _______________________ mask /____
• Next Hop _________________________
• Are you seeing IP routes?– _______________________ mask /____
• Next Hop _________________________
35
LAB 2-h: Attribute - AS Path• Purpose
– Determine the effect of altering the AS-PATH Attribute• Tasks
– Remove the route-map applied in last lab– Create a route-map with the AS Prepend– Apply the route-map to the neighbor
• Configuration Commands used– Route-map as-prepend
Set as-path prepend <ASN> <ASN>– Router BGP <ASN>
• Neighbor A.B.C.D route-map as-prepend out
36
Lab 2-h: AS Setup
Router
Router
Router
Router
RouterRouterRouter
Router
Router
Router
San
Francisco New York
Atlanta
New
Orleans
DallasEl Paso
Phoenix
San
Diego
Portland
Los
Angeles
ASN
1
ASN 10
ASN
9
ASN
8
ASN
7
ASN 6
ASN 5
ASN
4
ASN
3
ASN
2
37
Lab 2-h: Worksheet• Commands used:
– __________________ purpose ___________________– __________________ purpose ___________________
• Are you seeing multi paths to the same destination?– AS Path 1 _____________ AS Path 2 _____________
• Are you seeing BGP table entries from neighbors?– _______________________ mask /____
• Next Hop _________________________
• Are you seeing IP routes?– _______________________ mask /____
• Next Hop _________________________
38
Lab 4-a: Route Reflector• Purpose
– Determine the role Route Reflectors play in iBGP mesh• Tasks
– Advertise *LOOPBACK 2 and 3* networks into BGP– Create additional loopback subnets and advertise in BGP– Create neighbor statements with Seattle and Portland
loopbacks *ONLY*• Configuration Commands used
– Neighbor: synchronization• Commands used
– Show ip bgp– Show ip route
39
Lab 4-a: Route Reflectors
Router
RouterRouter
Router
RouterRouterRouterRouterRouter
Router
Router
San
Francisco
New YorkAtlantaNew
OrleansDallas
El Paso
Phoenix
San
Diego
Portland
Los
Angeles
Seattle
Catalyst
182.16.100.0 / 24
e 0/0
40
Lab 4-a: Worksheet 1• BGP AS: 88• Seattle loopback address: 9.1.102.1• BGP Network advertisements:
– Loopback 2 network ______.2.102.______ mask 255.255.255._____
– Loopback 3 network ______.3.102.______ mask 255.255.255._____
– Loopback ___ net ______.______.______.______ mask ____.____.____.____
41
Lab 4-a: Worksheet 2• Commands used:
– __________________ purpose ___________________– __________________ purpose ___________________
• Are you seeing BGP table entries from neighbors?– _______________________ mask /____
• Next Hop _________________________• Learned via _________________________
• Are you seeing IP routes?– _______________________ mask /____
• Next Hop _________________________• Learned via _________________________
42
Lab 4-b: Peer Groups
• Purpose– Use Peer Groups to simplify neighbors
• Tasks– Create two peer-groups for: Internal and External– Create neighbor adjacencies using the peer-groups
• Configuration Commands used– Neighbor <peer group name> peer-group– Neighbor A.B.C.D peer-group <peer group name>
43
Lab 4-b: PVC and IP SetupPDX (902) - LAX (209)LAX (209) - PDX (902)
SFO (105) - ELP (501)ELP (501) - SFO (105)
DAL (604) - PHX (406)PHX (406) - DAL (604)
NOL (709) - NYC (907)NYC (907) - NOL (709)
11.216.100.111.216.100.2
11.216.101.111.216.101.2
189.216.102.1189.216.102.2
52.216.104.152.216.104.2
44
Lab 4-b: ASN Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
ASN 10
ASN 30
ASN 40
ASN 20
45
Lab 4-b: IP Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
E 0/0
189.216.100.0
/24
E 0/1
52.39.200.0
/24
E 0/0
11.62.10.0
/24
S 0/0 (902 - 209)
11.216.100.0
/30
S 0/0 (105 - 501)
11.216.101.0
/30
E 0/1
11.216.102.0
/30
S 0/0 (907 - 709)
52.216.104.0
/30
S 0/0 (406 - 604)
189.216.103.0
/30
46
Lab 4-b - Worksheet 1• External peer-group name: _____________
– Peer-group ___________– Peer-group ___________– Peer-group ___________– Peer-group ___________– Peer-group ___________
• Peersneighbor ____.____.____.____ neighbor ____.____.____.____neighbor ____.____.____.____ neighbor ____.____.____.____
47
Lab 4-b - Worksheet 2• Internal peer-group name: _____________
– Peer-group ___________– Peer-group ___________– Peer-group ___________– Peer-group ___________– Peer-group ___________
• Peersneighbor ____.____.____.____ neighbor ____.____.____.____neighbor ____.____.____.____ neighbor ____.____.____.____
48
Lab 4-c: Route-maps• Purpose
– Understand the route-map function• Tasks
– Create a route-map– Assign a route-map to a neighbor or peer-group
• Configuration Commands used– Route-map <name> permit | deny <#>
match <list name | ##>set <action>
– Router BGP <ASN>neighbor A.B.C.D route-map <route-map-name> in|outneighbor <peer-grp> route-map <rte-map-name> in|out
49
Lab 4-c: ASN Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
ASN 10
ASN 30
ASN 40
ASN 20
50
Lab 4-c: IP Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
E 0/0
189.216.100.0
/24
E 0/1
52.39.200.0
/24
E 0/0
11.62.10.0
/24
S 0/0 (902 - 209)
11.216.100.0
/30
S 0/0 (105 - 501)
11.216.101.0
/30
E 0/1
11.216.102.0
/30
S 0/0 (907 - 709)
52.216.104.0
/30
S 0/0 (406 - 604)
189.216.103.0
/30
51
Lab 4-c: Worksheet
• Global– Route-Map __________
Match _________________________Set _________________________
• Router BGP <ASN>– Neighbor A.B.C.D Route-Map __________ in|out
52
Lab 4-d: Prefix Lists• Purpose
– Use prefix lists to block routes• Tasks
– Create a prefix list– Assign list to neighbor or route-map or peer-group
• Commands– ip prefix-list <name> seq <#> permit|deny– ip prefix-list <name> seq 90 permit 0.0.0.0/0 le 32– Router BGP <ASN>
neighbor A.B.C.D prefix-list <name> in|outneighbor <peer-group> prefix-list <name> in|out
53
Lab 4-d: ASN Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
ASN 10
ASN 30
ASN 40
ASN 20
54
Lab 4-d: IP Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
E 0/0
189.216.100.0
/24
E 0/1
52.39.200.0
/24
E 0/0
11.62.10.0
/24
S 0/0 (902 - 209)
11.216.100.0
/30
S 0/0 (105 - 501)
11.216.101.0
/30
E 0/1
11.216.102.0
/30
S 0/0 (907 - 709)
52.216.104.0
/30
S 0/0 (406 - 604)
189.216.103.0
/30
55
Lab 4-d: Worksheet
ip prefix-list _____seq <#> permit|deny <network> / <mask> <ge|le|gt|lt> <prefix length>
seq ___ ______ ___.___.___.___ / ___ ___ ___seq ___ ______ ___.___.___.___ / ___ ___ ___seq ___ ______ ___.___.___.___ / ___ ___ ___seq ___ ______ ___.___.___.___ / ___ ___ ___seq ___ ______ ___.___.___.___ / ___ ___ ___seq ___ ______ ___.___.___.___ / ___ ___ ___seq 90 permit 0.0.0.0 /0 le 32
56
Lab 4-e: AS Path Filters• Purpose
– Use AS path filters to block routes• Tasks
– Remove the prefix-list applied in last lab– Create an AS path access list– Assign list to neighbor or route-map or peer-group
• Configuration Commands used– ip as-path access-list <1-199> deny|permit <regex>– ip as-path access-list <1-199> permit .*– Router BGP <ASN>
neighbor A.B.C.D filter-list <1-199> in|outneighbor <peer-group> filter-list <1-199> in|out
57
Lab 4-e: ASN Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
ASN 10
ASN 30
ASN 40
ASN 20
58
Lab 4-e: IP Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
E 0/0
189.216.100.0
/24
E 0/1
52.39.200.0
/24
E 0/0
11.62.10.0
/24
S 0/0 (902 - 209)
11.216.100.0
/30
S 0/0 (105 - 501)
11.216.101.0
/30
E 0/1
11.216.102.0
/30
S 0/0 (907 - 709)
52.216.104.0
/30
S 0/0 (406 - 604)
189.216.103.0
/30
59
Lab 4-e: Worksheet
ip as-path access-list ______deny|permit _____
<regex> ________________deny|permit _____
<regex> ________________deny|permit _____
<regex> ________________
60
Lab 4-f: Communities• Purpose
– Tag routes with community identifier• Tasks
– Create a route-map with a set community sequence– Assign route-map to neighbor or route-map or peer-group
• Configuration Commands used– Route-map <route-map-name>– Set community <ASN>:<##>– Router BGP <ASN>
Neighbor A.B.C.D route-map <route-map-name> in|out• Commands used
– Show ip bgp community <ASN>:<##>
61
Lab 4-f: ASN Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
ASN 10
ASN 30
ASN 40
ASN 20
62
Lab 4-f: IP Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
E 0/0
189.216.100.0
/24
E 0/1
52.39.200.0
/24
E 0/0
11.62.10.0
/24
S 0/0 (902 - 209)
11.216.100.0
/30
S 0/0 (105 - 501)
11.216.101.0
/30
E 0/1
11.216.102.0
/30
S 0/0 (907 - 709)
52.216.104.0
/30
S 0/0 (406 - 604)
189.216.103.0
/30
63
Lab 4-f: Worksheet
• Route-map ____
Match _________________________Set community ___________________
64
Lab 4-g: Aggregation
• Purpose– Understand the effects of redistribution on BGP
• Tasks– Clear all network statements out of the bgp process– Redistribute the IGP in BGP
• Commands– Router BGP <ASN>
Aggregate-address A.B.C.D mask ____________• Advertise-map, AS-Set, Attribute-map,• Route-map, Summary-only, Suppress-map
65
Lab 4-g: Worksheet 1• Router (city)___________ Lab #___ ASN ___• Loopback 1 _____.1.102.1 /24
– Network _____.1.102._____ mask 255.255.255._____
• Loopback 2 _____.2.102.1 /25– Network _____.2.102._____ mask 255.255.255._____
• Loopback 3 _____.3.102.1 /26– Network _____.3.102._____ mask 255.255.255._____
• Aggregate-address ____.0.0.0 mask 255.0.0.0
66
Lab 4-g: Worksheet 2• Commands used:
– __________________ purpose ___________________– __________________ purpose ___________________
• Output from:– Show ip route: ____________________– Show ip bgp: ____________________– Show ip bgp summary: _______________
• Are you seeing bgp routes from neighbors?– _______________________ mask /____– _______________________ mask /____– _______________________ mask /____
67
Lab 4-h: Redistribution
• Purpose– Understand the effects of redistribution on BGP
• Tasks– Clear all network statements out of the bgp process– Redistribute the IGP in BGP
• Commands– Router BGP <ASN>
• Redistribute <IGP>
68
Lab 4-h: Redistribution
3640
2611
2611
2611
26112611
2611
2611
3640
Portland
Dallas
El Paso
PhoenixSan Diego
Los AngelesSan
Francisco
New
Orleans
Seattle
AS 10
AS 30
AS 20
11.1.201.200 /30
182.16.100.0 /24 35.96.100.0 /2418
2.1
6.2
00
.4
/30
10.58.219.0 /24
11.1.202.200 /30
11.1.203.20011.1.200.200 /30
69
Lab 4-h: ASN Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
ASN 10
ASN 30
ASN 40
ASN 20
70
Lab 4-h: IP Setup
Router
Router
Router
Router
Router
RouterRouter
RouterRouter
Router
PORTLAND
NEW
YORK
ATLANTA
NEW
ORLEANS
DALLAS
EL
PASO
PHOENIX
SAN
DIEGO
LOS
ANGELES
SAN
FRANCISCO
E 0/0
189.216.100.0
/24
E 0/1
52.39.200.0
/24
E 0/0
11.62.10.0
/24
S 0/0 (902 - 209)
11.216.100.0
/30
S 0/0 (105 - 501)
11.216.101.0
/30
E 0/1
11.216.102.0
/30
S 0/0 (907 - 709)
52.216.104.0
/30
S 0/0 (406 - 604)
189.216.103.0
/30
Top Related