搜索
您的当前位置:首页正文

chap双向验证

来源:意榕旅游网
完成chap双向验证,实现两路由器可以相互ping通。

拓扑图:

配置如下: R1:

Router>en Router#conf t

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R1

R1(config)#username R2 password ccna R1(config)#int s1/0

R1(config-if)#ip add 192.168.1.2 255.255.255.0 R1(config-if)#encapsulation ppp

R1(config-if)#ppp authentication chap R1(config-if)#no shut

%LINK-5-CHANGED: Interface Serial1/0, changed state to down R1(config-if)# R2:

Router>en Router#conf t

Enter configuration commands, one per line. End with CNTL/Z. Router(config)#hostname R2

R2(config)#username R1 password ccna R2(config)#int s1/0

R2(config-if)#ip add 192.168.1.3 255.255.255.0 R2(config-if)#encapsulation ppp

R2(config-if)#ppp authentication chap R2(config-if)#no shut

R2(config-if)#

%LINK-5-CHANGED: Interface Serial1/0, changed state to up

R2(config-if)#

%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial1/0, changed state to up

验证是否ping通: R1:

R1#ping 192.168.1.2

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.2, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 2/15/69 ms R1# R2:

R2#ping 192.168.1.3

Type escape sequence to abort.

Sending 5, 100-byte ICMP Echos to 192.168.1.3, timeout is 2 seconds: !!!!!

Success rate is 100 percent (5/5), round-trip min/avg/max = 2/7/27 ms R2#

注意: 1.

2.

因篇幅问题不能全部显示,请点此查看更多更全内容

Top