当前位置:网站首页>Hcip mGRE comprehensive experiment
Hcip mGRE comprehensive experiment
2022-07-21 23:09:00 【Turkey sauce】
Experimental topics :
Analysis focus :
R1、R3、R4 It is equipped with RIP The protocol does not announce the network segment of the external network
R1、R3、R4 All have to be configured NAT address translation 、
Note that horizontal segmentation is turned off
Topology :
Configure the content :
R1:
[Huawei]sysname r1
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 192.168.1.1 24
[r1-GigabitEthernet0/0/0]int s4/0/0
[r1-Serial4/0/0]ip add 12.1.1.1 24
[r1-Serial4/0/0]link-protocol hdlc
[r1-Serial4/0/0]q
[r1]ip route-static 0.0.0.0 0 12.1.1.2
[r1]int Tunnel 0/0/0
[r1-Tunnel0/0/0]ip add 1.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 12.1.1.1
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]nhrp network-id 100
[r1-Tunnel0/0/0]rip 1
[r1-rip-1]version 2
[r1-rip-1]network 1.0.0.0
[r1-rip-1]network 192.168.1.0
[r1-rip-1]q
[r1]acl number 2000
[r1-acl-basic-2000]rule 5 permit
[r1-acl-basic-2000]int s4/0/0
[r1-Serial4/0/0]nat outbound 2000
[r1-Serial4/0/0]int t0/0/0
[r1-Tunnel0/0/0]undo rip split-horizon // Turn off the horizontal division of the tunnel
R2(ISP Operator, ):
[Huawei]sysname isp
[isp]int s3/0/0
[isp-Serial3/0/0]ip add 12.1.1.2 24
[isp-Serial3/0/0]int s3/0/1
[isp-Serial3/0/1]ip add 23.1.1.2 24
[isp-Serial3/0/1]int s4/0/0
[isp-Serial4/0/0]ip add 24.1.1.2 24
[isp-Serial4/0/0]int loo 0
[isp-LoopBack0]ip add 2.2.2.2 24
[isp-LoopBack0]int s3/0/0
[isp-Serial3/0/0]link-protocol hdlc
[isp-Serial3/0/0]aaa
[isp-aaa]local-user huawei password cipher huawei
Info: Add a new user.
[isp-aaa]local-user huawei service-type ppp
[isp-aaa]int s3/0/1
[isp-Serial3/0/1]link-protocol ppp
[isp-Serial3/0/1]ppp authentication-mode pap
[isp-Serial3/0/1]int s4/0/0
[isp-Serial4/0/0]link-protocol ppp
[isp-Serial4/0/0]ppp authentication-mode chap
R3:
[Huawei]sysname r3
[r3]int g0/0/1
[r3-GigabitEthernet0/0/1]ip add 192.168.2.1 24
[r3-GigabitEthernet0/0/1]int s4/0/0
[r3-Serial4/0/0]ip add 23.1.1.3 24
[r3-Serial4/0/0]int s4/0/0
[r3-Serial4/0/0]link-protocol ppp
[r3-Serial4/0/0]ppp pap local-user huawei password cipher huawei
[r3-Serial4/0/0]q
[r3]ip route-static 0.0.0.0 0 23.1.1.2
[r3]int Tunnel 0/0/0
[r3-Tunnel0/0/0]ip add 1.1.1.2 24
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]source s4/0/0
[r3-Tunnel0/0/0]nhrp network-id 100
[r3-Tunnel0/0/0]nhrp entry 1.1.1.1 12.1.1.1 register
[r3-Tunnel0/0/0]q
[r3]rip 1
[r3-rip-1]version 2
[r3-rip-1]network 1.0.0.0
[r3-rip-1]network 192.168.2.0
[r3-rip-1]q
[r3]acl number 2000
[r3-acl-basic-2000]rule 5 permit
[r3-acl-basic-2000]int s4/0/0
[r3-Serial4/0/0]nat outbound 2000
R4:
[Huawei]sysname r4
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip add 192.168.3.1 24
[r4-GigabitEthernet0/0/1]int s4/0/0
[r4-Serial4/0/0]ip add 24.1.1.4 24
[r4-Serial4/0/0]int s4/0/0
[r4-Serial4/0/0]link-protocol ppp
[r4-Serial4/0/0]ppp chap user huawei
[r4-Serial4/0/0]ppp chap password cipher huawei
[r4-Serial4/0/0]q
[r4]ip route-static 0.0.0.0 0 24.1.1.2
[r4]int Tunnel 0/0/0
[r4-Tunnel0/0/0]ip add 1.1.1.3 24
[r4-Tunnel0/0/0]tunnel-protocol gre p2mp
[r4-Tunnel0/0/0]source S4/0/0
[r4-Tunnel0/0/0]nhrp network-id 100
[r4-Tunnel0/0/0]nhrp entry 1.1.1.1 12.1.1.1 register
[r4-Tunnel0/0/0]q
[r4]rip 1
[r4-rip-1]version 2
[r4-rip-1]network 1.0.0.0
[r4-rip-1]network 192.168.3.0
[r4-rip-1]q
[r4]acl number 2000
[r4-acl-basic-2000]int s4/0/0
[r4-Serial4/0/0]nat outbound 2000
Experimental verification :
R1
R3
R4
pc Configuration diagram (pc1、pc2、pc3)
pc1 , respectively, ping ISP The loopback of 、pc2、pc3
边栏推荐
- Subnet partition operation
- MGRE comprehensive experiment
- C implementation of binary heap
- DirectX -- initialization operation
- 【无标题】RHCSA第一次作业
- Special topic of long connection Gateway Technology (VII): architecture evolution of 1.2 million long connection access layer of Xiaomi Xiaoai single machine
- 重载和重写的区别
- Comparison between VoIP soft switch and line selection
- Hcip day 4
- C implementation of search tree of binary tree
猜你喜欢
随机推荐
OSI参考模型总结
OSPF的优化
C language address book system
What is the difference between outgoing and incoming calls in okcc call center
hcia静态综合实验
HCIP day1
Custom profile
实验2-白盒测试-软件质量保障与测试
The mysql57 service on the local computer stops after it is started
C语言 通讯录系统
Hcip day 1
“FileInputStream“和“BufferedInputStream“的区别
字符串的常见方法总结
OSPF experiment in mGRE environment
[untitled] rhcsa first operation
Excel文件的解析
C implementation of search tree of binary tree
第三天作業
OSPF综合实验
GRE,MGRE