当前位置:网站首页>Hcip experiment (12)
Hcip experiment (12)
2022-07-28 22:13:00 【Never tasted the Jianjia outside the building】

One , First, divide the subnet according to the requirements
172.16.0.0/16
172.16.0.0/24 ---P2P The Internet
172.16.1.0/24 ---MA The Internet
172.16.1.0/29
172.16.1.8/29
172.16.1.16/29
172.16.1.24/29
172.16.1.32/29
172.16.1.40/29
172.16.2.0/24 ---R2 Loopback
172.16.3.0/24 ---R3 Loopback
172.16.4.0/24 ---R4 Loopback
172.16.5.0/24 ---R5 Loopback
172.16.6.0/24 ---R6 Loopback
172.16.7.0/24 ---R7 Loopback
Two , Configure all routers IP Address .
R1

R2
R3

R4
R5

R6
R7
R8

3、 ... and ,AS 2 Internally enabled OSPF agreement
R2---R7
ospf 1 router-id x.x.x.x
area 0.0.0.0
network 172.16.0.0 0.0.255.255

Four , Enable BGP agreement
R1:
[r1]bgp 1 --- Enable AS 1
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 12.0.0.2 as-number 2
R2:
[r2]bgp 64512 --- Enable trumpet 64512
[r2-bgp]router-id 2.2.2.2
[r2-bgp]confederation id 2 --- Declare your big size
[r2-bgp]confederation peer-as 64513 --- Specify to create EBGP Peer's trumpet
[r2-bgp]peer 12.0.0.1 as-number 1
[r2-bgp]peer 172.16.3.0 as-number 64512
[r2-bgp]peer 172.16.3.1 connect-interface LoopBack 0
[r2-bgp]peer 172.16.5.1 as-number 64513
[r2-bgp]peer 172.16.5.1 connect-interface l 0
[r2-bgp]peer 172.16.5.1 ebgp-max-hop --- Must be modified TTL value
R3:
bgp 64512
router-id 3.3.3.3
confederation id 2
peer 172.16.2.1 as-number 64512
peer 172.16.2.1 connect-interface LoopBack0
peer 172.16.4.1 as-number 64512
peer 172.16.4.1 connect-interface LoopBack0
R4:
bgp 64512
router-id 4.4.4.4
confederation id 2
confederation peer-as 64513
peer 172.16.3.1 as-number 64512
peer 172.16.3.1 connect-interface LoopBack0
peer 172.16.7.1 as-number 64513
peer 172.16.7.1 ebgp-max-hop 255
peer 172.16.7.1 connect-interface LoopBack0
R5:
bgp 64513
router-id 5.5.5.5
confederation id 2
confederation peer-as 64512
peer 172.16.2.1 as-number 64512
peer 172.16.2.1 ebgp-max-hop 255
peer 172.16.2.1 connect-interface LoopBack0
peer 172.16.6.1 as-number 64513
peer 172.16.6.1 connect-interface LoopBack0
R6:
bgp 64513
router-id 6.6.6.6
confederation id 2
peer 172.16.5.1 as-number 64513
peer 172.16.5.1 connect-interface LoopBack0
peer 172.16.7.1 as-number 64513
peer 172.16.7.1 connect-interface LoopBack0
R7:
bgp 64513
router-id 7.7.7.7
confederation id 2
confederation peer-as 64512
peer 78.0.0.2 as-number 3
peer 172.16.4.1 as-number 64512
peer 172.16.4.1 ebgp-max-hop 255
peer 172.16.4.1 connect-interface LoopBack0
peer 172.16.6.1 as-number 64513
peer 172.16.6.1 connect-interface LoopBack0
R8:
bgp 3
router-id 8.8.8.8
peer 78.0.0.1 as-number 2


5、 ... and , Announce routing .
( One ) Declare
[r1]bgp 1
[r1-bgp]network 10.0.0.0 24
[r8]bgp 3
[r8-bgp]network 11.0.0.0 24
( Two ) Modify the next jump
[r2-bgp]peer 172.16.3.1 next-hop-local
[r2-bgp]peer 172.16.5.1 next-hop-local
[r7-bgp]peer 172.16.4.1 next-hop-local
[r7-bgp]peer 172.16.6.1 next-hop-local
( 3、 ... and ) Create a route reflector
[r3-bgp]peer 172.16.2.1 reflect-client --- Appoint R2 For your customers , For myself RR
[r6-bgp]peer 172.16.5.1 reflect-client --- Appoint R5 For your customers , For myself RR
6、 ... and , Use BGP The protocol allows the loopback of all devices in the whole network to access each other
[r2]ip route-static 172.16.0.0 21 NULL 0
[r2]bgp 64512
[r2-bgp]network 172.16.0.0 21
[r7]ip route-static 172.16.0.0 21 NULL 0
[r7]bgp 64513
[r7-bgp]network 172.16.0.0 21
7、 ... and , send 192.168.1.0 And 192.168.2.0 Communicate with each other .
[r1]int t0/0/0
[r1-Tunnel0/0/0]ip address 192.168.3.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre
[r1-Tunnel0/0/0]source 10.0.0.1
[r1-Tunnel0/0/0]destination 11.0.0.1
[r8]int t0/0/0
[r8-Tunnel0/0/0]ip address 192.168.3.2 24
[r8-Tunnel0/0/0]tunnel-protocol gre
[r8-Tunnel0/0/0]source 11.0.0.1
[r8-Tunnel0/0/0]destination 10.0.0.1
[r1]ip route-static 192.168.2.0 24 192.168.3.2
[r8]ip route-static 192.168.1.0 24 192.168.3.1
边栏推荐
- HCIP第七次实验
- Matlab | basic knowledge summary I
- Byte side: can TCP and UDP use the same port?
- hcip实验(15)
- Soft test --- database (3) data operation
- 记录Flutter解决A RenderFlex overflowed by 7.3 pixels on the bottom溢出问题
- Apifox:满足你对 Api 的所有幻想
- How to establish a decentralized community in Web3
- 使用Mock技术帮助提升测试效率的小tips,你知道几个?
- Apifox: satisfy all your fantasies about API
猜你喜欢

Soft test --- database (3) data operation

C语言编程规范学习笔记和总结

使用Mock技术帮助提升测试效率的小tips,你知道几个?

Chapter 7: drawing rotating cubes

Apifox: satisfy all your fantasies about API

Bugku,Web:都过滤了

Which brand is the best and most cost-effective open headset

罗克韦尔AB PLC RSLogix数字量IO模块基本介绍

How to establish a decentralized community in Web3

拥抱开源指南
随机推荐
Standard C language learning summary 10
小程序 监听目标节点出现到屏幕中
AimBetter洞察您的数据库,DPM 和 APM 解决方案
How many tips do you know about using mock technology to help improve test efficiency?
Which brand is the best and most cost-effective open headset
Desai wisdom number - line chart (stacking area chart): ranking of deposits of different occupational groups in the proportion of monthly income in 2022
【机器学习】朴素贝叶斯对文本分类--对人名国别分类
Esp8266 Arduino programming example - deep sleep and wake up
hcip实验(15)
Explain the remote debugging program of visual studio 2015 in LAN
90. Subset II
开放式耳机哪个音质好、公认音质好的气传导耳机推荐
DHCP and PPPoE protocols and packet capture analysis
Divide and conquer, upload large files in pieces
Introduction to wechat applet development, develop your own applet
HCIP(8)
Oracle database objects
HYDAC overflow valve db08a-01-c-n-500v
Chapter 7: drawing rotating cubes
display 各值的区别