Wednesday, 14 October 2020

BGP LAB - DAY 2

 

Task

=========

BGP Peering Configuration

 

BGP Peering Configuration
=============================
R1
config t
router bgp 100
neighbor 2.2.2.2 remote-as 200
neighbor 2.2.2.2 update-source loopback 0
neighbor 2.2.2.2 ebgp-multihop 255
neighbor 2.2.2.2 description **eBP with R2**
!
neighbor 13.1.1.3 remote-as 300
neighbor 13.1.1.3 description **eBP with R3**
!
network 10.1.1.0 mask 255.255.255.0
network 10.1.2.0 mask 255.255.255.0
network 10.1.3.0 mask 255.255.255.0
network 10.1.4.0 mask 255.255.255.0
!

R2
config t
router bgp 200
neighbor 1.1.1.1 remote-as 100
neighbor 1.1.1.1 update-source loopback 0
neighbor 1.1.1.1 ebgp-multihop 255
neighbor 1.1.1.1 description **eBP with R1**
!
neighbor 24.1.1.4 remote-as 300
neighbor 24.1.1.4 description **eBP with R4**
!
network 20.1.1.0 mask 255.255.255.0
network 20.1.2.0 mask 255.255.255.0
network 20.1.3.0 mask 255.255.255.0
network 20.1.4.0 mask 255.255.255.0
!


R3
config t
router bgp 300
neighbor 13.1.1.1 remote-as 100
neighbor 13.1.1.1 description **eBGP with R1**
!
neighbor 4.4.4.4 remote-as 300
neighbor 4.4.4.4 description **iBP with R4**
neighbor 4.4.4.4 update-source loopback 0
!
network 30.1.1.0 mask 255.255.255.0
network 30.1.2.0 mask 255.255.255.0
network 30.1.3.0 mask 255.255.255.0
network 30.1.4.0 mask 255.255.255.0
!

R4
config t
router bgp 300
neighbor 24.1.1.2 remote-as 200
neighbor 24.1.1.2 description **eBGP with R2**
!
neighbor 46.1.1.6 remote-as 600
neighbor 46.1.1.6 description **eBGP with R6**
!
neighbor 4.4.4.4 remote-as 300
neighbor 4.4.4.4 description **iBGP with R4**
neighbor 4.4.4.4 update-source loopback 0
!
network 40.1.1.0 mask 255.255.255.0
network 40.1.2.0 mask 255.255.255.0
network 40.1.3.0 mask 255.255.255.0
network 40.1.4.0 mask 255.255.255.0
!

R6
config t
router bgp 600
neighbor 46.1.1.4 remote-as 300
neighbor 46.1.1.4 description **eBGP with R4**
!
network 60.1.1.0 mask 255.255.255.0
network 60.1.2.0 mask 255.255.255.0
network 60.1.3.0 mask 255.255.255.0
network 60.1.4.0 mask 255.255.255.0
!
=================================================================================

OUTPUT

R1#sh ip bgp sum
BGP router identifier 10.1.4.1, local AS number 100
BGP table version is 21, main routing table version 21
20 network entries using 2880 bytes of memory
20 path entries using 1600 bytes of memory
5/5 BGP path/bestpath attribute entries using 680 bytes of memory
4 BGP AS-PATH entries using 96 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 5256 total bytes of memory
BGP activity 20/0 prefixes, 24/4 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
2.2.2.2         4          200      35      36       21    0    0 00:26:38       12
13.1.1.3        4          300      25      31       21    0    0 00:20:01        4
R1#
R1#
R1#sh ip bgp
BGP table version is 21, local router ID is 10.1.4.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

     Network          Next Hop            Metric LocPrf Weight Path
 *>  10.1.1.0/24      0.0.0.0                  0         32768 i
 *>  10.1.2.0/24      0.0.0.0                  0         32768 i
 *>  10.1.3.0/24      0.0.0.0                  0         32768 i
 *>  10.1.4.0/24      0.0.0.0                  0         32768 i
 *>  20.1.1.0/24      2.2.2.2                  0             0 200 i
 *>  20.1.2.0/24      2.2.2.2                  0             0 200 i
 *>  20.1.3.0/24      2.2.2.2                  0             0 200 i
 *>  20.1.4.0/24      2.2.2.2                  0             0 200 i
 *>  30.1.1.0/24      13.1.1.3                 0             0 300 i
 *>  30.1.2.0/24      13.1.1.3                 0             0 300 i
 *>  30.1.3.0/24      13.1.1.3                 0             0 300 i
 *>  30.1.4.0/24      13.1.1.3                 0             0 300 i
 *>  40.1.1.0/24      2.2.2.2                                0 200 300 i
 *>  40.1.2.0/24      2.2.2.2                                0 200 300 i
 *>  40.1.3.0/24      2.2.2.2                                0 200 300 i
 *>  40.1.4.0/24      2.2.2.2                                0 200 300 i
 *>  60.1.1.0/24      2.2.2.2                                0 200 300 600 i
 *>  60.1.2.0/24      2.2.2.2                                0 200 300 600 i
 *>  60.1.3.0/24      2.2.2.2                                0 200 300 600 i
 *>  60.1.4.0/24      2.2.2.2                                0 200 300 600 i
R1#

R2#sh ip bgp summary
BGP router identifier 20.1.4.1, local AS number 200
BGP table version is 29, main routing table version 29
20 network entries using 2880 bytes of memory
20 path entries using 1600 bytes of memory
5/5 BGP path/bestpath attribute entries using 680 bytes of memory
4 BGP AS-PATH entries using 96 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 5256 total bytes of memory
BGP activity 20/0 prefixes, 24/4 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
1.1.1.1         4          100      37      36       29    0    0 00:27:41        8
24.1.1.4        4          300      24      27       29    0    0 00:14:45        8
R2#
R2#
R2#sh ip bgp
BGP table version is 29, local router ID is 20.1.4.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

     Network          Next Hop            Metric LocPrf Weight Path
 *>  10.1.1.0/24      1.1.1.1                  0             0 100 i
 *>  10.1.2.0/24      1.1.1.1                  0             0 100 i
 *>  10.1.3.0/24      1.1.1.1                  0             0 100 i
 *>  10.1.4.0/24      1.1.1.1                  0             0 100 i
 *>  20.1.1.0/24      0.0.0.0                  0         32768 i
 *>  20.1.2.0/24      0.0.0.0                  0         32768 i
 *>  20.1.3.0/24      0.0.0.0                  0         32768 i
 *>  20.1.4.0/24      0.0.0.0                  0         32768 i
 *>  30.1.1.0/24      1.1.1.1                                0 100 300 i
 *>  30.1.2.0/24      1.1.1.1                                0 100 300 i
 *>  30.1.3.0/24      1.1.1.1                                0 100 300 i
 *>  30.1.4.0/24      1.1.1.1                                0 100 300 i
 *>  40.1.1.0/24      24.1.1.4                 0             0 300 i
 *>  40.1.2.0/24      24.1.1.4                 0             0 300 i
 *>  40.1.3.0/24      24.1.1.4                 0             0 300 i
 *>  40.1.4.0/24      24.1.1.4                 0             0 300 i
 *>  60.1.1.0/24      24.1.1.4                               0 300 600 i
 *>  60.1.2.0/24      24.1.1.4                               0 300 600 i
 *>  60.1.3.0/24      24.1.1.4                               0 300 600 i
 *>  60.1.4.0/24      24.1.1.4                               0 300 600 i
R2#

R3#sh ip bgp summary
BGP router identifier 30.1.4.1, local AS number 300
BGP table version is 17, main routing table version 17
20 network entries using 2880 bytes of memory
28 path entries using 2240 bytes of memory
7/4 BGP path/bestpath attribute entries using 952 bytes of memory
5 BGP AS-PATH entries using 120 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 6192 total bytes of memory
BGP activity 20/0 prefixes, 28/0 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
4.4.4.4         4          300      24      24       17    0    0 00:16:06       16
13.1.1.1        4          100      25      22       17    0    0 00:16:21        8

R3#
R3#sh ip bgp
BGP table version is 17, local router ID is 30.1.4.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

     Network          Next Hop            Metric LocPrf Weight Path
 * i 10.1.1.0/24      24.1.1.2                 0    100      0 200 100 i
 *>                   13.1.1.1                 0             0 100 i
 * i 10.1.2.0/24      24.1.1.2                 0    100      0 200 100 i
 *>                   13.1.1.1                 0             0 100 i
 * i 10.1.3.0/24      24.1.1.2                 0    100      0 200 100 i
 *>                   13.1.1.1                 0             0 100 i
 * i 10.1.4.0/24      24.1.1.2                 0    100      0 200 100 i
 *>                   13.1.1.1                 0             0 100 i
 *>  20.1.1.0/24      13.1.1.1                               0 100 200 i
 * i                  24.1.1.2                 0    100      0 200 i
 *>  20.1.2.0/24      13.1.1.1                               0 100 200 i
 * i                  24.1.1.2                 0    100      0 200 i
 *>  20.1.3.0/24      13.1.1.1                               0 100 200 i
 * i                  24.1.1.2                 0    100      0 200 i
 *>  20.1.4.0/24      13.1.1.1                               0 100 200 i
 * i                  24.1.1.2                 0    100      0 200 i
 *>  30.1.1.0/24      0.0.0.0                  0         32768 i
 *>  30.1.2.0/24      0.0.0.0                  0         32768 i
 *>  30.1.3.0/24      0.0.0.0                  0         32768 i
 *>  30.1.4.0/24      0.0.0.0                  0         32768 i
 r>i 40.1.1.0/24      4.4.4.4                  0    100      0 i
 r>i 40.1.2.0/24      4.4.4.4                  0    100      0 i
 r>i 40.1.3.0/24      4.4.4.4                  0    100      0 i
 r>i 40.1.4.0/24      4.4.4.4                  0    100      0 i
 * i 60.1.1.0/24      46.1.1.6                 0    100      0 600 i
 * i 60.1.2.0/24      46.1.1.6                 0    100      0 600 i
 * i 60.1.3.0/24      46.1.1.6                 0    100      0 600 i
 * i 60.1.4.0/24      46.1.1.6                 0    100      0 600 i
R3#


R4#sh ip bgp summary
BGP router identifier 40.1.4.1, local AS number 300
BGP table version is 25, main routing table version 25
16 network entries using 2304 bytes of memory
16 path entries using 1280 bytes of memory
4/4 BGP path/bestpath attribute entries using 544 bytes of memory
3 BGP AS-PATH entries using 72 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 4200 total bytes of memory
BGP activity 20/4 prefixes, 20/4 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
24.1.1.2        4          200      29      26       25    0    0 00:16:56        8
46.1.1.6        4          600      23      26       25    0    0 00:16:54        4
R4#
R4#
R4#sh ip bgp
BGP table version is 21, local router ID is 40.1.4.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

     Network          Next Hop            Metric LocPrf Weight Path
 *>  10.1.1.0/24      24.1.1.2                               0 200 100 i
 * i                  13.1.1.1                 0    100      0 100 i
 *>  10.1.2.0/24      24.1.1.2                               0 200 100 i
 * i                  13.1.1.1                 0    100      0 100 i
 *>  10.1.3.0/24      24.1.1.2                               0 200 100 i
 * i                  13.1.1.1                 0    100      0 100 i
 *>  10.1.4.0/24      24.1.1.2                               0 200 100 i
 * i                  13.1.1.1                 0    100      0 100 i
 * i 20.1.1.0/24      13.1.1.1                 0    100      0 100 200 i
 *>                   24.1.1.2                 0             0 200 i
 * i 20.1.2.0/24      13.1.1.1                 0    100      0 100 200 i
 *>                   24.1.1.2                 0             0 200 i
 * i 20.1.3.0/24      13.1.1.1                 0    100      0 100 200 i
 *>                   24.1.1.2                 0             0 200 i
 * i 20.1.4.0/24      13.1.1.1                 0    100      0 100 200 i
 *>                   24.1.1.2                 0             0 200 i
 r>i 30.1.1.0/24      3.3.3.3                  0    100      0 i
 r>i 30.1.2.0/24      3.3.3.3                  0    100      0 i
 r>i 30.1.3.0/24      3.3.3.3                  0    100      0 i
 r>i 30.1.4.0/24      3.3.3.3                  0    100      0 i
 *>  40.1.1.0/24      0.0.0.0                  0         32768 i
 *>  40.1.2.0/24      0.0.0.0                  0         32768 i
 *>  40.1.3.0/24      0.0.0.0                  0         32768 i
 *>  40.1.4.0/24      0.0.0.0                  0         32768 i
 *>  60.1.1.0/24      46.1.1.6                 0             0 600 i
 *>  60.1.2.0/24      46.1.1.6                 0             0 600 i
 *>  60.1.3.0/24      46.1.1.6                 0             0 600 i
 *>  60.1.4.0/24      46.1.1.6                 0             0 600 i
R4#

R5#sh ip bgp summary
% BGP not active

R6#sh ip  bgp summary
BGP router identifier 60.1.4.1, local AS number 600
BGP table version is 33, main routing table version 33
16 network entries using 2304 bytes of memory
16 path entries using 1280 bytes of memory
4/4 BGP path/bestpath attribute entries using 544 bytes of memory
3 BGP AS-PATH entries using 72 bytes of memory
0 BGP route-map cache entries using 0 bytes of memory
0 BGP filter-list cache entries using 0 bytes of memory
BGP using 4200 total bytes of memory
BGP activity 24/8 prefixes, 24/8 paths, scan interval 60 secs

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd
46.1.1.4        4          300      27      24       33    0    0 00:17:59       12
R6#
R6#sh ip bgp
BGP table version is 33, local router ID is 60.1.4.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

     Network          Next Hop            Metric LocPrf Weight Path
 *>  10.1.1.0/24      46.1.1.4                               0 300 200 100 i
 *>  10.1.2.0/24      46.1.1.4                               0 300 200 100 i
 *>  10.1.3.0/24      46.1.1.4                               0 300 200 100 i
 *>  10.1.4.0/24      46.1.1.4                               0 300 200 100 i
 *>  20.1.1.0/24      46.1.1.4                               0 300 200 i
 *>  20.1.2.0/24      46.1.1.4                               0 300 200 i
 *>  20.1.3.0/24      46.1.1.4                               0 300 200 i
 *>  20.1.4.0/24      46.1.1.4                               0 300 200 i
 *>  40.1.1.0/24      46.1.1.4                 0             0 300 i
 *>  40.1.2.0/24      46.1.1.4                 0             0 300 i
 *>  40.1.3.0/24      46.1.1.4                 0             0 300 i
 *>  40.1.4.0/24      46.1.1.4                 0             0 300 i
 *>  60.1.1.0/24      0.0.0.0                  0         32768 i
 *>  60.1.2.0/24      0.0.0.0                  0         32768 i
 *>  60.1.3.0/24      0.0.0.0                  0         32768 i
 *>  60.1.4.0/24      0.0.0.0                  0         32768 i
R6#



Thanks for Reading 

amartechstuff

No comments:

Post a Comment