当前位置:网站首页>PPP综合实验
PPP综合实验
2022-07-16 03:00:00 【Dream_of_falling】

实验需求
1、R5为ISP,只能进行IP地址配置,其所有地址均配为公有IP地址
2、R1和R5间使用PPP的PAP认证,R5为主认证方;
R2和R5之间使用的PPP的chap认证,R5为主认证方;
R3和R5之间使用HDLC封装。
3、R1/R2/R3之间构建一个MGRE环境,R1为中心站点;R1、R4间为点到点的GRE。
4、整个私有网络基于RIP全网可达。
5、所有PC设置私有IP为源ip,可以访问R5环回。
实验开始

- 按图配IP地址
R1-R4类似

R5

配完IP地址后,要想互通,可以写一条缺省路由
[R1]ip route-static 0.0.0.0 0 15.0.0.2
2. R1和R5间使用PPP的PAP认证,R5为主认证方;R2和R5之间使用的PPP的chap认证,R5为主认证方;R3和R5之间使用HDLC封装。
可以看到华为设备默认采用的就是PPP协议
3. 先在ISP上做主认证PPP认证配置:
[ISP-aaa]local-user r1 password cipher 123456
[ISP-aaa]local-user r1 service-type ppp
[ISP-Serial3/0/0]ppp authentication-mode pap
然后在R1上做被认证方配置
[R1-Serial4/0/0]ppp pap local-user r1 password cipher 123456
如果现在ping,不能说明认证成功。因为PPP创建的是一次性会话,之前会话已经创建好了,且创建的会话没有认证,所以现在得shutdown一下接口,再ping,如果通了,才能够证明PPP认证成功。
CHAP认证方:
[ISP-aaa]local-user r2 password cipher 123456
[ISP-aaa]local-user r2 service-type ppp
[ISP-Serial3/0/1]ppp authentication-mode chap
被认证方:
[R2-Serial4/0/0]ppp chap user r2
[R2-Serial4/0/0]ppp chap password cipher 123456
HDLC封装(两边都必须改封装类型):
[R3-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
[ISP-Serial4/0/0]link-protocol hdlc
Warning: The encapsulation protocol of the link will be changed. Continue? [Y/N]
:y
4. R1/R2/R3之间构建一个MGRE环境,R1为中心站点;R1、R4间为点到点的GRE。
R1 中心点MGRE配置:
[R1]int t0/0/0
[R1-Tunnel0/0/0]ip add 192.168.5.1 24
[R1-Tunnel0/0/0]tunnel-protocol gre p2mp
[R1-Tunnel0/0/0]source 15.0.0.1
[R1-Tunnel0/0/0]nhrp network-id 100
R2、R3:
[R2]int t0/0/0
[R2-Tunnel0/0/0]ip add 192.168.5.2 24
[R2-Tunnel0/0/0]tunnel-protocol gre p2mp
[R2-Tunnel0/0/0]source s4/0/0
[R3-Tunnel0/0/0]nhrp network-id 100
R3-Tunnel0/0/0]nhrp entry 192.168.5.1 15.0.0.1 register
R4:
[R4]int t0/0/0
[R4-Tunnel0/0/0]ip add 192.168.6.2 24
[R4-Tunnel0/0/0]tunnel-protocol gre
[R4-Tunnel0/0/0]source 45.0.0.1
[R4-Tunnel0/0/0]destination 15.0.0.1
5. 整个私有网络基于RIP全网可达
[R1]rip
[R1-rip-1]v 2
[R1-rip-1]net 192.168.1.0
[R1-rip-1]net 192.168.5.0
[R1-rip-1]net 192.168.6.0
所有路由器上 都进行rip 宣告
6. 所有PC设置私有IP为源ip,可以访问R5环回 [R1]acl 2000
[R1-acl-basic-2000]rule permit source 192.168.1.0 0.0.0.255
[R1]interface Serial 4/0/0
[R1-Serial4/0/0]nat outbound 2000

边栏推荐
- 分享一下Postman连接MySQL数据库的操作步骤,从安装开始讲起
- Etherscan: some important charts in the bear market
- 【Golang | gRPC】gRPC-Server Streaming服务端流实战
- Reversingkr WP (7)
- Cancel default style
- In depth interpretation of the investment logic of the consortium's participation in the privatization of Twitter
- 记录根文件系统镜像img制作
- Linux -- connecting to MySQL database and basic operations
- 网络安全--Kali使用mdk3攻击wifi(详细教程)
- Typescript之常量与对象冻结
猜你喜欢

Source Insight4 中文乱码怎么办?

MySQL基础——增删查改(基础)

Comment systématiser gratuitement l'introduction à la science des données?
![[QT入门篇]编程基础知识](/img/2f/4a5b4a7d06cfe87a2af4431fc991ab.png)
[QT入门篇]编程基础知识

Data structure in redis (I): String

Automatic tracking tool bgmi

Rust opencv drawing and display

ORA-00322&ORA-00312

Share the operation steps of postman connecting to MySQL database from the beginning of installation

如何免费系统化入门数据科学?
随机推荐
In depth interpretation of the investment logic of the consortium's participation in the privatization of Twitter
CRS-2674,CRS-4000
Pytorch——报错解决:RuntimeError: Expected all tensors to be on the same device, but found at least two
慢慢就学会了
Source Insight4 中文乱码怎么办?
SecureCRT print add timestamp
Classic examples of C language: 11-20 examples: finding the maximum and minimum values of two-dimensional arrays, finding prime numbers in arrays, compiling perpetual calendars, sorting array elements
Recommendation on quick impact methods for sophomores who don't fail (data structure + group count + operating system + algorithm + database + network count)
CRS-2674,CRS-4000
【Golang | gRPC】gRPC-Client Streaming客户端流实战
Maximum return alternative method
Linux -- connecting to MySQL database and basic operations
Nc20566 [scoi2010] games
Rust opencv drawing and display
Open source data set - flower classification data set
本周投融报:多风投机构完成募资 Web3.0赛道继续吸金
Reversingkr WP (7)
编程老司机带你玩转 CompletableFuture 异步编程
Network protocol -- concept and function analysis of seven layer, five layer and four layer protocols
grid布局