当前位置:网站首页>BGP experiment (1)
BGP experiment (1)
2022-07-07 07:29:00 【CNS2900761382】
experiment :
One . Topology
Two .1 To configure IP Address
[r1-LoopBack0]ip add 1.1.1.1 32
[r1-GigabitEthernet0/0/2]ip add 11.1.1.1 24
[r1-GigabitEthernet0/0/1]ip add 12.1.1.1 24
[r2-LoopBack0]ip add 1.1.1.2 32
[r2-GigabitEthernet0/0/2]ip add 22.1.1.1 24
[r2-GigabitEthernet0/0/0]ip add 12.1.1.2 24
[r2-GigabitEthernet0/0/1]ip add 23.1.1.1 24
[r3-GigabitEthernet0/0/0]ip add 23.1.1.2 24
[r3-LoopBack0]ip add 1.1.1.3 32
[r3-GigabitEthernet0/0/2]ip add 33.1.1.1 24
[r3-GigabitEthernet0/0/1]ip add 34.1.1.1 24
[r4-GigabitEthernet0/0/0]ip add 34.1.1.2 24
[r4-LoopBack0]ip add 1.1.1.4 32
[r4-GigabitEthernet0/0/2]ip add 44.1.1.1 24
[r4-GigabitEthernet0/0/1]ip add 45.1.1.1 24
[r4-GigabitEthernet4/0/0]ip add 54.1.1.1 24
[r5-GigabitEthernet0/0/0]ip add 45.1.1.2 24
[r5-GigabitEthernet0/0/1]ip add 54.1.1.2 24
[r5-LoopBack0]ip add 5.5.5.5 24
[r5-GigabitEthernet0/0/2]ip add 55.1.1.1 24
2.AS2 Internal enable OSPF agreement
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1-area-0.0.0.0]network 1.1.1.2 0.0.0.0
[r2-ospf-1-area-0.0.0.0]network 22.1.1.1 0.0.0.0
[[r2-ospf-1-area-0.0.0.0]network 23.1.1.1 0.0.0.0
[r3]ospf 1 router-id 3.3.3.3
[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
[r3-ospf-1-area-0.0.0.0]network 1.1.1.3 0.0.0.0
[r3-ospf-1-area-0.0.0.0]network 33.1.1.1 0.0.0.0
[r4]ospf 1
[r4]ospf 1 router-id 4.4.4.4
[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 1.1.1.4 0.0.0.0
[r4-ospf-1-area-0.0.0.0]network 44.1.1.1 0.0.0.0
3. Conduct BGP To configure
[r1]bgp 1
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 12.1.1.2 as-number 2
[r2]bgp 2
[r2-bgp]router-id 2.2.2.2
[r2-bgp]peer 12.1.1.1 as-number 1
Build a neighborhood
[r3]bgp 2
[r3-bgp]router-id 3.3.3.3
[r3-bgp]peer 1.1.1.2 as-number 2
[r3-bgp]peer 1.1.1.4 as-number 2
[r3-bgp]peer 1.1.1.4 connect-interface l0
[r4]bgp 2
[r4-bgp]router-id 4.4.4.4
[r4-bgp]peer 1.1.1.3 as-number 2
[r4-bgp]peer 1.1.1.3 connect-interface l0
because BGP The prerequisite for building a neighbor is data level interoperability , therefore , You need to be in R4 Write the static route pointing to the opposite end loopback
[r4]ip route-static 5.5.5.0 24 45.1.1.2
[r4]bgp 2
[r4-bgp]peer 5.5.5.5 as-number 3
[r4-bgp]peer 5.5.5.5 connect-interface l0
[r4-bgp]peer 5.5.5.5 ebgp-max-hop
because BGP The prerequisite for building a neighbor is data level interoperability , therefore , You need to be in R5 Write the static route pointing to the opposite end loopback
[r5]ip route-static 1.1.1.4 32 45.1.1.1
[r5]ip route-static 1.1.1.4 32 54.1.1.1
[r5]bgp 3
[r5-bgp]router-id 5.5.5.5
[r5-bgp]peer 1.1.1.4 as-number 2
[[r5-bgp]peer 1.1.1.4 connect-interface l0
[r5-bgp]peer 1.1.1.4 ebgp-max-hop 2
Check the neighborhood
4. The loops of each router are announced in their respective BGP in
[r1]bgp 1
[r1-bgp]net
[r1-bgp]network 11.1.1.0 24
because IGP The horizontal segmentation mechanism of ,IGP The route learned internally cannot be transmitted to the third router ,R2 and R4 We should also build neighbors , And because of AS-BY-AS Mechanism , The information transmitted internally will not change , Change the next hop when you need to configure delivery
[r2]bgp 2
[r2-bgp]peer 1.1.1.3 next-hop-local
[r2-bgp]peer 1.1.1.4 as-number 2
[r2-bgp]peer 1.1.1.4 connect-interface l0
[r2]bgp 2
[r2-bgp]peer 1.1.1.4 next-hop-local
[r4]bgp 2
[r4-bgp]peer 1.1.1.2 as-number 2
[r4-bgp]peer 1.1.1.2 connect-interface l0
[r4]bgp 2
[r4-bgp]peer 1.1.1.2 next-hop-local
[r4-bgp]peer 1.1.1.3 next-hop-local
[r5]bgp 3
[r5-bgp]network 55.1.1.0 24
test PC Communication between
边栏推荐
- 詳解機器翻譯任務中的BLEU
- Example of Pushlet using handle of Pushlet
- 基于Flask搭建个人网站
- 抽丝剥茧C语言(高阶)指针进阶练习
- 异步组件和Suspense(真实开发中)
- Outsourcing for three years, abandoned
- 抽絲剝繭C語言(高階)數據的儲存+練習
- 聊聊异步编程的 7 种实现方式
- Four goals for the construction of intelligent safety risk management and control platform for hazardous chemical enterprises in Chemical Industry Park
- [semantic segmentation] - multi-scale attention
猜你喜欢
身边35岁程序员如何建立起技术护城河?
Communication between non parent and child components
Dynamics CRM server deployment - restore database prompt: the database is in use
考研失败,卷不进大厂,感觉没戏了
父组件传递给子组件:Props
Wechat applet full stack development practice Chapter 3 Introduction and use of APIs commonly used in wechat applet development -- 3.9 introduction to network interface (IX) extending the request3 met
95后CV工程师晒出工资单,狠补了这个,真香...
四、高性能 Go 语言发行版优化与落地实践 青训营笔记
1090: integer power (multi instance test)
LC interview question 02.07 Linked list intersection & lc142 Circular linked list II
随机推荐
[semantic segmentation] - multi-scale attention
OOM(内存溢出)造成原因及解决方案
普通测试年薪15w,测试开发年薪30w+,二者差距在哪?
JS small exercise
JS small exercise ---- time sharing reminder and greeting, form password display hidden effect, text box focus event, closing advertisement
Model application of time series analysis - stock price prediction
基于Flask搭建个人网站
Pass parent component to child component: props
Four goals for the construction of intelligent safety risk management and control platform for hazardous chemical enterprises in Chemical Industry Park
C language (high-level) data storage + Practice
Communication between non parent and child components
How to * * labelimg
How can a 35 year old programmer build a technological moat?
子组件传递给父组件
Special behavior of main function in import statement
Sqlmap tutorial (IV) practical skills three: bypass the firewall
Reflection (II)
选择商品属性弹框从底部弹出动画效果
Differences between H5 architecture and native architecture
Detailed explanation of neo4j installation process