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

边栏推荐
- 2、 What does the unittest framework do
- 2021 CEC笔试总结
- Storage, computing and distributed computing (collection and sorting is suitable for Xiaobai)
- 2021 致景笔试总结
- Introduction to onnx runtime
- js 哈希表 01
- 2. Conditional statements of shell script
- Using numpy for elevation statistics and visualization
- Angr (II) -- angr_ ctf
- 平凡人的一生的意义是什么?
猜你喜欢
随机推荐
shortest-unsorted-continuous-subarray
Angr (VII) -- angr_ ctf
2. Introduce the deployment of lamp platform +discuz Forum
Number theory -- negative Radix conversion
Hucang integrated e-commerce project (II): project use technology, version and basic environment preparation
Using px2rem does not take effect
Angr (II) -- angr_ ctf
Pow(x,n)
5.这简单的 “echo” 用法隔壁小孩能不会吗!
Multithreading - static proxy mode
Multithreading -- callable interface, lambda
Storage, computing, distributed storage (collection and sorting is suitable for Xiaobai)
js 集合
2021 Niuke written examination summary 02
Cloud native ide: the first general codeless development platform of IVX for free
Software test notes, test case design
Detailed explanation of chrome developer tools
2、 What does the unittest framework do
Add CONDA virtual environment env to the Jupiter kernel
js 双向链表 02









