当前位置:网站首页>[hcip] two mGRE networks are interconnected through OSPF (ENSP)
[hcip] two mGRE networks are interconnected through OSPF (ENSP)
2022-07-29 01:35:00 【1ta-chi】
List of articles
Experimental requirements and topology
- R4 by ISP, All physical interfaces connected are common network segments
- R1-2-3 Build a star structure MGRE, among R1 For the central site
- R1-5-6 Build a fully connected mesh MGRE, among R1/5 All are central sites
- Use OSPF Realize the interworking of the whole private network , All at the same time PC Normal access R4 The loopback of

Experimental process
IP To configure
With R4(ISP) For example
[ISP]interface LoopBack 0
[ISP-LoopBack0]ip address 4.4.4.4 24 // Public network IP
[ISP-LoopBack0]quit
[ISP]interface g0/0/0
[ISP-GigabitEthernet0/0/0]ip address 21.1.1.4 24
[ISP-GigabitEthernet0/0/0]quit
[ISP]interface g0/0/1
[ISP-GigabitEthernet0/0/1]ip address 12.1.1.4 24
[ISP-GigabitEthernet0/0/1]quit
[ISP]interface g0/0/2
[ISP-GigabitEthernet0/0/2]ip address 23.1.1.4 24
[ISP-GigabitEthernet0/0/2]quit
[ISP]interface g4/0/0
[ISP-GigabitEthernet4/0/0]ip address 34.1.1.4 24
[ISP-GigabitEthernet4/0/0]quit
[ISP]interface g4/0/1
[ISP-GigabitEthernet4/0/1]ip address 45.1.1.4 24
[ISP-GigabitEthernet4/0/1]quit
[ISP]interface g4/0/2
[ISP-GigabitEthernet4/0/2]ip address 56.1.1.4 24
Star type MGRE
First configure R1-6 Point to ISP Default ( Don't show )
//R1( Central site )
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]ip address 10.1.1.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp
[R1-Tunnel0/0/0]source 12.1.1.1
Jul 22 2022 18:55:09-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface Tunnel0/0/0 has entered the UP state.
[R1-Tunnel0/0/0]nhrp entry multicast dynamic
[R1-Tunnel0/0/0]nhrp network-id 100
//R2
[R2]interface Tunnel 0/0/0
[R2-Tunnel0/0/0]ip address 10.1.1.2 24
[R2-Tunnel0/0/0]tunnel-protocol gre p2mp
[R2-Tunnel0/0/0]source g0/0/0
Jul 22 2022 18:57:24-08:00 R2 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface Tunnel0/0/0 has entered the UP state.
[R2-Tunnel0/0/0]nhrp network-id 100
[R2-Tunnel0/0/0]nhrp entry 10.1.1.1 12.1.1.1 register
//R3
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ip address 10.1.1.3 24
[R3-Tunnel0/0/0]tunnel-protocol gre p2mp
[R3-Tunnel0/0/0]source g0/0/0
Jul 22 2022 18:58:59-08:00 R3 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface Tunnel0/0/0 has entered the UP state.
[R3-Tunnel0/0/0]nhrp network-id 100
[R3-Tunnel0/0/0]nhrp entry 10.1.1.1 12.1.1.1 register
The whole company MGRE
//R1( Central site )
[R1]interface Tunnel 0/0/1
[R1-Tunnel0/0/1]ip address 20.1.1.1 24
[R1-Tunnel0/0/1]tunnel-protocol gre p2mp
[R1-Tunnel0/0/1]source 21.1.1.1
Jul 22 2022 19:06:32-08:00 R1 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface Tunnel0/0/1 has entered the UP state.
[R1-Tunnel0/0/1]nhrp entry multicast dynamic
[R1-Tunnel0/0/1]nhrp network-id 200
//R5( Central site )
[R5]interface Tunnel 0/0/1
[R5-Tunnel0/0/1]ip address 20.1.1.5 24
[R5-Tunnel0/0/1]tunnel-protocol gre p2mp
[R5-Tunnel0/0/1]source 45.1.1.5
Jul 22 2022 19:08:26-08:00 R5 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface Tunnel0/0/1 has entered the UP state.
[R5-Tunnel0/0/1]nhrp entry multicast dynamic
[R5-Tunnel0/0/1]nhrp network-id 200
[R5-Tunnel0/0/1]nhrp entry 20.1.1.1 21.1.1.1 register
//R6
[R6]interface Tunnel 0/0/1
[R6-Tunnel0/0/1]ip address 20.1.1.6 24
[R6-Tunnel0/0/1]tunnel-protocol gre p2mp
[R6-Tunnel0/0/1]source 56.1.1.6
Jul 22 2022 19:10:02-08:00 R6 %%01IFNET/4/LINK_STATE(l)[0]:The line protocol IP on the interface Tunnel0/0/1 has entered the UP state.
[R6-Tunnel0/0/1]nhrp network-id 200
[R6-Tunnel0/0/1]nhrp entry 20.1.1.1 21.1.1.1 register
[R6-Tunnel0/0/1]nhrp entry 20.1.1.5 45.1.1.5 register
OSPF
//R1(area 0 + area 1)
[R1]ospf 1 router-id 1.1.1.1
[R1-ospf-1]area 0
[R1-ospf-1-area-0.0.0.0]network 192.168.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]network 10.1.1.1 0.0.0.0
[R1-ospf-1-area-0.0.0.0]quit
[R1-ospf-1]area 1
[R1-ospf-1-area-0.0.0.1]network 20.1.1.1 0.0.0.0
//R2(area 0)
[R2]ospf 1 router-id 2.2.2.2
[R2-ospf-1]area 0
[R2-ospf-1-area-0.0.0.0]network 192.168.2.1 0.0.0.0
[R2-ospf-1-area-0.0.0.0]network 10.1.1.2 0.0.0.0
//R3(area 0)
[R3]ospf 1 router-id 3.3.3.3
[R3-ospf-1]area 0
[R3-ospf-1-area-0.0.0.0]network 192.168.3.1 0.0.0.0
[R3-ospf-1-area-0.0.0.0]network 10.1.1.3 0.0.0.0
//R5(area 1)
[R5]ospf 1 router-id 5.5.5.5
[R5-ospf-1]area 1
[R5-ospf-1-area-0.0.0.1]network 192.168.4.1 0.0.0.0
[R5-ospf-1-area-0.0.0.1]network 20.1.1.5 0.0.0.0
//R6(area 1)
[R6]ospf 1 router-id 6.6.6.6
[R6-ospf-1]area 1
[R6-ospf-1-area-0.0.0.1]ne
[R6-ospf-1-area-0.0.0.1]network 192.168.5.1 0.0.0.0
[R6-ospf-1-area-0.0.0.1]ne
[R6-ospf-1-area-0.0.0.1]network 20.1.1.6 0.0.0.0
stay NBMA In the network , The interface type is p2p, so OSPF The agreement cannot normally establish a neighbor relationship , At this time, all interfaces should be modified to Broadcast;
R2 and R3 In star MGRE In the network , And make it give up DR The election , otherwise area 0 The route selection will be inconsistent
//R1
[R1]interface Tunnel 0/0/0
[R1-Tunnel0/0/0]ospf network-type broadcast
[R1-Tunnel0/0/0]quit
[R1]interface Tunnel 0/0/1
[R1-Tunnel0/0/1]ospf network-type broadcast
//R2
[R2]interface Tunnel 0/0/0
[R2-Tunnel0/0/0]ospf network-type broadcast
[R2-Tunnel0/0/0]ospf dr-priority 0
//R3
[R3]interface Tunnel 0/0/0
[R3-Tunnel0/0/0]ospf network-type broadcast
[R3-Tunnel0/0/0]ospf dr-priority 0
//R5
[R5]interface Tunnel 0/0/1
[R5-Tunnel0/0/1]ospf network-type broadcast
//R6
[R6]interface Tunnel 0/0/1
[R6-Tunnel0/0/1]ospf network-type broadcast
NAT address translation , With R1 For example
[R1]acl 2000
[R1-acl-basic-2000]rule 1 permit source any
[R1-acl-basic-2000]q
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]nat outbound 2000
Routing table display and connectivity test 

边栏推荐
- New upgrade: get Taobao product details "advanced version" API
- ValueError: Colors must be aRGB hex values
- els 方块移动
- Cookies and sessions
- Test / development programmers rely on technology to survive the midlife crisis? Improve your own value
- C language bracket matching (stack bracket matching C language)
- SQL question brushing: find the employee number EMP with more than 15 salary records_ No and its corresponding recording times t
- Flask generates image verification code
- SQL injection of DVWA
- 云原生应用综合练习下
猜你喜欢

SQL question brushing: find the last of all employees_ Name and first_ Name and corresponding department number Dept_ no
![A ten thousand word blog post takes you into the pit. Reptiles are a dead end [ten thousand word pictures]](/img/aa/a5e7b4516aa395f8d4d0e2eee7d3c7.png)
A ten thousand word blog post takes you into the pit. Reptiles are a dead end [ten thousand word pictures]

mysql 创建索引的三种方式

Cross modal alignment 20220728

一文读懂Okaleido Tiger近期动态,挖掘背后价值与潜力

Self-attention neural architecture search for semantic image segmentation

【SQL之降龙十八掌】01——亢龙有悔:入门10题

Flash reports an error: type object 'news' has no attribute' query 'the view name is duplicate with the model name

了解各种路径

Groundwater, soil, geology and environment
随机推荐
一篇万字博文带你入坑爬虫这条不归路 【万字图文】
Code generator
全新升级:获得淘宝商品详情“高级版” API
数据库的decimal类型的数据,发现可以通过resultSet.getDouble去拿到这个数据,但是通过getObject却拿不到这个属性。
els 到底停止
[ManageEngine] help Harbin Engineering University realize integrated monitoring and management of network traffic
Timer of BOM series
[unity project practice] synthetic watermelon
Three ways of creating indexes in MySQL
Flink Postgres CDC
SQL question brushing: find the last of all employees who have been assigned departments_ Name and first_ Name and Dept_ no
ELMO,BERT和GPT简介
PLATO上线LAAS协议Elephant Swap,用户可借此获得溢价收益
HCIA配置实例(eNSP)
redis安装,集群部署与常见调优
易观分析:以用户为中心,提升手机银行用户体验,助力用户价值增长
Test / development programmers rely on technology to survive the midlife crisis? Improve your own value
uniapp createSelectorQuery(). Select get returns null error
Bracket matching test
els 新的方块落下