Professional Documents
Culture Documents
BGP Lab
BGP Lab
BGP Lab
Note:
IP address assigned and all interfaces in no-shutdown mode and point-to-point pingable.
Configuration of eBGP
R1
R2
1|Page
After correcting AS
R2
Sent Rcvd
Opens: 1 1
Notifications: 0 0
Updates: 1 1
Keepalives: 5 6
Route Refresh: 0 0
Total: 7 8
Default minimum time between advertisement runs is 30 seconds
2|Page
Configure iBGP
Network Command
R3(config-router)#do sh ip bgp
BGP table version is 4, local router ID is 192.168.33.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
3|Page
R2#sh ip bgp
BGP table version is 4, local router ID is 192.168.22.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
R1#sh ip bgp
BGP table version is 4, local router ID is 209.165.201.1
On R1 Network command
R2#
*Jul 25 05:16:25.663: BGP(0): 209.165.202.129 rcvd UPDATE w/ attr: nexthop 209.165.202.129, origin i, metric 0,
merged path 65100, AS_PATH
*Jul 25 05:16:25.667: BGP(0): 209.165.202.129 rcvd 209.165.200.224/27
*Jul 25 05:16:25.671: BGP(0): Revise route installing 1 of 1 routes for 209.165.200.224/27 ->
209.165.202.129(global) to main IP table
*Jul 25 05:16:25.687: BGP(0): 172.16.23.3 NEXT_HOP is on same subnet as the bgp peer and set to
209.165.202.129 for net 209.165.200.224/27, flags 0, sb: 0, mask: 0
*Jul 25 05:16:25.691: BGP(0): (base) 172.16.23.3 send UPDATE (format) 209.165.200.224/27, next
209.165.202.129, metric 0, path 65100
R2#
R2#sh ip bgp
BGP table version is 5, local router ID is 192.168.22.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
4|Page
R3#sh ip bgp
BGP table version is 4, local router ID is 192.168.33.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale, m multipath, b backup-path, f RT-Filter,
x best-external, a additional-path, c RIB-compressed,
Origin codes: i - IGP, e - EGP, ? - incomplete
RPKI validation codes: V valid, I invalid, N Not found
5|Page
We will use next-hop feature of BGP
6|Page