1) First complete the loop in AS100 [R1 and R4 establish IBGP neighbors, introduce EBGP and IBGP in R1]

 

screenshot.png 

 

Experimental BGP routing black hole:

 

R1 and R4 establish iBGP neighbor

R1:

router bgp 100

neighbor 44.1.1.1 remote-as 100 //Specify 44.1.1.1 as its neighbor as number 100

neighbor 44.1.1.1 update-source Loopback0 //Specify 44.1.1.1 update source as loopback0

 R4:

router bgp 100

neighbor 11.1.1.1 remote-as 100 //Specify 11.1.1.1 as its neighbor as number 100

neighbor 11.1.1.1 update-source Loopback0 //Specify 11.1.1.1 update source as loopback0

R4#show ip bgp summary

BGP router identifier 44.1.1.1, local AS number 100

BGP table version is 13, main routing table version 13

5 network entries using 720 bytes of memory

5 path entries using 420 bytes of memory

3/3 BGP path/bestpath attribute entries using 480 bytes of memory

1 BGP AS-PATH entries using 24 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 1644 total bytes of memory

BGP activity 7/2 prefixes, 7/2 paths, scan interval 60 secs

 

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd

11.1.1.1        4          100     432     430       13    0    0 06:29:00        3

 

 

R1: ospf imports BGP routes

router bgp 100

bgp redistribute-internal //Enable internal BGP (iBGP) route redistribution to IGP

router ospf 110

 

redistribute bgp 100 subnets //Introduce BGP routing under the ospf process

Test using business address on R5:

 R5#traceroute 4.4.4.4 source 5.5.5.5

Type escape sequence to abort.

Tracing the route to 4.4.4.4

VRF info: (vrf in name/id, vrf out name/id)

  1 10.1.15.1 1 msec 0 msec 1 msec

  2 10.1.13.3 0 msec 1 msec 0 msec

  3 10.1.13.1 1 msec 0 msec 0 msec

  4 10.1.13.3 1 msec 0 msec 1 msec

  5 10.1.13.1 0 msec 1 msec 0 msec

  6 10.1.13.3 1 msec 0 msec 1 msec

  7 10.1.13.1 0 msec 1 msec 0 msec

  8 10.1.13.3 1 msec 1 msec 0 msec

  9 10.1.13.1 1 msec 0 msec 1 msec

 10 10.1.13.3 1 msec 0 msec 0 msec

 11 10.1.13.1 1 msec 1 msec 1 msec

 12 10.1.13.3 1 msec 1 msec 1 msec

 13 10.1.13.1 1 msec 1 msec 1 msec

 14 10.1.13.3 1 msec 1 msec 1 msec

 15 10.1.13.1 1 msec 1 msec 1 msec

 16 10.1.13.3 1 msec 1 msec 1 msec

 17 10.1.13.1 1 msec 1 msec 1 msec

 18 10.1.13.3 1 msec 1 msec 2 msec

 19 10.1.13.1 1 msec 1 msec 1 msec

 20 10.1.13.3 2 msec 1 msec 1 msec

 21 10.1.13.1 3 msec 1 msec 2 msec

 22 10.1.13.3 1 msec 2 msec 1 msec

 23 10.1.13.1 2 msec 2 msec 2 msec

 24 10.1.13.3 2 msec 2 msec 1 msec

 25 10.1.13.1 2 msec 1 msec 1 msec

 26 10.1.13.3 2 msec 2 msec 2 msec

 27 10.1.13.1 3 msec 2 msec 2 msec

 28 10.1.13.3 1 msec 2 msec 1 msec

 29 10.1.13.1 2 msec 2 msec 2 msec

 30 10.1.13.3 1 msec 2 msec 2 msec

 

2) Remove the introduction of R1 and deploy peer groups on R1 and R2 in AS100 to complete full interconnection.

 

Experimental BGP full interconnection:

R1:

router bgp 100

 bgp router-id 1.1.1.1

 bgp log-neighbor-changes

 network 1.1.1.1 mask 255.255.255.255

neighbor miqi peer-group //Create a peer group template named miqi

neighbor miqi remote-as 100 //Specify the AS number of the miqi peer group template as 100

neighbor miqi update-source Loopback0 //Specify miqi peer group to use loopbakc0 as the update source

neighbor miqi next-hop-self                                                                                  // Specify the route learned by the miqi peer group neighbor from R1. The next-hop is R1

 neighbor 10.1.15.5 remote-as 200

neighbor 22.1.1.1 peer-group miqi //Specify neighbor to call miqi peer group

neighbor 33.1.1.1 peer-group miqi //Specify neighbor to call miqi peer

neighbor 44.1.1.1 peer-group miqi //Specify neighbor to call miqi peer

R1#show ip bgp summary

BGP router identifier 1.1.1.1, local AS number 100

BGP table version is 16, main routing table version 16

7 network entries using 1008 bytes of memory

7 path entries using 588 bytes of memory

4/4 BGP path/bestpath attribute entries using 640 bytes of memory

1 BGP AS-PATH entries using 24 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 2260 total bytes of memory

BGP activity 11/4 prefixes, 11/4 paths, scan interval 60 secs

 

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd

10.1.15.5       4          200      33      38       16    0    0 00:26:45        2

22.1.1.1        4          100      12      14       16    0    0 00:05:26        2

33.1.1.1        4          100       8      11       16    0    0 00:04:05        0

44.1.1.1        4          100     444     445       16    0    0 06:41:12        2

 R2:

 router bgp 100

 bgp router-id 2.2.2.2

 bgp log-neighbor-changes

 network 2.2.2.2 mask 255.255.255.255

neighbor miqi peer-group //Create a peer group template named miqi

neighbor miqi remote-as 100 //Specify the as number of miqi peer group template as 100

neighbor miqi update-source Loopback0 //Specify miqi peer group to use loopbakc0 as the update source

neighbor miqi next-hop-self                                                             // Specify the route learned by the miqi peer group neighbor from R2. The next-hop is R2

neighbor 11.1.1.1 peer-group miqi //Specify neighbor to call miqi peer

neighbor 33.1.1.1 peer-group miqi //Specify neighbor to call miqi peer

neighbor 44.1.1.1 peer-group miqi //Specify neighbor to call miqi peer

 neighbor 66.1.1.1 remote-as 200

 neighbor 66.1.1.1 ebgp-multihop 2

 neighbor 66.1.1.1 update-source Loopback0

R2#show ip bgp summary //View BGP neighbors

BGP router identifier 2.2.2.2, local AS number 100

BGP table version is 21, main routing table version 21

7 network entries using 1008 bytes of memory

7 path entries using 588 bytes of memory

4/4 BGP path/bestpath attribute entries using 640 bytes of memory

1 BGP AS-PATH entries using 24 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 2260 total bytes of memory

BGP activity 12/5 prefixes, 12/5 paths, scan interval 60 secs

 

Neighbor        V           AS MsgRcvd MsgSent   TblVer  InQ OutQ Up/Down  State/PfxRcd

11.1.1.1        4          100      14      12       21    0    0 00:06:08        3

33.1.1.1        4          100      11      13       21    0    0 00:04:31        0

44.1.1.1        4          100      11      12       21    0    0 00:03:43        2

66.1.1.1        4          200     444     450       21    0    0 06:42:00        1

 

3) The business interface of AS100 can communicate in 5.5.5.5

 

After full interconnection, test whether the service ports of the router in as100 can communicate with 5.5.5.5

R1:

R1#ping 5.5.5.5 source 1.1.1.1 //Test whether the service can communicate with 5.5.5.5

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:

Packet sent with a source address of 1.1.1.1

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

R2:

R2#ping 5.5.5.5 source 2.2.2.2 //Test whether the service can communicate with 5.5.5.5

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:

Packet sent with a source address of 2.2.2.2

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

R3:

R3# ping 5.5.5.5 source 3.3.3.3 //Test whether the service can communicate with 5.5.5.5

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:

Packet sent with a source address of 3.3.3.3

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms

R4:

R4#ping 5.5.5.5 source 4.4.4.4 //Test whether the service can communicate with 5.5.5.5

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 5.5.5.5, timeout is 2 seconds:

Packet sent with a source address of 4.4.4.4

!!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 1/1/1 ms