Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Example Analysis of BGP Loop Loop Interconnection

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you the example analysis of BGP loop backtracking interconnection, I believe that most people do not know much about it, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!

Experiment name: BGP loop loop interconnection experiment

Purpose: proficient in using and configuring BGP, understanding the use of update-source, ebgp-multihop, next-hop-self

Experimental topology diagram:

The steps of the experiment:

Router R1 configuration:

Router > en

Router#conf t

Router (config) # int e0Universe 0

Router (config-if) # ip add 172.16.255.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # int loop 0

Router (config-if) # ip add 172.16.0.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # int loop 1

Router (config-if) # ip add 172.16.1.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # int loop 2

Router (config-if) # ip add 172.16.2.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # int loop 3

Router (config-if) # ip add 172.16.3.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # exit

Router (config) # router bgp 500

Router (config-router) # neighbor 172.16.16.1 remote-as 500

Router (config-router) # neighbor 172.16.16.1 update-source loop 0

Router (config-router) # net 172.16.255.0 mask 255.255.255.0

Router (config-router) # net 172.16.0.0 mask 255.255.255.0

Router (config-router) # net 172.16.1.0 mask 255.255.255.0

Router (config-router) # net 172.16.2.0 mask 255.255.255.0

Router (config-router) # net 172.16.3.0 mask 255.255.255.0

Router (config-router) # exit

Router (config) # router rip

Router (config-router) # version 2

Router (config-router) # net 172.16.0.0

Router (config-router) # no auto-summ

Router R2 configuration:

Router > en

Router#conf t

Router (config) # int e0Universe 0

Router (config-if) # ip add 172.16.255.2 255.255.255.0

Router (config-if) # no shut

Router (config-if) # int e0bin1

Router (config-if) # ip add 10.1.255.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # int loop 0

Router (config-if) # ip add 172.16.16.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # exit

Router (config) # router bgp 500

Router (config-router) # neighbor 172.16.0.1 remote-as 500

Router (config-router) # neighbor 172.16.0.1 update-source loop 0

Router (config-router) # neighbor 172.16.0.1 next-hop-self

Router (config-router) # neighbor 192.168.0.1 remote-as 600

Router (config-router) # neighbor 192.168.0.1 update-source loop 0

Router (config-router) # neighbor 192.168.0.1 ebgp-multihop 2

Router (config-router) # net 172.16.16.0 mask 255.255.255.0

Router (config-router) # net 172.16.255.0 mask 255.255.255.0

Router (config-router) # net 10.1.255.0 mask 255.255.255.0

Router (config-router) # exit

Router (config) # ip route 192.168.0.0 255.255.255.0 10.1.255.2

Router (config) # router rip

Router (config-router) # version 2

Router (config-router) # net 172.16.0.0

Router (config-router) # no auto-summ

Router R3 configuration:

Router > en

Router#conf t

Router (config) # int e0bin1

Router (config-if) # ip add 10.1.255.2 255.255.255.0

Router (config-if) # no shut

Router (config-if) # int loop 0

Router (config-if) # ip add 192.168.0.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # int loop 1

Router (config-if) # ip add 192.168.1.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # int loop 2

Router (config-if) # ip add 192.168.2.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # int loop 3

Router (config-if) # ip add 192.168.3.1 255.255.255.0

Router (config-if) # no shut

Router (config-if) # exit

Router (config) # router bgp 600

Router (config-router) # neighbor 172.16.16.1 remote-as 500

Router (config-router) # neighbor 172.16.16.1 update-source loop 0

Router (config-router) # neighbor 172.16.16.1 ebgp-multihop 2

Router (config-router) # aggregate-address 192.168.0.0 255.255.252.0 summary-only

Router (config-router) net 192.168.0.0 mask 255.255.255.0

Router (config-router) net 192.168.1.0 mask 255.255.255.0

Router (config-router) net 192.168.2.0 mask 255.255.255.0

Router (config-router) net 192.168.3.0 mask 255.255.255.0

Router (config-router) net 10.1.255.0 mask 255.255.255.0

Router (config-router) # exit

Router (config) # ip route 172.16.16.0 255.255.255.0 10.1.255.1

The above is all the contents of the article "sample Analysis of BGP Loop interconnection". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report