实验十二 配置PPP协议
要求:
配置PPP协议,实现广域网连接。然后,分别采用PAP和CHAP进行验证,最后启用OSPF协议,实现局域网之间相互通信。
基础配置
为路由器R1、R2设置相应的IP地址。
配置PPP与PAP验证
R1配置
interface Serial1/0
ip address 172.16.2.1 255.255.255.0
encapsulation ppp
ppp pap sent-username r1 password 123 // 被验证方:发送认证信息
R2配置
interface Serial1/0
ip address 172.16.2.2 255.255.255.0
encapsulation ppp
ppp authentication pap // 主验证方: 声明认证方式 pap
username r1 password 123
配置PPP与CHAP验证 ( 预共享密钥 )
R1配置
interface Serial1/0
ip address 172.16.2.1 255.255.255.0
encapsulation ppp
username r2 password 123
对方名字 相同密钥
R2配置
interface Serial1/0
ip address 172.16.2.2 255.255.255.0
encapsulation ppp
ppp authentication chap // 主验证方: 声明认证方式 chap
username r1 password 123
对方名字 相同密钥
启用OSPF协议,实现局域网之间相互通信。
( 略 )
实验十三 配置Frame-relay协议
要求:
配置Frame-relay协议,实现广域网连接。然后,启用RIP协议,实现局域网之间相互通信。
基础配置
为路由器R1、R2和R3设置相应的IP地址。
全互连模式下Frame-relay的配置
1. 广域网接口
R1(config )# int s0
# ip add 172.16.2.1 255.255.255.0
# encapsulation frame-relay cisco / IETF 封装帧中继 ( 默认类型cisco )
# no shut
2. 配置RIP协议
R1(config )# router rip
# version 2
# net 172.16.0.0
R2和R3的配置,同R1,略。
中央-分支模式下Frame-relay的配置
1. 广域网接口
R1(config )# int s0
# no ip add
# encapsulation frame-relay 封装帧中继
# no shut
R1(config )# int s0.1 point-to-point
# ip add 172.16.2.1 255.255.255.0
# frame-relay interface-dlci 102 将102与子接口S0.1相关联(默认与S0相关联)
R1(config )# int s0.2 point-to-point
# ip add 172.16.5.1 255.255.255.0
# frame-relay interface-dlci 103 将103与子接口S0.2相关联
R2的配置不变,略。
R3的配置:将R3的S1/0接口IP改为172.16.5.2/24 即可。
2. 配置RIP协议
R(config )# router rip
# version 2
# net 172.16.0.0