网络推广公司官网正规seo关键词排名网络公司
一、实验拓扑
二、实验需求
- R1和R2使用 PPP链路直连,R2 和 R3 把2条 PPP链路捆绑为 PPP MP 直连
- 按照图示配置 IP地址
- R2对R1的PPP进行单向chap验证
- R2对R3的PPP进行双向chap验证
三、实验思路
- IP地址配置
- 做chap验证
四、实验步骤
1.配置IP地址
[r1]int S4/0/0[r1-Serial4/0/0]ip add 192.168.1.1 24
[r2]int S4/0/0[r1-Serial4/0/0]ip add 192.168.1.2 24
#将R2和R3的两条PPP链路捆绑,并配置其IP地址
[r2]int Mp-group 0/0/0[r2-Mp-group0/0/0]ip add 192.168.2.1 24[r3]int Mp-group 0/0/0[r3-Mp-group0/0/0]ip add 192.168.2.2 24[r3-Mp-group0/0/0]q
[r3]int s4/0/0 [r3-Serial4/0/0]ppp mp Mp-group 0/0/0.[r3-Serial4/0/0]int s3/0/0[r3-Serial3/0/0]ppp mp Mp-group 0/0/0
2.做chap验证
#R2对R1的单向chap验证,R2对主验证方,R1为被验证方
[r2]aaa[r2-aaa]local-user wangdaye password cipher 123456 privilege level 15Info: Add a new user.[r2-aaa]local-user wangdaye service-type ppp[r2-aaa]q[r2]int s4/0/0[r2-Serial4/0/0]ppp authentication-mode chap[r2-Serial4/0/0]q
[r1]int s4/0/0[r1-Serial4/0/0]ppp chap user wangdaye [r1-Serial4/0/0]ppp chap password cipher 123456[r1-Serial4/0/0]q[r1]int s4/0/0[r1-Serial4/0/0]shutdown[r1-Serial4/0/0]undo shutdown
#R2对R3进行双向chap验证,R2为主验证方时,
[r2]aaa[r2-aaa]local-user zhangdaye password cipher 123456Info: Add a new user.[r2-aaa]local-user zhangdaye service-type ppp[r2-aaa]q[r2]int s4/0/1[r2-Serial4/0/1]ppp authentication-mode chap[r2-Serial4/0/1]int s3/0/0[r2-Serial3/0/0]ppp authentication-mode chap[r2-Serial3/0/0]q
#R3为被验证方
[r3]int s4/0/0[r3-Serial4/0/0]ppp chap user zhangdaye[r3-Serial4/0/0]ppp chap password cipher 123456[r3-Serial4/0/0]int s3/0/0 [r3-Serial3/0/0]ppp chap user zhangdaye[r3-Serial3/0/0]ppp chap password cipher 123456[r3-Serial3/0/0]q
#R3为主验证方时
[r3]aaa [r3-aaa]local-user lidaye password cipher 123456Info: Add a new user.[r3-aaa]local-user lidaye service-type ppp[r3-aaa]q[r3]int s4/0/0 //进入各接口进行chap验证[r3-Serial4/0/0]ppp authentication-mode chap[r3-Serial4/0/0]int s3/0/0[r3-Serial3/0/0]ppp authentication-mode chap[r3-Serial3/0/0]shutdown[r3-Serial3/0/0]undo shutdown[r3-Serial3/0/0]int s4/0/0[r3-Serial4/0/0]shutdown[r3-Serial4/0/0]undo shutdown
#R2为被验证方
[r2]int s4/0/1[r2-Serial4/0/1]ppp chap user lidaye //添加用户[r2-Serial4/0/1]ppp chap password cipher 123456//设置密码[r2-Serial4/0/1]int s3/0/0[r2-Serial3/0/0]ppp chap user lidaye[r2-Serial3/0/0]ppp chap password cipher 123456[r2-Serial3/0/0]shutdown[r2-Serial3/0/0]undo shutdown[r2-Serial4/0/1]int s4/0/1[r2-Serial4/0/1]shutdown[r2-Serial4/0/1]undo shutdown
测试