PPP数据链路层协议的应用

2024-11-09 02:28:39

1、配置路由器R1Router>enRouter#conf tRouter(config)拭貉强跳#hostname R1 改名R1(config)#int s 0/3/0 愉桴狁焕进入接口模式R1(config-if)#description link to R2 描述连接到R2R1(config-if)#ip address 192.168.2.1 255.255.255.0端口赋予IP地址R1(config-if)#encapsulation ppp 配置PPP协议R1(config-if)#ppp authentication chap 要求进行CHAP认证R1(config-if)#no shut 激活R1(config-if)#

PPP数据链路层协议的应用

3、配置路由器2Router>enRouter#conf tRouter(config)#hostname R2伊怕锱鳏R2(config)#username lim password limR2(config)#int s 0/3/0R2(config-if)#description link to R1R2(config-if)#ip address 192.168.2.2 255.255.255.0R2(config-if)#encapsulation pppR2(config-if)#ppp authentication chapR2(config-if)#no shut

PPP数据链路层协议的应用

5、启用RIP路由协议,两个路由器要配置RIP。配置路由器R2:R2>enR2#conf tR2(config)#router ripR2(config-router)#version 2R2(config-router)#network 192.168.1.0R2(config-router)#network 192.168.2.0R2(config-router)#end

PPP数据链路层协议的应用

7、查看R2的配置R2#show running-config

PPP数据链路层协议的应用
猜你喜欢