Professional Documents
Culture Documents
4 BGP Multihoming
4 BGP Multihoming
Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 1
Multihoming Definition
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 2
Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 3
AS Numbers
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 4
Configuring Policy
Assumptions:
prefix-lists are used throughout
easier/better/faster than access-lists
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 5
Policy Tools
Local preference
outbound traffic flows
Metric (MED)
inbound traffic flows (local scope)
AS-PATH prepend
inbound traffic flows (Internet scope)
Communities
specific inter-provider peering
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 6
Originating Prefixes
Basic Assumptions
MUST announce assigned address block to
Internet
MAY also announce subprefixes reachability
is not guaranteed
RIR minimum allocation is /20
several ISPs filter RIR blocks on this boundary
called Net Police filters by some
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 7
Part of the Net Police prefix list
!! APNIC
ip prefix-list FILTER permit 61.0.0.0/8 ge 9 le 20
ip prefix-list FILTER permit 202.0.0.0/7 ge 9 le 20
ip prefix-list FILTER permit 210.0.0.0/7 ge 9 le 20
ip prefix-list FILTER permit 218.0.0.0/7 ge 9 le 20
ip prefix-list FILTER permit 220.0.0.0/7 ge 9 le 20
!! ARIN
ip prefix-list FILTER permit 24.0.0.0/8 ge 9 le 20
ip prefix-list FILTER permit 63.0.0.0/8 ge 9 le 20
ip prefix-list FILTER permit 64.0.0.0/6 ge 9 le 20
ip prefix-list FILTER permit 68.0.0.0/7 ge 9 le 20
ip prefix-list FILTER permit 199.0.0.0/8 ge 9 le 20
ip prefix-list FILTER permit 204.0.0.0/6 ge 9 le 20
ip prefix-list FILTER permit 208.0.0.0/7 ge 9 le 20
ip prefix-list FILTER permit 216.0.0.0/8 ge 9 le 20
!! RIPE NCC
ip prefix-list FILTER permit 62.0.0.0/8 ge 9 le 20
ip prefix-list FILTER permit 80.0.0.0/7 ge 9 le 20
ip prefix-list FILTER permit 82.0.0.0/8 ge 9 le 20
ip prefix-list FILTER permit 193.0.0.0/8 ge 9 le 20
ip prefix-list FILTER permit 194.0.0.0/7 ge 9 le 20
ip prefix-list FILTER permit 212.0.0.0/7 ge 9 le 20
ip prefix-list FILTER permit 217.0.0.0/8 ge 9 le 20
!! LACNIC
ip prefix-list FILTER permit 200.0.0.0/8 ge 9 le 20
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 8
Net Police prefix list issues
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 9
Multihoming Options
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 10
Multihoming Scenarios
Stub network
Multi-homed stub network
Multi-homed network
Configuration Options
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 11
Stub Network
AS101
AS100
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 12
Multi-homed Stub Network
AS65530
AS100
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 13
Multi-Homed Network
Global Internet
AS300 AS200
AS100
Several options
ebgp multihop ISP
bgp multipath
cef loadsharing
bgp attribute
manipulation
AS 201
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 15
Multiple Sessions to an ISP
ebgp multihop
AS 201
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 16
Multiple Sessions to an ISP
bgp multi path
AS 201
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 17
Multiple Sessions to an ISP
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 18
Multiple Sessions to an ISP
Simplest scheme is to
use defaults ISP
Learn/advertise
D E
prefixes for better
control
A B
AS 201
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 19
Multiple Sessions to ISPs
No magic solution
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 20
Private-AS Application
65001
65002
Applications 193.0.32.0/24
193.0.33.0/24
ISP with single-
homed customers C
1880
corporate network 193.1.34.0/24 65003
B
193.2.35.0/24
with several A
regions and
connections to the 193.1.32.0/22 1880
Internet only in the
core
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 21
Private-AS Removal
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 22
Two links to the same ISP
Basic No Redundancy
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 23
Two links to the same ISP
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 24
Two links to the same ISP
C
A
AS 100 AS 65534
E B
D
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 25
Two links to the same ISP
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 26
Two links to the same ISP
Router A Configuration
router bgp 65534
network 221.10.0.0 mask 255.255.240.0
network 221.10.16.0 mask 255.255.240.0
neighbor 222.222.10.2 remote-as 100
neighbor 222.222.10.2 prefix-list routerC out
neighbor 222.222.10.2 prefix-list default in
!
ip prefix-list default permit 0.0.0.0/0
ip prefix-list routerC permit 221.10.0.0/20
!
ip route 221.10.0.0 255.255.240.0 null0
ip route 221.10.16.0 255.255.240.0 null0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 27
Two links to the same ISP
Router B Configuration
router bgp 65534
network 221.10.0.0 mask 255.255.240.0
network 221.10.16.0 mask 255.255.240.0
neighbor 222.222.10.6 remote-as 100
neighbor 222.222.10.6 prefix-list routerD out
neighbor 222.222.10.6 prefix-list default in
!
ip prefix-list default permit 0.0.0.0/0
ip prefix-list routerD permit 221.10.16.0/20
!
ip route 221.10.0.0 255.255.240.0 null0
ip route 221.10.16.0 255.255.240.0 null0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 28
Two links to the same ISP
Router C Configuration
router bgp 100
neighbor 222.222.10.1 remote-as 65534
neighbor 222.222.10.1 default-originate
neighbor 222.222.10.1 prefix-list Customer in
neighbor 222.222.10.1 prefix-list default out
!
ip prefix-list Customer permit 221.10.0.0/20
ip prefix-list default permit 0.0.0.0/0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 29
Two links to the same ISP
Router D Configuration
router bgp 100
neighbor 222.222.10.5 remote-as 65534
neighbor 222.222.10.5 default-originate
neighbor 222.222.10.5 prefix-list Customer in
neighbor 222.222.10.5 prefix-list default out
!
ip prefix-list Customer permit 221.10.16.0/20
ip prefix-list default permit 0.0.0.0/0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 30
Two links to the same ISP
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 31
Two links to the same ISP
Router E Configuration
router bgp 100
network 221.10.0.0 mask 255.255.224.0
neighbor 222.222.10.17 remote-as 110
neighbor 222.222.10.17 filter-list 1 out
!
ip route 221.10.0.0 255.255.224.0 null0
!
ip as-path access-list 1 deny ^65534$
ip as-path access-list 1 permit ^$
Big Problem:
no backup in case of link failure
/19 address block not announced
AS Path filtering awkward
easier to use bgp command
neighbor x.x.x.x remove-private-AS
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 33
Two links to the same ISP
One link primary, the other link backup only
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 34
Two links to the same ISP
primary
C
A
AS 100 AS 65534
E B
D
backup
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 35
Two links to the same ISP
(one as backup only)
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 36
Two links to the same ISP
(one as backup only)
Router A Configuration
router bgp 65534
network 221.10.0.0 mask 255.255.224.0
neighbor 222.222.10.2 remote-as 100
neighbor 222.222.10.2 description RouterC
neighbor 222.222.10.2 prefix-list aggregate out
neighbor 222.222.10.2 prefix-list default in
!
ip prefix-list aggregate permit 221.10.0.0/19
ip prefix-list default permit 0.0.0.0/0
!
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 37
Two links to the same ISP
(one as backup only)
Router B Configuration
router bgp 65534
network 221.10.0.0 mask 255.255.224.0
neighbor 222.222.10.6 remote-as 100
neighbor 222.222.10.6 description RouterD
neighbor 222.222.10.6 prefix-list aggregate out
neighbor 222.222.10.6 route-map routerD-out out
neighbor 222.222.10.6 prefix-list default in
neighbor 222.222.10.6 route-map routerD-in in
!
..next slide
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 38
Two links to the same ISP
(one as backup only)
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 39
Two links to the same ISP
(one as backup only)
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 40
Two links to the same ISP
(one as backup only)
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 41
Two links to the same ISP
(one as backup only)
Router E Configuration
router bgp 100
neighbor 222.222.10.17 remote-as 110
neighbor 222.222.10.17 remove-private-AS
neighbor 222.222.10.17 prefix-list Customer out
!
ip prefix-list Customer permit 221.10.0.0/19
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 43
Two links to the same ISP (with
redundancy)
Link one
C
A
AS 100 AS 65534
E B
D
Link two
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 44
Loadsharing to the same ISP
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 45
Two links to the same ISP
Router A Configuration
router bgp 65534
network 221.10.0.0 mask 255.255.224.0
network 221.10.0.0 mask 255.255.240.0
neighbor 222.222.10.2 remote-as 100
neighbor 222.222.10.2 prefix-list routerC out
neighbor 222.222.10.2 prefix-list default in
!
ip prefix-list default permit 0.0.0.0/0
ip prefix-list routerC permit 221.10.0.0/20
ip prefix-list routerC permit 221.10.0.0/19
!
ip route 221.10.0.0 255.255.240.0 null0
ip route 221.10.0.0 255.255.224.0 null0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 46
Two links to the same ISP
Router B Configuration
router bgp 65534
network 221.10.0.0 mask 255.255.224.0
network 221.10.16.0 mask 255.255.240.0
neighbor 222.222.10.6 remote-as 100
neighbor 222.222.10.6 prefix-list routerD out
neighbor 222.222.10.6 prefix-list default in
!
ip prefix-list default permit 0.0.0.0/0
ip prefix-list routerD permit 221.10.16.0/20
ip prefix-list routerD permit 221.10.0.0/19
!
ip route 221.10.0.0 255.255.224.0 null0
ip route 221.10.16.0 255.255.240.0 null0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 47
Loadsharing to the same ISP
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 48
Two links to the same ISP
Router C Configuration
router bgp 100
neighbor 222.222.10.1 remote-as 65534
neighbor 222.222.10.1 default-originate
neighbor 222.222.10.1 prefix-list Customer in
neighbor 222.222.10.1 prefix-list default out
!
ip prefix-list Customer permit 221.10.0.0/19 le 20
ip prefix-list default permit 0.0.0.0/0
Router D Configuration
router bgp 100
neighbor 222.222.10.5 remote-as 65534
neighbor 222.222.10.5 default-originate
neighbor 222.222.10.5 prefix-list Customer in
neighbor 222.222.10.5 prefix-list default out
!
ip prefix-list Customer permit 221.10.0.0/19 le 20
ip prefix-list default permit 0.0.0.0/0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 51
Two links to the same ISP
(with redundancy)
Router E Configuration
router bgp 100
neighbor 222.222.10.17 remote-as 110
neighbor 222.222.10.17 remove-private-AS
neighbor 222.222.10.17 prefix-list Customer out
!
ip prefix-list Customer permit 221.10.0.0/19
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 52
Loadsharing to the same ISP
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 53
Two links to the same ISP
Multiple Dualhomed Customers
(RFC2270)
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 54
Multiple Dualhomed Customers
(RFC2270)
C
A1 AS 65534
AS 100 B1
E D A2 AS 65534
B2
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 55
Multiple Dualhomed Customers
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 56
Two links to the same ISP
Router A1 Configuration
router bgp 65534
network 221.10.0.0 mask 255.255.224.0
network 221.10.0.0 mask 255.255.240.0
neighbor 222.222.10.2 remote-as 100
neighbor 222.222.10.2 prefix-list routerC out
neighbor 222.222.10.2 prefix-list default in
!
ip prefix-list default permit 0.0.0.0/0
ip prefix-list routerC permit 221.10.0.0/20
ip prefix-list routerC permit 221.10.0.0/19
!
ip route 221.10.0.0 255.255.240.0 null0
ip route 221.10.0.0 255.255.224.0 null0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 57
Two links to the same ISP
Router B1 Configuration
router bgp 65534
network 221.10.0.0 mask 255.255.224.0
network 221.10.16.0 mask 255.255.240.0
neighbor 222.222.10.6 remote-as 100
neighbor 222.222.10.6 prefix-list routerD out
neighbor 222.222.10.6 prefix-list default in
!
ip prefix-list default permit 0.0.0.0/0
ip prefix-list routerD permit 221.10.16.0/20
ip prefix-list routerD permit 221.10.0.0/19
!
ip route 221.10.0.0 255.255.224.0 null0
ip route 221.10.16.0 255.255.240.0 null0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 58
Multiple Dualhomed Customers
Router C Configuration
router bgp 100
neighbor bgp-customers peer-group
neighbor bgp-customers remote-as 65534
neighbor bgp-customers default-originate
neighbor bgp-customers prefix-list default out
neighbor 222.222.10.1 peer-group bgp-customers
neighbor 222.222.10.1 description Customer One
neighbor 222.222.10.1 prefix-list Customer1 in
neighbor 222.222.10.9 peer-group bgp-customers
neighbor 222.222.10.9 description Customer Two
neighbor 222.222.10.9 prefix-list Customer2 in
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 59
Multiple Dualhomed Customers
Router D Configuration
router bgp 100
neighbor bgp-customers peer-group
neighbor bgp-customers remote-as 65534
neighbor bgp-customers default-originate
neighbor bgp-customers prefix-list default out
neighbor 222.222.10.5 peer-group bgp-customers
neighbor 222.222.10.5 description Customer One
neighbor 222.222.10.5 prefix-list Customer1 in
neighbor 222.222.10.13 peer-group bgp-customers
neighbor 222.222.10.13 description Customer Two
neighbor 222.222.10.13 prefix-list Customer2 in
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 61
Multiple Dualhomed Customers
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 62
Multiple Dualhomed Customers
Router E Configuration
assumes customer address space is not part of
upstreams address block
router bgp 100
neighbor 222.222.10.17 remote-as 110
neighbor 222.222.10.17 remove-private-AS
neighbor 222.222.10.17 prefix-list Customers out
!
ip prefix-list Customers permit 221.10.0.0/19
ip prefix-list Customers permit 221.16.64.0/19
ip prefix-list Customers permit 221.14.192.0/19
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 65
Two links to different ISPs
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 66
Two links to different ISPs
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 67
Two links to different ISPs
Basic No Redundancy
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 68
Two links to different ISPs
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 69
Two links to different ISPs
Internet
AS 100 AS 120
C D
Announce Announce
first /20 block second /20 block
A B
AS 130
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 70
Two links to different ISPs
Router A Configuration
router bgp 130
network 221.10.0.0 mask 255.255.240.0
neighbor 222.222.10.1 remote-as 100
neighbor 222.222.10.1 prefix-list routerC out
neighbor 222.222.10.1 prefix-list default in
!
ip prefix-list default permit 0.0.0.0/0
ip prefix-list routerC permit 221.10.0.0/20
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 71
Two links to different ISPs
Router B Configuration
router bgp 130
network 221.10.16.0 mask 255.255.240.0
neighbor 220.1.5.1 remote-as 120
neighbor 220.1.5.1 prefix-list routerD out
neighbor 220.1.5.1 prefix-list default in
!
ip prefix-list default permit 0.0.0.0/0
ip prefix-list routerD permit 221.10.16.0/20
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 72
Two links to different ISPs
Router C Configuration
router bgp 100
neighbor 221.10.1.1 remote-as 130
neighbor 221.10.1.1 default-originate
neighbor 221.10.1.1 prefix-list AS130cust in
neighbor 221.10.1.1 prefix-list default-out out
!
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 73
Two links to different ISPs
Router D Configuration
router bgp 120
neighbor 220.1.5.1 remote-as 130
neighbor 220.1.5.1 default-originate
neighbor 220.1.5.1 prefix-list AS130cust in
neighbor 220.1.5.1 prefix-list default-out out
!
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 74
Two links to different ISPs
(no redundancy)
Big Problem:
no backup in case of link failure
/19 address block not announced
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 75
Two links to different ISPs
With Redundancy
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 76
Two links to different ISPs (with
redundancy)
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 77
Two links to different ISPs (with
redundancy)
Internet
AS 100 AS 120
C D
AS 130
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 78
Two links to different ISPs (with
redundancy)
Router A Configuration
router bgp 130
network 221.10.0.0 mask 255.255.224.0
network 221.10.0.0 mask 255.255.240.0
neighbor 222.222.10.1 remote-as 100
neighbor 222.222.10.1 prefix-list firstblock out
neighbor 222.222.10.1 prefix-list default in
!
ip prefix-list default permit 0.0.0.0/0
!
ip prefix-list firstblock permit 221.10.0.0/20
ip prefix-list firstblock permit 221.10.0.0/19
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 79
Two links to different ISPs (with
redundancy)
Router B Configuration
router bgp 130
network 221.10.0.0 mask 255.255.224.0
network 221.10.16.0 mask 255.255.240.0
neighbor 220.1.5.1 remote-as 120
neighbor 220.1.5.1 prefix-list secondblock out
neighbor 220.1.5.1 prefix-list default in
!
ip prefix-list default permit 0.0.0.0/0
!
ip prefix-list secondblock permit 221.10.16.0/20
ip prefix-list secondblock permit 221.10.0.0/19
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 80
Two links to different ISPs
One link primary, the other link backup only
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 81
Two links to different ISPs (one as
backup only)
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 82
Two links to different ISPs (one as
backup only)
Internet
AS 100 AS 120
C D
AS 130
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 83
Two links to different ISPs (one as
backup only)
Router A Configuration
router bgp 130
network 221.10.0.0 mask 255.255.224.0
neighbor 222.222.10.1 remote-as 100
neighbor 222.222.10.1 prefix-list aggregate out
neighbor 222.222.10.1 prefix-list default in
!
ip prefix-list aggregate permit 221.10.0.0/19
ip prefix-list default permit 0.0.0.0/0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 84
Two links to different ISPs (one as
backup only)
Router B Configuration
router bgp 130
network 221.10.0.0 mask 255.255.224.0
neighbor 220.1.5.1 remote-as 120
neighbor 220.1.5.1 prefix-list aggregate out
neighbor 220.1.5.1 route-map routerD-out out
neighbor 220.1.5.1 prefix-list default in
neighbor 220.1.5.1 route-map routerD-in in
!
..next slide
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 85
Two links to different ISPs (one as
backup only)
Router B Configuration
!
ip prefix-list aggregate permit 221.10.0.0/19
ip prefix-list default permit 0.0.0.0/0
!
route-map routerD-out permit 10
set as-path prepend 130 130 130
!
route-map routerD-in permit 10
set local-preference 80
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 86
Two links to different ISPs
More Controlled Loadsharing
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 87
Loadsharing with different ISPs
Internet
AS 100 AS 120
C D
AS 130
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 89
Loadsharing with different ISPs
Router A Configuration
router bgp 130
network 221.10.0.0 mask 255.255.224.0
neighbor 222.222.10.1 remote-as 100
neighbor 222.222.10.1 prefix-list default in
neighbor 222.222.10.1 prefix-list aggregate out
!
ip prefix-list aggregate permit 221.10.0.0/19
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 90
Loadsharing with different ISPs
Router B Configuration
router bgp 130
network 221.10.0.0 mask 255.255.224.0
network 221.10.16.0 mask 255.255.240.0
neighbor 220.1.5.1 remote-as 120
neighbor 220.1.5.1 prefix-list default in
neighbor 220.1.5.1 prefix-list subblocks out
neighbor 220.1.5.1 route-map routerD out
!
..next slide..
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 91
Loadsharing with different ISPs
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 92
Loadsharing Using
Communities
4 links Private AS
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 93
Private AS
C
A
AS 100 AS 65534
E B
D
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 94
Private AS
Router A Configuration
router bgp 65534
network 221.10.0.0 mask 255.255.224.0
network 221.10.0.0 mask 255.255.248.0
neighbor 222.222.10.2 remote-as 100
neighbor 222.222.10.2 send-community
neighbor 222.222.10.2 prefix-list subblocks1 out
neighbor 222.222.10.2 route-map routerC-out out
neighbor 222.222.10.2 prefix-list default in
!
..next slide
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 96
Private AS
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 97
Private AS
Router B Configuration
router bgp 65534
network 221.10.0.0 mask 255.255.224.0
network 221.10.24.0 mask 255.255.248.0
neighbor 222.222.20.2 remote-as 100
neighbor 222.222.20.2 send-community
neighbor 222.222.20.2 prefix-list subblocks2 out
neighbor 222.222.20.2 route-map routerD-out out
neighbor 222.222.20.2 prefix-list default in
!
..next slide
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 98
Private AS
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 99
Private AS
Router E Configuration
router bgp 100
neighbor 222.222.10.17 remote-as 110
neigbhor 222.222.10.17 remove-private-AS
!
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 101
Loadsharing Using
Communities
4 links Public AS
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 102
Public AS
C
A
AS 100 AS 130
E B
D
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 103
Public AS
Router A Configuration
router bgp 130
network 221.10.0.0 mask 255.255.224.0
network 221.10.0.0 mask 255.255.248.0
neighbor 222.222.10.2 remote-as 100
neighbor 222.222.10.2 send-community
neighbor 222.222.10.2 prefix-list subblocks1 out
neighbor 222.222.10.2 route-map routerC-out out
neighbor 222.222.10.2 prefix-list default in
!
..next slide
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 105
Public AS
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 106
Public AS
Router B Configuration
router bgp 130
network 221.10.0.0 mask 255.255.224.0
network 221.10.24.0 mask 255.255.248.0
neighbor 222.222.20.2 remote-as 100
neighbor 222.222.20.2 send-community
neighbor 222.222.20.2 prefix-list subblocks2 out
neighbor 222.222.20.2 route-map routerD-out out
neighbor 222.222.20.2 prefix-list default in
!
..next slide
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 107
Public AS
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 108
Public AS
Router C Configuration
router bgp 100
neighbor 222.222.10.1 remote-as 130
neighbor 222.222.10.1 default-originate
neighbor 222.222.10.1 prefix-list Customer in
neighbor 222.222.10.1 prefix-list default out
!
ip prefix-list Customer permit 221.10.0.0/19 le 21
ip prefix-list default permit 0.0.0.0/0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 109
Loadsharing to the same ISP
Router D Configuration
router bgp 100
neighbor 222.222.10.5 remote-as 130
neighbor 222.222.10.5 default-originate
neighbor 222.222.10.5 prefix-list Customer in
neighbor 222.222.10.5 prefix-list default out
!
ip prefix-list Customer permit 221.10.0.0/19 le 21
ip prefix-list default permit 0.0.0.0/0
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 110
Loadsharing to the same ISP
Router E Configuration
router bgp 100
neighbor 222.222.10.17 remote-as 110
neighbor 222.222.10.17 filter-list 1 out
!
ip as-path access-list 1 permit ^130$
ip as-path access-list 1 permit ^$
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 111
Public AS
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 112
Enterprise Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 113
Enterprise Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 114
Enterprise Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 115
Medium/Large ISP Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 116
Enterprise Multihoming
Example One
Provider Redundancy
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 117
Enterprise Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 118
Enterprise Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 119
Enterprise Multihoming
Conditional Advertisement
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 120
Steady State
220.10.0.0/16 222.5.0.0/16
222.5/16
222.5.65.10
220.10.4.0/23 222.5.64/23
220.10.5.250 Enterprise
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 121
Steady State
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 122
Steady State
Router2 configuration:
router bgp 65534
network 220.10.4.0 mask 255.255.254.0
network 222.5.64.0 mask 255.255.254.0
neighbor <R1> remote-as 150
neighbor <R1> prefix-list isp1-in in
neighbor <R1> prefix-list isp1-out out
neighbor <R1> advertise-map isp2-sb non-exist-map isp2-bb
neighbor <R4> remote-as 65534
neighbor <R4> update-source loopback 0
!
ip route 220.10.4.0 255.255.254.0 null0 250
..next slide
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 123
Steady State
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 124
Steady State
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 125
Link Failure
X
222.5/16
222.5.65.10
220.10.4.0/23 222.5.64/23
220.10.5.250 Enterprise
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 126
Link Failure
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 127
Enterprise Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 128
What goes in the Internet Routing
Registry?
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 129
Enterprise Multihoming
Example Two
Link Redundancy
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 130
Enterprise Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 131
Steady State
Links to upstreams
220.10.0.0/16 222.5.0.0/16
Private peering
220.10.5.250 222.5.64/23
220.10.4.0/23 Enterprise
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 132
Steady State
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 133
Traffic Flow
Steady State
222.5.0.0/16
A B
ISP1 ISP2
220.10.0.0/16
R1 R3
220.10.4/23 222.5.64/23
R2 R4
220.10.5.250 222.5.65.10
Enterprise
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 134
Link Failure
Links to upstreams
220.10.0.0/16 222.5.0.0/16
Private peering subprefix
filters
ISP1 ISP2
222.5.64/23
R1 ISP1
220.10.4/23 R3
and announces
220.10.0.0/16
222.5.64/23
announced 220.10/16 X
to ISP1
R2
X
222.5/16 222.5.65.10
R4
220.10.5.250 222.5.64/23
220.10.4.0/23 Enterprise
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 135
Link Failure
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 136
Link Failure
222.5.0.0/16
A B
ISP1 ISP2
222.5.64/23 &
220.10.0.0/16
R1 R3
222.5.64/23 & X
220.10.4/23
R2 R4
220.10.5.250 222.5.65.10
Enterprise
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 137
Configuration
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 138
Configuration
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 139
Recommendations
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 140
What goes in the Internet Routing
Registry?
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 141
BGP and the Internet
Multihoming
Cisco ISP Workshops 2003, Cisco Systems, Inc. All rights reserved. 142