当前位置:网站首页>HCIP实验(02)
HCIP实验(02)
2022-07-25 09:47:00 【雨天_】


1.配置环回和接口的IP地址
[r1]int LoopBack 0
[r1-LoopBack0]ip address 192.168.1.1 24
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 14.1.1.1 24
[r2]int LoopBack 0
[r2-LoopBack0]ip address 192.168.2.1 24
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 24.1.1.1 24
[r3]int LoopBack 0
[r3-LoopBack0]ip address 192.168.3.1 24
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip address 34.1.1.1 24
[r4]int LoopBack 0
[r4-LoopBack0]ip add 4.4.4.4 24
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]ip address 14.1.1.2 24
[r4]int g0/0/1
[r4-GigabitEthernet0/0/1]ip address 24.1.1.2 24
[r4]int g0/0/2
[r4-GigabitEthernet0/0/2]ip address 34.1.1.2 24
(测试)


2.配置缺省路由,达到公网通
[r1]ip route-static 0.0.0.0 0 14.1.1.2
[r2]ip route-static 0.0.0.0 0 24.1.1.2
[r3]ip route-static 0.0.0.0 0 34.1.1.2
(测试)


3.构建MGRE环境
[r1]interface Tunnel0/0/0
[r1-Tunnel0/0/0]ip add 10.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp (工作模式:点到多点)
(启动nhrp,作为nhrp的服务端)
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]nhrp network-id 100
[r1-Tunnel0/0/0]source 14.1.1.1
[r2]int Tunnel0/0/0
[r2-Tunnel0/0/0]ip add 10.1.1.2 24
[r2-Tunnel0/0/0]tunnel-protocol gre p2mp
(找到10.1.1.1进行注册,用其公有ip进行注册)
[r2-Tunnel0/0/0]nhrp entry 10.1.1.1 14.1.1.1 register
[r2-Tunnel0/0/0]nhrp network-id 100
[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 GigabitEthernet 0/0/0
[r3-Tunnel0/0/0]nhrp entry 10.1.1.1 14.1.1.1 register
[r3-Tunnel0/0/0]nhrp network-id 100
(查看)

(测试)



4.宣告环回(私网全网通)
[r1]rip 1
[r1-rip-1]ver 2
[r1-rip-1]network 192.168.1.0
[r1-rip-1]network 10.0.0.0
[r2]rip 1
[r2-rip-1]ver 2
[r2-rip-1]network 10.0.0.0
[r2-rip-1]network 192.168.2.0
[r3]rip 1
[r3-rip-1]ver 2
[r3-rip-1]network 10.0.0.0
[r3-rip-1]network 192.168.3.0
(测试)

(R1将路由共享给R2和R3,R2和R3之间不共享路由)

解决办法:关闭R1的 水平分割
[r1]int t0/0/0
[r1-Tunnel0/0/0]undo rip split-horizon
(测试)

边栏推荐
- Mysql5.7 master-slave database deployment (offline deployment)
- String longest common prefix
- 2. Conditional statements of shell script
- When installing mysql, string the service installation failure > mysql80 startup failure
- 2021 致景笔试总结
- 2021 CEC笔试总结
- 5. NFS shared services and SSH Remote Control Services
- 6. PXE combines kickstart principle and configuration to realize unattended automatic installation
- 11.iptables 防火墙
- Pytorch tensor list is converted to tensor list of tensor to tensor using torch.stack()
猜你喜欢

Reproduce asvspoof 2021 baseline rawnet2

disabled和readonly 以及焦点问题

Introduction to onnx runtime

MySQL offline deployment

Mysql离线部署

5.这简单的 “echo” 用法隔壁小孩能不会吗!

微信小程序WxPrase中包含文件无法点击解决

美国机场围棋风格可视化专题图:ArcGIS Pro版本

VLAN configuration and application (take Huawei ENSP as an example)

Add CONDA virtual environment env to the Jupiter kernel
随机推荐
Configure FTP virtual user and access control
Angr (VII) -- angr_ ctf
2021 written examination summary of niuke.com 01
6. PXE combines kickstart principle and configuration to realize unattended automatic installation
Frp反向代理部署
使用Three.js实现炫酷的赛博朋克风格3D数字地球大屏
Deadlock event of thread pool
FRP reverse proxy deployment
Vs Code connects to the remote jupyter server
Configuration of OSPF protocol (take Huawei ENSP as an example)
云原生IDE:iVX免费的首个通用无代码开发平台
如何通过开源数据库管理工具 DBeaver 连接 TDengine
Basic concepts of testing
Supervisor deployment (offline deployment requires downloading the deployment package in advance)
淦,为什么 '𠮷𠮷𠮷' .length !== 3 ??
21. Merge Two Sorted Lists
Yiwen society, three necessary packet capturing tools for hackers
Wechat applet wxprase contains files that cannot be solved by clicking
Ansible部署指南
2021 京东笔试总结