当前位置:网站首页>BGP protocol experiment

BGP protocol experiment

2022-06-10 00:46:00 xnasda

 Insert picture description here
1. Connect the network as shown in the figure , Reasonable specification P Address ,AS200 Inside IGP Agreement for OSPF
 Insert picture description here
Configure each interface as shown in the figure ip And loopback
AS200 function IGP OSPF agreement
R2 3 4 5 6 7 Up operation ospf
[R2]ospf 1 router-id 92.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 2.2.2.2 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 23.1.1.1 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 25.1.1.1 0.0.0.0

[R3]ospf 1 router-id 93.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 23.1.1.2 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 34.1.1.1 0.0.0.0

[R4]ospf 1 router-id 94.4.4.4
[R4-ospf-1]area 0
[R4-ospf-1-area-0.0.0.0]network 4.4.4.4 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 34.1.1.2 0.0.0.0
[R4-ospf-1-area-0.0.0.0]network 47.1.1.1 0.0.0.0

[R5]ospf 1 router-id 95.5.5.5
[R5-ospf-1]area 0
[R5-ospf-1-area-0.0.0.0]network 5.5.5.5 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 25.1.1.2 0.0.0.0
[R5-ospf-1-area-0.0.0.0]network 56.1.1.1 0.0.0.0

[R6]ospf 1 router-id 96.6.6.6
[R6-ospf-1]area 0
[R6-ospf-1-area-0.0.0.0]network 6.6.6.6 0.0.0.0
[R6-ospf-1-area-0.0.0.0]network 56.1.1.2 0.0.0.0
[R6-ospf-1-area-0.0.0.0]network 67.1.1.1 0.0.0.0

[R7]ospf 1 router-id 97.7.7.7
[R7-ospf-1]area 0
[R7-ospf-1-area-0.0.0.0]network 7.7.7.7 0.0.0.0
[R7-ospf-1-area-0.0.0.0]network 67.1.1.2 0.0.0.0
[R7-ospf-1-area-0.0.0.0]network 47.1.1.2 0.0.0.0
 Insert picture description here
see ospf Routing table ; Insert picture description here

2.R1 Belong to AS100;R2-R3-R4 Small AS234R5-R6-R7 Small AS567, At the same time, it is declared that AS200,R8 Belong to AS300
[R1]bgp 100
[R1-bgp]router-id 1.1.1.1
[R1-bgp]network 1.1.1.1 255.255.255.0
[R1-bgp]peer 12.1.1.2 as-number 200

[R2]bgp 234
[R2-bgp]router-id 2.2.2.2
[R2-bgp]confederation id 200
[R2-bgp]network 2.2.2.2 255.255.255.0
[R2-bgp]peer 3.3.3.3 as-number 234
[R2-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[R2-bgp]peer 3.3.3.3 next-hop-local
[R2-bgp]peer 12.1.1.1 as-number 100

[R3]bgp 234
[R3-bgp]router-id 3.3.3.3
[R3-bgp]confederation id 200
[R3-bgp]network 3.3.3.3 255.255.255.0
[R3-bgp]peer 2.2.2.2 as-number 234
[R3-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R3-bgp]peer 4.4.4.4 as-number 234
[R3-bgp]peer 4.4.4.4 connect-interface LoopBack 0

[R4]bgp 234
[R4-bgp]router-id 4.4.4.4
[R4-bgp]confederation id 200
[R4-bgp]network 4.4.4.4 255.255.255.0
[R4-bgp]peer 3.3.3.3 as-number 234
[R4-bgp]peer 3.3.3.3 connect-interface LoopBack 0
[R4-bgp]peer 3.3.3.3 next-hop-local

[R5]bgp 567
[R5-bgp]router-id 5.5.5.5
[R5-bgp]confederation id 200
[R5-bgp]network 5.5.5.5 255.255.255.0
[R5-bgp]peer 6.6.6.6 as-number 567
[R5-bgp]peer 6.6.6.6 connect-interface LoopBack 0
[R5-bgp]peer 6.6.6.6 next-hop-local

[R6]bgp 567
[R6-bgp]router-id 6.6.6.6
[R6-bgp]confederation id 200
[R6-bgp]network 6.6.6.6 255.255.255.0
[R6-bgp]peer 5.5.5.5 as-number 567
[R6-bgp]peer 5.5.5.5 connect-interface LoopBack 0
[R6-bgp]peer 7.7.7.7 as-number 567
[R6-bgp]peer 7.7.7.7 connect-interface LoopBack 0

[R7]bgp 567
[R7-bgp]router-id 7.7.7.7
[R7-bgp]confederation id 200
[R7-bgp]network 7.7.7.7 255.255.255.0
[R7-bgp]peer 6.6.6.6 as-number 567
[R7-bgp]peer 6.6.6.6 connect-interface LoopBack 0
[R7-bgp]peer 6.6.6.6 next-hop-local
[R7-bgp]peer 78.1.1.2 as-number 300

[R8]bgp 300
[R8-bgp]router-id 8.8.8.8
[R8-bgp]network 8.8.8.8 255.255.255.0
[R8-bgp]peer 78.1.1.1 as-number 200
see bgp Neighborhood watch
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here
break igp Horizontal segmentation ; Insert picture description here
 Insert picture description here
Comparison before and after horizontal segmentation :
 Insert picture description here
 Insert picture description here
 Insert picture description here
 Insert picture description here

3.R2-R5R4-R7 Between them is the Federation EBGP Neighborhood
[R2-bgp]confederation peer-as 567
[R2-bgp]peer 5.5.5.5 as-number 567
[R2-bgp]peer 5.5.5.5 connect-interface LoopBack 0
[R2-bgp]peer 5.5.5.5 ebgp-max-hop 5
[R5-bgp]confederation peer-as 234
[R5-bgp]peer 2.2.2.2 as-number 234
[R5-bgp]peer 2.2.2.2 connect-interface LoopBack 0
[R5-bgp]peer 2.2.2.2 ebgp-max-hop 5

[R4-bgp]confederation peer-as 567
[R4-bgp]peer 7.7.7.7 as-number 567
[R4-bgp]peer 7.7.7.7 connect-interface LoopBack 0
[R4-bgp]peer 7.7.7.7 ebgp-max-hop 5

[R7-bgp]confederation peer-as 234
[R7-bgp]peer 4.4.4.4 as-number 234
[R7-bgp]peer 4.4.4.4 connect-interface LoopBack 0
[R7-bgp]peer 4.4.4.4 ebgp-max-hop 5
 Insert picture description here

 Insert picture description here

4.R1-R8 Communication between
 Insert picture description here

原网站

版权声明
本文为[xnasda]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/161/202206100017101160.html