当前位置:网站首页>Hcip experiment (03)
Hcip experiment (03)
2022-07-25 11:10:00 【Rainy days_】

Topology design and IP Address planning

1. by R4 Conduct HDLC encapsulation 、PAP authentication 、CHAP Authentication and loopback configuration
[r4]int s4/0/0
( Conduct HDLC encapsulation )
[r4-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]:y
[r4-Serial4/0/0]ip address 14.1.1.2 24
( Create account , The function of the account is to PPP encapsulation )
[r4]int s3/0/0
[r4-Serial3/0/0]ppp authentication-mode pap
[r4-Serial3/0/0]ip add 24.1.1.1 24
[r4]aaa
[r4-aaa]local-user sss privilege level 15 password cipher 123456
Info: Add a new user.
[r4-aaa]local-user sss service-type ppp
[r4]int s4/0/1
[r4-Serial4/0/1]ppp authentication-mode chap
[r4-Serial4/0/1]ip add 34.1.1.2 24
[r4]aaa
[r4-aaa]local-user aaa privilege level 15 password cipher 123456
Info: Add a new user.
[r4-aaa]local-user aaa service-type ppp
[r4]int LoopBack 0
[r4-LoopBack0]ip address 4.4.4.4 24
( see )

testing

( By default, both sides are PPP encapsulation , be in up state )
[r4]int s3/0/0
[r4-Serial3/0/0]shutdown
[r4-Serial3/0/0]undo shutdown
[r4]int s4/0/1
[r4-Serial4/0/1]shutdown
[r4-Serial4/0/1]undo shutdown
( see )

2. Configure the private network router
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[r1]int s4/0/0
[r1-Serial4/0/0]ip address 14.1.1.1 24
[r1-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]:y
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]ip address 192.168.2.1 24
[r2]int s4/0/0
[r2-Serial4/0/0]ip address 24.1.1.1 24
[r2-Serial4/0/0]ppp pap local-user sss password cipher 123456
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]ip add
[r3-GigabitEthernet0/0/0]ip address 192.168.3.1 24
[r3]int s4/0/0
[r3-Serial4/0/0]ip address 34.1.1.1 24
[r3-Serial4/0/0]ppp chap user aaa
[r3-Serial4/0/0]ppp chap password cipher 123456
( verification )



3. Configure the computer IP Address


4. Configure the default route
[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
( verification )


5. establish MGRE Environmental Science (MGRE Environmental Science --NBMA Network segment )
[r1]int t0/0/0
[r1-Tunnel0/0/0]ip address 10.1.1.1 24
[r1-Tunnel0/0/0]tunnel-protocol gre p2mp
[r1-Tunnel0/0/0]source 14.1.1.1
( start-up nhrp, As nhrp The service side )
[r1-Tunnel0/0/0]nhrp entry multicast dynamic
[r1-Tunnel0/0/0]nhrp network-id 100
[r2]int t0/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 s4/0/0
( find 10.1.1.1 To register , Use its public ownership ip To register )
[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 t0/0/0
[r3-Tunnel0/0/0]tunnel-protocol gre p2mp
[r3-Tunnel0/0/0]ip add 10.1.1.3 24
[r3-Tunnel0/0/0]source s4/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
( see )




(R2 ping 10.1.1.3 after )

6. Declare (RIP)
[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 192.168.2.0
[r2-rip-1]network 10.0.0.0
[r3]rip 1
[r3-rip-1]ver 2
[r3-rip-1]network 192.168.3.0
[r3-rip-1]network 10.0.0.0
(R1 Share routes to R2 and R3,R2 and R3 Routes are not shared between )
( Turn off horizontal split )
[r1]int t0/0/0
[r1-Tunnel0/0/0]undo rip split-horizon 
Optimize : Handwritten static routing
[r3]ip route-static 192.168.2.0 24 10.1.1.2
[r2]ip route-static 192.168.3.0 24 10.1.1.3
verification 

7. Conduct NAT( Will source IP Become public IP)
[r1]acl 2000
[r1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[r1]int s4/0/0
[r1-Serial4/0/0]nat outbound 2000
[r2]acl 2000
[r2-acl-basic-2000]rule permit source 192.168.2.0 0.0.0.255
[r2]int s4/0/0
[r2-Serial4/0/0]nat outbound 2000
[r3]acl 2000
[r3-acl-basic-2000]rule permit source 192.168.3.0 0.0.0.255
[r3]int s4/0/0
[r3-Serial4/0/0]nat outbound 2000
( verification )


边栏推荐
- 电磁场与电磁波实验一 熟悉Matlab软件在电磁场领域的应用
- Implementation of recommendation system collaborative filtering in spark
- 从开源的视角,解析SAP经典ERP “三十年不用变”的架构设计
- Flask框架——flask-caching缓存
- How to notify users of wechat applet version update?
- HCIP实验(03)
- 美国机场围棋风格可视化专题图:ArcGIS Pro版本
- [servlet] request parsing
- 【域泛化】2022 IJCAI领域泛化教程报告
- MySQL advanced statement (I) (there is always someone who will make your life no longer bad)
猜你喜欢
随机推荐
Flask框架——Flask-WTF表单:文件上传、验证码
Learning Weekly - total issue 63 - an open source local code snippet management tool
基于cornerstone.js的dicom医学影像查看浏览功能
Learn NLP with Transformer (Chapter 3)
HCIP实验(03)
接口流量突增,如何做好性能调优?
企业实践开源的动机
Nb-iot control LCD (date setting and reading)
【flask高级】从源码深入理解flask的应用上下文和请求上下文
HDD Hangzhou station full experience
【信息系统项目管理师】思维导图系列精华汇总
HCIA实验(10)NAT
SQL语言(五)
学习周刊 - 总第 63 期 - 一款开源的本地代码片段管理工具
HCIP(11)
美国机场围棋风格可视化专题图:ArcGIS Pro版本
Flask framework - session and cookies
mysql主从复制与读写分离
信号完整性(SI)电源完整性(PI)学习笔记(三十三)102条使信号完整性问题最小化的通用设计规则
AI system frontier dynamics issue 43: ONEFLOW V0.8.0 officially released; GPU finds human brain connections; AI doctoral online crowdfunding research topic








