欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

思科CCNA路由器配置——PAP與CHAP認(rèn)證配置實(shí)驗(yàn)詳解

  發(fā)布時(shí)間:2020-03-04 15:02:34   作者:Stalk   我要評論
這篇文章主要介紹了思科CCNA路由器PAP與CHAP認(rèn)證配置實(shí)驗(yàn),結(jié)合實(shí)例形式分析了思科路由器PAP與CHAP認(rèn)證配置具體步驟、配置命令與相關(guān)操作注意事項(xiàng),需要的朋友可以參考下

本文實(shí)例講述了思科CCNA路由器PAP與CHAP認(rèn)證配置、分享給大家供大家參考,具體如下:

一、實(shí)驗(yàn)?zāi)康?/strong>:掌握PAPCHAP認(rèn)證配置

二、拓?fù)鋱D

三、具體步驟配置:

(1)R1路由器配置:

Router>enable  --進(jìn)入特權(quán)模式

Router#configure terminal  --進(jìn)入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R1  --修改路由器名為R1

R1(config)#interface l0  --進(jìn)入回環(huán)端口

R1(config-if)#ip address 192.168.1.254 255.255.255.0  --配置ip地址

R1(config-if)#no shutdown  --激活端口

R1(config-if)#exit  --返回上一級

R1(config)#interface s0/0/0  --進(jìn)入端口

R1(config-if)#ip address 192.168.12.1 255.255.255.0  --為端口配置ip地址

R1(config-if)#clock rate 64000  --設(shè)置時(shí)鐘同步速率

R1(config-if)#no shutdown  --激活端口

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down

R1(config-if)#exit  --返回上一級

R1(config)#route rip  --開啟rip服務(wù)

R1(config-router)#version 2  --版本2

R1(config-router)#no auto-summary  --關(guān)閉路由自動(dòng)匯總

R1(config-router)#network 192.168.1.0  --添加直連網(wǎng)段到rip

R1(config-router)#network 192.168.12.0

R1(config-router)#exit  --返回上一級

R1(config)#username abc1 password 456  --在中心路由器R1上為遠(yuǎn)程路由器R2設(shè)置用戶名和密碼

R1(config)#interface s0/0/0  --進(jìn)入端口

R1(config-if)#encapsulation ppp  --封裝端口為ppp

R1(config-if)#ppp authentication pap  --在R1上,配置PAP 驗(yàn)證

R1(config-if)#ppp pap sent-username abc password 123  --在中心路由器R1上為遠(yuǎn)程路由器R2設(shè)置用戶名和密碼

R1(config-if)#end  --返回特權(quán)模式

%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

R1#

%SYS-5-CONFIG_I: Configured from console by console

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

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

(2)R2路由器配置: 

Router>enable  --進(jìn)入特權(quán)模式

Router#configure terminal  --進(jìn)入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R2  --修改路由器名為R2

R2(config)#interface l0  --進(jìn)入回環(huán)端口

R2(config-if)#ip address 192.168.2.254 255.255.255.0  --配置ip地址

R2(config-if)#no shutdown  --激活端口

R2(config-if)#exit  --返回上一級

R2(config)#interface s0/0/0  --進(jìn)入端口

R2(config-if)#ip address 192.168.12.2 255.255.255.0  --為端口配置ip地址

R2(config-if)#no shutdown  --激活端口

R2(config-if)#interface s0/0/1  --進(jìn)入端口

R2(config-if)#ip address 192.168.24.2 255.255.255.0  --為端口配置ip地址

R2(config-if)#clock rate 64000  --設(shè)置時(shí)鐘同步速率

R2(config-if)#no shutdown  --激活端口

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down

R2(config-if)#exit  --返回上一級

R2(config)#route rip  --開啟rip協(xié)議

R2(config-router)#version 2  --版本2

R2(config-router)#no auto-summary  --關(guān)閉路由自動(dòng)匯總

R2(config-router)#network 192.168.2.0  --添加直連網(wǎng)段到rip

R2(config-router)#network 192.168.12.0

R2(config-router)#network 192.168.24.0

R2(config-router)#exit  --返回上一級

R2(config)#username abc password 123  --在R2上為R1設(shè)置用戶名和密碼

R2(config)#username R3 password cisco  --在R2上為R3設(shè)置用戶名和密碼(注意兩端密碼要相同)

R2(config)#interface s0/0/0  --進(jìn)入端口

R2(config-if)#encapsulation ppp  --封裝端口為PPP協(xié)議

R2(config-if)#ppp authentication pap  --配置PAP驗(yàn)證

R2(config-if)#ppp pap sent-username abc1 password 456  --在R2上為R1設(shè)置用戶名和密碼

R2(config-if)#interface s0/0/1  --進(jìn)入端口

R2(config-if)#encapsulation ppp  --封裝端口為ppp協(xié)議

R2(config-if)#ppp authentication chap  --配置chap驗(yàn)證

R2(config-if)#end  --返回特權(quán)模式

R2#

%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

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

%SYS-5-CONFIG_I: Configured from console by console

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

R2#

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

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

(3)R3路由器配置:

Router>enable  --進(jìn)特權(quán)模式

Router#configure terminal  --進(jìn)入全局配置模式

Enter configuration commands, one per line. End with CNTL/Z.

Router(config)#hostname R3  --修改路由器名為R3

R3(config)#interface l0  --進(jìn)入回環(huán)端口

R3(config-if)#ip address 192.168.3.254 255.255.255.0  --為端口配置ip地址

R3(config-if)#no shutdown  --激活端口

R3(config-if)#exit  --返回上一級

R3(config)#interface S0/0/0  --進(jìn)入端口

R3(config-if)#ip address 192.168.24.1 255.255.255.0  --為端口配置ip地址

R3(config-if)#no shutdown  --激活端口

R3(config-if)#exit  --返回上一級

R3(config)#route rip  --開啟rip協(xié)議

R3(config-router)#version 2  --版本2

R3(config-router)#no auto-summary  --關(guān)閉路由自動(dòng)匯總

R3(config-router)#network 192.168.3.0  --添加直連網(wǎng)段到rip

R3(config-router)#network 192.168.24.0

R3(config-router)#exit  --返回上一級

R3(config)#username R2 password cisco  --在R3上為R2設(shè)置用戶名和密碼

R3(config)#interface s0/0/0  --進(jìn)入端口

R3(config-if)#encapsulation ppp  --封裝端口為ppp協(xié)議

R3(config-if)#ppp authentication chap  --配置chap驗(yàn)證

R3(config-if)#end  --返回特權(quán)模式

%LINK-5-CHANGED: Interface Loopback0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface Loopback0, changed state to up

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

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

R3#

%SYS-5-CONFIG_I: Configured from console by console

四、驗(yàn)證測試

1、測試是否開啟ppp認(rèn)證

(1)R1:

(2)R2:

(3)R3:

2、查看R1S0/0/0端口信息

如圖,紅色標(biāo)記處表示是PPP認(rèn)證

3、測試全網(wǎng)是否互通:

(1)R1R2

(2)R2R3

(3)R3R1

結(jié)果:全網(wǎng)互通成功?。。?/strong>

相關(guān)文章

最新評論