Professional Documents
Culture Documents
ISP/IXP Workshops
Described in RFC4271
RFC4276 gives an implementation report on BGP
RFC4277 describes operational experiences using BGP
AS Path
AS11268
AS6337
AS7018
AS500
AS6461
AS600
provider A
IXP-East
IXP- Backbone
West Provider D
provider B
provider C
A and B can peer, but need transit
arrangements with D to get packets
to/from C
AS 100
See www.iana.org/assignments/as-numbers
A C
AS 100 AS 101
B D
A C
DMZ
AS 100 Network AS 101
B D
AS 102
discarded
BGP in
in
process accepted
everything
best paths
BGP out
out
process
eBGP used to
exchange prefixes with other ASes
implement routing policy
Model representation
AS 100 AS 101
C
ip address on
ethernet interface
Router A in AS100
ip address on
ethernet interface
Router C in AS101
AS 100
B
A
C
Topology independent
Each iBGP speaker must peer with every other iBGP
speaker in the AS
ISP Workshops © 2008 Cisco Systems, Inc. All rights reserved. 23
Peering to Loopback Interfaces
AS 100
C
A
ip address on
loopback interface
Router A in AS100
interface loopback 0
ip address 105.3.7.1 255.255.255.255
!
router bgp 100 Local ASN
network 100.100.1.0
neighbor 105.3.7.2 remote-as 100 Local ASN
neighbor 105.3.7.2 update-source loopback0
neighbor 105.3.7.3 remote-as 100
neighbor 105.3.7.3 update-source loopback0
!
ip address of Router B
loopback interface
ISP Workshops © 2008 Cisco Systems, Inc. All rights reserved. 25
Configuring Internal BGP
ip address on
loopback interface
Router B in AS100
interface loopback 0
ip address 105.3.7.2 255.255.255.255
!
router bgp 100 Local ASN
network 100.100.1.0
neighbor 105.3.7.1 remote-as 100 Local ASN
neighbor 105.3.7.1 update-source loopback0
neighbor 105.3.7.3 remote-as 100
neighbor 105.3.7.3 update-source loopback0
!
ip address of Router A
loopback interface
ISP Workshops © 2008 Cisco Systems, Inc. All rights reserved. 26
Inserting prefixes into BGP
Configuration Example:
router bgp 100
redistribute static
ip route 102.10.32.0 255.255.254.0 serial0
Configuration Example
router bgp 100
network 102.10.32.0 mask 255.255.254.0
ip route 102.10.32.0 255.255.254.0 serial0
Configuration Example:
router bgp 100
redistribute static
ip route 102.10.0.0 255.255.0.0 null0 250
Configuration Example
router bgp 100
network 102.10.0.0 mask 255.255.0.0
ip route 102.10.0.0 255.255.0.0 null0 250
Configuration Example:
router bgp 100
network 102.10.32.0 mask 255.255.252.0
aggregate-address 102.10.0.0 255.255.0.0 [summary-only]
Router2>show ip bgp
BGP table version is 37, local router ID is 100.1.31.224
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
ISP/IXP Workshops