当前位置:网站首页>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
(测试)

边栏推荐
猜你喜欢

Cloud native ide: the first general codeless development platform of IVX for free

Angr (II) -- angr_ ctf

Acquisition and compilation of UE4 source code

Configuration of OSPF protocol (take Huawei ENSP as an example)

disabled和readonly 以及焦点问题

2. Introduce the deployment of lamp platform +discuz Forum

Implementation of recommendation system collaborative filtering in spark

3. Like you, DNS domain name resolution service!!!

Angr (VII) -- angr_ ctf

2021 written examination summary of niuke.com 01
随机推荐
Open虚拟专线网络负载均衡
Idea overall font size modification
ONNX Runtime介绍
Angr (IV) -- angr_ ctf
Angr (V) - angr_ ctf
4.FTP服务配置与原理
Deploy master-slave database
Using px2rem does not take effect
使用Numpy进行高程统计及可视化
MySQL offline deployment
2.shell脚本之条件语句
使用px2rem不生效
Angr (VII) -- angr_ ctf
Multithreading -- callable interface, lambda
Set up lnmp+discuz Forum
Array static initialization, traversal, maximum value
Angr (x) - official document (Part1)
Multithreading - static proxy mode
Pytoch separates tensor by the value of one dimension of tensor (simple)
9.shell文本处理三剑客之awk