当前位置:网站首页>Hcip day 5
Hcip day 5
2022-07-22 11:55:00 【 ᝰꫛꫀꪝ】
1、 The experimental requirements
1、R4 by ISP, All physical interfaces connected are public network segments , Arbitrarily specify ip that will do
2、R1-2-3 Build a star structure MGRE structure , among R1 For the center , hypothesis R1 Of public ownership ip Is a fixed address
3、R1-5-6 Build another fully connected mesh MGRE The Internet , among R1/5 All are central areas
4、 Use OSPF Realize the interworking of the whole private network , All at the same time PC Normal access R4 The loopback of
2、 The topology
3、 The analysis process
1、 Corresponding interface configuration IP
2、R1/2/3/5/6 Write the default point ISP, And then build MGRE
3、 Because building MGRE Will use Tunnel mouth , So use OSPF when , To put tunnel The mode of the port is changed to broadcast.
4、 Star shaped structures can produce DR Election issues , So will R2 and R3 The election priority of the interface is changed to 0
5、 Finally using NAT Technology enables private networks to access public networks .
4、 Configure the content
R1:
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]ip add 41.1.1.1 24
[r1-GigabitEthernet0/0/0]int g 0/0/1
[r1-GigabitEthernet0/0/1]ip add 14.1.1.1 24
[r1-GigabitEthernet0/0/1]int g 0/0/2
[r1-GigabitEthernet0/0/2]ip add 192.168.1.1 24
[r1]ip route-static 0.0.0.0 0 14.1.1.4
[r1]ip route-static 0.0.0.0 0 41.1.1.4
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip add 10.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 14.1.1.1
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]nhrp network-id 100
[r1]int Tunnel 0/0/1
[r1-Tunnel0/0/1]ip add 11.1.1.1 24
[r1-Tunnel0/0/1]tunnel-protocol gre p2mp
[r1-Tunnel0/0/1]source g 0/0/0
[r1-Tunnel0/0/1]nhrp entry multicast dynamic
[r1-Tunnel0/0/1]nhrp network-id 200
[r1-Tunnel0/0/1]nhrp entry 11.1.1.2 54.1.1.5 register
[r1-Tunnel0/0/1]nhrp entry 11.1.1.3 64.1.1.6 register
[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.0 0.0.0.255
[r1-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ospf network-type broadcast
[r1]ospf 1 router-id 1.1.1.1
[r1-ospf-1]area 1
[r1-ospf-1-area-0.0.0.1]network 11.1.1.0 0.0.0.255
[r1]int Tunnel 0/0/1
[r1-Tunnel0/0/1]ospf network-type broadcast
[r1]acl 2000
[r1-acl-basic-2000]rule permit source any
[r1-acl-basic-2000]q
[r1]int g 0/0/0
[r1-GigabitEthernet0/0/0]nat outbound 2000
[r1-GigabitEthernet0/0/0]int g 0/0/1
[r1-GigabitEthernet0/0/1]nat outbound 2000
R2:
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]ip add 24.1.1.2 24
[r2-GigabitEthernet0/0/0]int g 0/0/1
[r2-GigabitEthernet0/0/1]ip add 192.168.2.1 24
[r2]ip route-static 0.0.0.0 0 24.1.1.4
[r2]int Tunnel 0/0/0
[r2-Tunnel0/0/0]ip add 10.1.1.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
[r2-Tunnel0/0/0]source g0/0/0
[r2-Tunnel0/0/0]nhrp entry 10.1.1.1 14.1.1.1 register
[r2-Tunnel0/0/0]nhrp network-id 100
[r2]ospf 1 router-id 2.2.2.2
[r2-ospf-1]area 0
[r2-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[r2-ospf-1-area-0.0.0.0]network 192.168.2.0 0.0.0.255
[r2-Tunnel0/0/0]ospf network-type broadcast
[r2-Tunnel0/0/0]ospf dr-priority 0
[r2]acl 2000
[r2-acl-basic-2000]rule permit source any
[r2-acl-basic-2000]q
[r2]int g 0/0/0
[r2-GigabitEthernet0/0/0]nat outbound 2000
R3:
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]ip add 34.1.1.3 24
[r3-GigabitEthernet0/0/0]int g 0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.3.1 24
[r3]ip route-static 0.0.0.0 0 34.1.1.4
[r3]int Tunnel 0/0/0
[r3-Tunnel0/0/0]ip add 10.1.1.3 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source g 0/0/0
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 14.1.1.1 register
[r3-Tunnel0/0/0]nh network-id 100
[r3]ospf 1 router-id 3.3.3.3
[r3-ospf-1]area 0
[r3-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255
[r3-ospf-1-area-0.0.0.0]network 192.168.3.0 0.0.0.255
[r3-Tunnel0/0/0]ospf network-type broadcast
[r3-Tunnel0/0/0]ospf dr-priority 0
[r3]acl 2000
[r3-acl-basic-2000]rule permit source any
[r3-acl-basic-2000]q
[r3]int g 0/0/0
[r3-GigabitEthernet0/0/0]nat outbound 2000
R4:
[ISP]int g 0/0/0
[ISP-GigabitEthernet0/0/0]ip add 41.1.1.4 24
[ISP-GigabitEthernet0/0/0]int g 0/0/1
[ISP-GigabitEthernet0/0/1]ip add 24.1.1.4 24
[ISP-GigabitEthernet0/0/1]int g 0/0/2
[ISP-GigabitEthernet0/0/2]ip add 34.1.1.4 24
[ISP-GigabitEthernet0/0/2]int g 4/0/2
[ISP-GigabitEthernet4/0/2]ip add 14.1.1.4 24
[ISP-GigabitEthernet4/0/2]int g 4/0/0
[ISP-GigabitEthernet4/0/0]ip add 64.1.1.4 24
[ISP-GigabitEthernet4/0/0]int g 4/0/1
[ISP-GigabitEthernet4/0/1]ip add 54.1.1.4 24
[ISP]int l0
[ISP-LoopBack0]ip add 4.4.4.4 24
R5:
[r5]int g 0/0/0
[r5-GigabitEthernet0/0/0]ip add 54.1.1.5 24
[r5-GigabitEthernet0/0/0]int g 0/0/1
[r5-GigabitEthernet0/0/1]ip add 192.168.4.1 24
[r5]ip route-static 0.0.0.0 0 54.1.1.4
[r5]int Tunnel 0/0/0
[r5-Tunnel0/0/0]ip add 11.1.1.2 24
[r5-Tunnel0/0/0]tunnel-protocol gre p2mp
[r5-Tunnel0/0/0]source g 0/0/0
[r5-Tunnel0/0/0]nhrp entry multicast dynamic
[r5-Tunnel0/0/0]nhrp network-id 200
[r5-Tunnel0/0/0]nhrp entry 11.1.1.1 41.1.1.1 register
[r5-Tunnel0/0/0]nhrp entry 11.1.1.3 64.1.1.6 register
[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.0 0.0.0.255
[r5-ospf-1-area-0.0.0.1]network 11.1.1.0 0.0.0.255
[r5]int Tunnel 0/0/0
[r5-Tunnel0/0/0]ospf network-type broadcast
[r5]acl 2000
[r5-acl-basic-2000]rule permit source any
[r5-acl-basic-2000]q
[r5]int g 0/0/0
[r5-GigabitEthernet0/0/0]nat outbound 2000
R6:
[r6]int g 0/0/0
[r6-GigabitEthernet0/0/0]ip add 64.1.1.6 24
[r6-GigabitEthernet0/0/0]int g 0/0/1
[r6-GigabitEthernet0/0/1]ip add 192.168.5.1 24
[r6]ip route-static 0.0.0.0 0 64.1.1.4
[r6]int Tunnel 0/0/0
[r6-Tunnel0/0/0]ip add 11.1.1.3 24
[r6-Tunnel0/0/0]tunnel-protocol gre p2mp
[r6-Tunnel0/0/0]source g 0/0/0
[r6-Tunnel0/0/0]nhrp entry multicast dynamic
[r6-Tunnel0/0/0]nhrp network-id 200
[r6-Tunnel0/0/0]nhrp entry 11.1.1.1 41.1.1.1 register
[r6-Tunnel0/0/0]nhrp entry 11.1.1.2 54.1.1.5 register
[r6]ospf 1 router-id 6.6.6.6
[r6-ospf-1]area 1
[r6-ospf-1-area-0.0.0.1]network 11.1.1.0 0.0.0.255
[r6-ospf-1-area-0.0.0.1]network 192.168.5.0 0.0.0.255
[r6]int Tunnel 0/0/0
[r6-Tunnel0/0/0]ospf network-type broadcast
[r6]acl 2000
[r6-acl-basic-2000]rule permit source any
[r6-acl-basic-2000]q
[r6]int g 0/0/0
[r6-GigabitEthernet0/0/0]nat outbound 2000
5、 The results verify that
MGRE Established results
visit ISP The loopback of
Interworking of private networks
边栏推荐
- Screen adaptation method of mobile web app (summary)
- How do you choose sentinel vs. hystrix?
- 3 亿
- Syntax comparison between ES6 class and Es5
- The US Senate preliminarily passed the US $52billion "chip bill", and she took the opportunity to "invest in stocks"!
- Leetcode skimming -- bit by bit record 021
- Ctfhub (RCE wisdom tree)
- Pyinstaller packaging & problem solving about enum34 & reduced version
- J9数字论:什么是 DAO?DAO 的起源是什么
- Cadence学习之路:导入网表出错之引脚不对应
猜你喜欢
详解Redis的数据结构
PR
Redis的 缓存穿透、击穿、雪崩
基于JSP+Servlet+MySQL+Bootstrap+CSS的图书管理系统
经典网络架构学习-ResNet
EN 1504-4: structural bonding of concrete structure products - CE certification
sql绕过案例
Online shopping mall e-commerce system based on ssm+mysql+bootstrap+jquery
Pyinstaller packaging & problem solving about enum34 & reduced version
基于SSM+MySQL+EasyUI+的博客论坛管理系统
随机推荐
Redis的 缓存穿透、击穿、雪崩
3 亿
openoffice启动和自动启动设置
为什么都说软件测试岗是巨坑?10年测试人告诉你千万别上当
马斯克上传大脑很疯狂,Neuralink却早已一地鸡毛
【學習筆記】帶你從0開始學習 01Trie
Force deduction ----- negative numbers in the statistical ordered matrix
加密市场飙升至1万亿美元以上 不过是假象?加密熊市远未见底
Here comes the multilingual model that everyone can use! It supports 59 languages, parameters 176billion, and is jointly sponsored by 1000 scientists
基于知识图谱的Wi-Fi室内定位技术研究
viewport缩放方法,解决移动端自适配
001_Kubernetes入门
从腾讯外包月薪5K到转岗正式员工月薪15K,这168天的心酸谁能懂...
Viewport scaling method to solve the self adaptation of mobile terminal
详解Redis的数据结构
How to solve cross domain problems
PR
The difference between let and VaR
[hero planet July training leetcode problem solving daily] 21st pile
LeetCode·987. Vertical traversal, bucket sorting and Simulation of binary tree