一、 背景描述
你是公司的网络管理员,公司为了满足不断增长的业务需求,申请了专线接入,你的客户端路由器与ISP进行链路协商时要验证身份,配置路由器保证链路建立并考虑其安全性。
二、 需求分析
如图所示网络拓扑是模拟某大学专线接入Internet网络的工程项目场景,图中左边RA路由器设备是校园网络接入设备,右边RB路由器是ISP运营商接入设备,需要正确安全和配置Internet接入链路层协议,针对PPP协议接入中启动CHAP验证,保证网络安全有效接入。
三、 网络拓扑设计
一、 项目实施
1、 实施设备
设备名称 | 设备品牌 | 设备型号 | 设备数量 |
路由器 | 锐捷 | RG-RSR20 | 2 |
计算机 | 联想 | 联想 | 2 |
2、 配置过程
A. 路由器RA的配置
Ruijie>enable 进入特权模式
Ruijie#configure 进入全局模式
Ruijie(config)#hostname RA 配置路由器的名称为RA
RA(config)#interface fastEthernet 0/0 进入f0/0端口
RA(config-if-FastEthernet0/0)#ip address 192.168.10.1 255.255.255.0配置端口的IP地址
RA(config-if-FastEthernet0/0)#no shutdown 开启端口
RA(config-if-FastEthernet0/0)#exit
RA(config)#
RA(config)#interface serial 4/0 进入S4/0端口
RA(config-if-Serial4/0)#ip address 172.16.1.1 255.255.255.0 配置接口的IP地址
RA(config-if-Serial4/0)#encapsulation ppp 封装PPP协议
RA(config-if-Serial4/0)#ppp authentication chap 启用CHAP认证
RA(config-if-Serial4/0)#no shutdown 开启端口
RA(config-if-Serial4/0)#exit
RA(config)#
RA(config)#username RB password 0 123456 配置认证配置为123456
RA(config)#router rip 启用RIP路由协议
RA(config-router)#network 192.168.10.0 宣告路由
RA(config-router)#network 172.16.1.0 宣告路由
RA(config-router)#version 2 配置RIP的版本号为2版本
RA(config-router)#no auto-summary 关闭自动汇总功能
RA(config-router)#exit
RA(config)#
B. 路由器RB的配置
Ruijie>
Ruijie>enable 进入特权模式
Ruijie#configure 进入全局模式
Ruijie(config)#hostname RB 配置路由器的名称为RB
RB(config)#interface fastEthernet 0/0 进入f0/0端口模式
RB(config-if-FastEthernet0/0)#ip address 192.168.20.1 255.255.255.0配置接口的IP地址
RB(config-if-FastEthernet0/0)#no shutdown 开启端口
RB(config-if-FastEthernet0/0)#exit
RB(config)#
RB(config)#interface serial 4/0 进入S4/0端口配置模式
RB(config-if-Serial4/0)#ip address 172.16.1.2 255.255.255.0配置接口的IP地址
RB(config-if-Serial4/0)#encapsulation ppp 封装PPP协议
RB(config-if-Serial4/0)#ppp authentication chap 启用CHAP认证
RB(config-if-Serial4/0)#no shutdown 开启端口
RB(config-if-Serial4/0)#exit
RB(config)#
RB(config)#username RA password 0 123456 配置认证口令为123456
RB(config)#router rip 启用RIP路由协议
RB(config-router)#network 192.168.20.0 宣告路由
RB(config-router)#network 172.16.1.0宣告路由
RB(config-router)#version 2 配置RIP路由协议的版本号为2版本
RB(config-router)#no auto-summary 关闭自动汇总功能
RB(config-router)#exit
RB(config)#
C. 测试
在PC2上pingPC1,结果如下
版权声明:本文著作权归新newPPP平台所有,NewPPP小编欢迎分享本文,您的收藏是对我们的信任,newppp谢谢大家支持!