Professional Documents
Culture Documents
RBGP - Juniper
RBGP - Juniper
WHAT IS BGP?
Each AS is under
separate
administrative control
Interdomain
Autonomous Routing Autonomous
Network A Network B
BGP 4:
Is an interdomain routing protocol
Supports CIDR and route attributes that
accommodate complex routing policy
Is a path-vector protocol that uses incremental
updates and reliable TCP transport
Views the Internet as a collection of autonomous
systems
Normally requires explicitly defined peers for
added security and control
2 Is an IETF standard defined in RFC 4271
Copyright 2009 Juniper Networks, Inc. www.juniper.net
EBG ISP-X
BGP gives P AS 2
dual-homed OSPF IBG
customer control (IGP) P
of inbound and
outbound traffic EBG
Customer
P
1 AS 1 EBG
P
Stati
Single-homed
c IBG
customer uses Custom
default route P
er 2
to the Internet
ISP-Y
AS 3
IBG
P
P
IBG
P
IBG
X
ISP A
IBGP session stays
(AS 65001) up over working
links
8 Copyright 2009 Juniper Networks, Inc. www.juniper.net
JUNOS
routing-options {
autonomous-system 65000;
}
IOS
router bgp 65000
Peer groups
JUNOS makes almost exclusive use of them
Optional within IOS (but widely used)
AS number of the peer
Can be defined for the whole group or just a peer
JUNOS IOS
bgp { router bgp 65000
group EXTERNAL-PEERS { neighbor 10.81.254.1 remote-as 65001
peer-as 65001; neighbor 10.81.254.2 remote-as 65002
neighbor 10.81.254.1;
neighbor 10.81.254.2
{
peer-as 65002;
}
}
10 } Copyright 2009 Juniper Networks, Inc. www.juniper.net
Synchronization
JUNOS uses no synch by default
Automatic summarization off by default
JUNOS IOS
bgp { router bgp 65000
group EXTERNAL-PEERS { no synchronization
peer-as 65001; neighbor 10.81.254.1 remote-as 65001
neighbor 10.81.254.1; neighbor 10.81.254.2 remote-as 65002
neighbor 10.81.254.2 no auto-summary
{
peer-as 65002;
}
}
}
type command informs the router figure how to work with the
peer
external or internal defined
JUNOS IOS
bgp {
group EXTERNAL-PEERS { router bgp 65000
type external; no synchronization
peer-as 65001;
neighbor 10.81.254.1; neighbor 10.81.254.1 remote-as 65001
neighbor 10.81.254.2 neighbor 10.81.254.2 remote-as 65002
{ neighbor 10.81.254.3 remote-as 65000
peer-as 65002; no auto-summary
}
}
group INTERNAL-PEERS {
type internal;
neighbor 10.81.254.3;
}
}
JUNOS IOS
bgp {
group EXTERNAL-PEERS { router bgp 65000
type external; no synchronization
peer-as 65001; neighbor 10.81.254.1 remote-as 65001
neighbor 10.81.254.1; neighbor 10.81.254.2 remote-as 65002
neighbor 10.81.254.2 {
peer-as 65002; neighbor 10.81.254.3 remote-as 65000
} neighbor 10.81.254.3 update-source loop0
} no auto-summary
group INTERNAL-PEERS {
type internal;
local-address 10.81.254.10;
neighbor 10.81.254.3;
}
}
IOS-RTR-1#sh ip bgp
BGP table version is 2003, local router ID is 10.81.254.10
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/
IBG
0 2
R3
R1
ISP A
(AS 65001)
21 Copyright 2009 Juniper Networks, Inc. www.juniper.net
17 I can /30
.1
2
NH .31.1 reach 5.0
:1 7.2
R2 72 28.0/ 2.1 h
.17 2 17 ac /20
.25 0 r e .0
IB .1 .2 c a n 128 2 5. 1
GP I . .
2 .31 2.17
17 : 1 7
P
R1 and R2 must
NH
IBG
have routes to P
the next hop IBG reach /20R3
n .0
I ca .128 25.1
1 .
2 .3 17
17 172.
:
NH
ISP A
R1
(AS 65001)
22 Copyright 2009 Juniper Networks, Inc. www.juniper.net
NH
IBG
P
IBG reach /20R3
n .0
I ca .128 .0
1 lo0
2 .3
17 : R3
NH
ISP A
R1
(AS 65001)
23 Copyright 2009 Juniper Networks, Inc. www.juniper.net
EB BGP ISP
GP R4 E
ISP B C
R1 R3
R2
Enterprise
Network
24 Copyright 2009 Juniper Networks, Inc. www.juniper.net
protocols {
bgp {
group ISPs {
export to-ISP;
neighbor 172.28.200.201 {
description ISP-C;
peer-as 65003;
}
}
[...]
}
}
.202 .201
EBGP
172.28.200.200/30
172.28.200.204/30
172.28.200.200/30
Export policy should define what you want to send, not what you
do not want to send
Generally, you do not want to filter routes from your ISP, but you
do want to filter routes from non-ISPs
Exceptions:
Default-only from ISP
Partial routes from ISP
Limited resources
Transition
EBG R1 R2
P GP
EB ISP
ISP B
C
R3
R4 R6
R5
Enterprise
Network
29 Copyright 2009 Juniper Networks, Inc. www.juniper.net
EBG R1 R2
P Area 0 GP
ISP B EB ISP C
(AS 65002) (AS
Area 1 Ar 65003)
ea
2
ea
3
Ar
R3
R4 R6
R5
Enterprise
Network
31 Copyright 2009 Juniper Networks, Inc. www.juniper.net
EBG R1 R2
P GP
ISP B IBGP EB ISP C
(AS 65002) (AS
0.0.0.0/0 0.0.0.0/0
External Type External Type
65003)
1 1
Metric: 0 Metric: 0
R3
R4 R6
R5
Enterprise
Network
32 Copyright 2009 Juniper Networks, Inc. www.juniper.net
EBG R1 R2
P GP
ISP B EB ISP C
(AS 65002) (AS
65003)
R3
R4 R6
R5
Enterprise
Network
34 Copyright 2009 Juniper Networks, Inc. www.juniper.net
EBG R1 R2
P GP
ISP B IBGP EB ISP C
(AS 65002) (AS
0.0.0.0/ 0.0.0.0/ 65003)
0 IBGP 0
Metric: 0 Metric:
0
R3
R4 R6
R5
Enterprise
Network
35 Copyright 2009 Juniper Networks, Inc. www.juniper.net