当前位置:网站首页>BGP basic experiment
BGP basic experiment
2022-07-23 23:19:00 【Unskilled pigs】
BGP Basic experiments
Requirements and topology :

IP Divide :

The division here is not reasonable
R1:

R2:

R3:

R4:

R5:

R6:

R7:

R8:

OSPF:
AS64512:
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 172.16.0.1 0.0.0.0
network 172.16.16.1 0.0.0.0
network 172.16.128.1 0.0.0.0
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 172.16.0.2 0.0.0.0
network 172.16.32.1 0.0.0.0
network 172.16.144.1 0.0.0.0
ospf 1 router-id 4.4.4.4
area 0.0.0.0
network 172.16.32.2 0.0.0.0
network 172.16.48.1 0.0.0.0
network 172.16.160.1 0.0.0.0
AS64513:
ospf 1 router-id 5.5.5.5
area 0.0.0.0
network 172.16.16.2 0.0.0.0
network 172.16.64.1 0.0.0.0
network 172.16.176.1 0.0.0.0
ospf 1 router-id 6.6.6.6
area 0.0.0.0
network 172.16.64.2 0.0.0.0
network 172.16.80.1 0.0.0.0
network 172.16.192.1 0.0.0.0
ospf 1 router-id 7.7.7.7
area 0.0.0.0
network 172.16.48.2 0.0.0.0
network 172.16.80.2 0.0.0.0
network 172.16.208.1 0.0.0.0
R2OSPF Routing table :
R7OSPF Routing table :
EBGP:
R1:
Here the EBGP Direct connection and neighbor building
[r1]bgp 1
[r1-bgp]router-id 1.1.1.1
[r1-bgp]peer 12.0.0.2 as-number 2
R2:
[r2]bgp 64512
[r2-bgp]router-id 2.2.2.2
[r2-bgp]confederation id 2 // In order to and EBGP Peer neighbor building , Explain your big AS Number is 2
[r2-bgp]peer 12.0.0.1 as-number 1

R7:
[r7]bgp 64513
[r7-bgp]router-id 7.7.7.7
[r7-bgp]confederation id 2
[r7-bgp]peer 78.0.0.2 as-number 3
R8:
[r8]bgp 3
[r8-bgp]router-id 8.8.8.8
[r8-bgp]peer 78.0.0.1 as-number 2

If the EBGP Non direct connection and neighbor building , You need to modify the next maximum value .
[r8-bgp]peer 78.0.0.1 ebgp-max-hop ?
INTEGER<1-255> Maximum hop
Please press ENTER to execute command
IBGP:
Loop back is used here to build neighbors
R2:
[r2-bgp]peer 172.16.144.1 as-number 64512 // And R3
[r2-bgp]peer 172.16.144.1 connect-interface l0
[r2-bgp]peer 172.16.144.1 next-hop-local
[r2-bgp]confederation peer-as 64513 // The federal
[r2-bgp]peer 172.16.176.1 as-number 64513 // And R5
[r2-bgp]peer 172.16.176.1 next-hop-local
[r2-bgp]peer 172.16.176.1 connect-interface LoopBack 0
[r2-bgp]peer 172.16.176.1 ebgp-max-hop
R3:
[r3]bgp 64512
[r3-bgp]router-id 3.3.3.3
[r3-bgp]confederation id 2
[r3-bgp]peer 172.16.128.1 as-number 64512 // And R2
[r3-bgp]peer 172.16.128.1 connect-interface LoopBack 0
[r3-bgp]peer 172.16.128.1 next-hop-local
[r3-bgp]peer 172.16.160.1 as-number 64512 // And R4
[r3-bgp]peer 172.16.160.1 connect-interface l0
[r3-bgp]peer 172.16.160.1 next-hop-local
R4:
[r4]bgp 64512
[r4-bgp]router-id 4.4.4.4
[r4-bgp]confederation id 2
[r4-bgp]peer 172.16.144.1 as-number 64512 // And R3
[r4-bgp]peer 172.16.144.1 connect-interface l0
[r4-bgp]peer 172.16.144.1 next-hop-local
R5:
[r5]bgp 64513
[r5-bgp]router-id 5.5.5.5
[r5-bgp]confederation id 2
[r5-bgp]confederation peer-as 64512 // The federal
[r5-bgp]peer 172.16.128.1 as-number 64512 // And R2
[r5-bgp]peer 172.16.128.1 connect-interface l0
[r5-bgp]peer 172.16.128.1 next-hop-local
[r5-bgp]peer 172.16.128.1 ebgp-max-hop
[r5-bgp]peer 172.16.192.1 as-number 64513 // And R6
[r5-bgp]peer 172.16.192.1 connect-interface LoopBack 0
[r5-bgp]peer 172.16.192.1 next-hop-local
R6:
[r6-bgp]peer 172.16.176.1 as-number 64513 // And R5
[r6-bgp]peer 172.16.176.1 connect-interface LoopBack 0
[r6-bgp]peer 172.16.176.1 next-hop-local
[r6-bgp]peer 172.16.208.1 as-number 64513 // And R7
[r6-bgp]peer 172.16.208.1 connect-interface LoopBack 0
[r6-bgp]peer 172.16.208.1 next-hop-local
R7:
[r7-bgp]peer 172.16.192.1 as-number 64513 // And R6
[r7-bgp]peer 172.16.192.1 connect-interface LoopBack 0
[r7-bgp]peer 172.16.192.1 next-hop-local

BGP Declare :
[r1-bgp]network 10.0.0.0 24
[r2-bgp]network 172.16.128.0 20
[r3-bgp]network 172.16.144.0 20
[r4-bgp]network 172.16.160.0 20
[r5-bgp]network 172.16.176.0 20
[r6-bgp]network 172.16.192.0 20
[r7-bgp]network 172.16.208.0 20
[r8-bgp]network 11.0.0.0 24
Routing reflectors :
[r3-bgp]peer 172.16.160.1 reflect-client R3 Appoint R4 For customers
[r6-bgp]peer 172.16.208.1 reflect-client R6 Appoint R7 For customers
R1 Learn all loopback routes 
R8 Learn all loopback routes 
VPN:
interface Tunnel0/0/0
ip address 18.0.0.1 255.255.255.0
tunnel-protocol gre
source 10.0.0.1
destination 11.0.0.1
[r1]ip route-static 192.168.2.0 24 18.0.0.2
interface Tunnel0/0/0
ip address 18.0.0.2 255.255.255.0
tunnel-protocol gre
source 11.0.0.1
destination 10.0.0.1
[r8]ip route-static 192.168.1.0 24 18.0.0.1

边栏推荐
- Getting started database days3
- Exch:pop3 and IMAP4 operation guide
- openEuler 资源利用率提升之道 01:概论
- Absl tutorial (4): strings Library
- 1000个Okaleido Tiger首发上线Binance NFT,引发抢购热潮
- Stm32f4 check the frequency of each part of the system
- Getting started database Days1
- Tap series article 7 | easy to manage pipeline configuration
- 一,数字逻辑的化简
- FL Studio 20.9 update Chinese version host Daw digital audio workstation
猜你喜欢

作为开发,你不得不知道的三个性能测试工具|Jmeter、Apipost、JMH使用指南

Mobile, telecom and Unicom: fancy solution of 5g to B
![[web vulnerability exploration] SQL injection vulnerability](/img/94/dc84d7790d5a1823e4b73d513e86be.png)
[web vulnerability exploration] SQL injection vulnerability

Data sorting and usage before torchvision.datasets.imagefolder
![[leetcode ladder] linked list · 203 remove linked list elements](/img/72/d3e46a820796a48b458cd2d0a18f8f.png)
[leetcode ladder] linked list · 203 remove linked list elements

Tap series article 7 | easy to manage pipeline configuration

Smart IOT source code with configuration IOT source code industrial IOT source code: support sensor analysis services, real-time data collection and remote control

二,数字逻辑功能单元

The I2C interface mode offline burning operation method of h7-tool has been released (2022-07-16)

AutoCAD advanced operation
随机推荐
A great open source micro community light forum source code
Leetcode: palindrome number
Tap series article 8 | tap Learning Center - learn through hands-on tutorials
Strncat () strncmp ()
Principal component analysis (matlab)
As a developer, you have to know the three performance testing tools JMeter, API and jmh user guide
Interviewer: if the order is not paid within 30 minutes after it is generated, it will be automatically cancelled. How to realize it?
About synchronizing data from computer to mobile
Basic operations of AutoCAD
2、 Digital logic functional unit
J9 number theory: how can we overcome the fomo phenomenon in the digital industry?
EasyNVR平台如何关闭匿名登录?
作为开发,你不得不知道的三个性能测试工具|Jmeter、Apipost、JMH使用指南
USB转CAN设备在核酸提取仪 高性能USB接口CAN卡
The canfd/can interface offline burning operation instructions of h7-tool have been updated (2022-07-12)
FreeRTOS personal notes - suspend / unhook tasks
How to reasonably estimate the size of thread pool
openEuler 资源利用率提升之道 01:概论
121. The best time to buy and sell stocks
FL Studio 20.9 update Chinese version host Daw digital audio workstation