ü 配置RA和RB广域网接口使用PPP封装
ü 并配置PPP封装的认证(CHAP)
ü 验证广域网配置。
试验拓扑 实验过程: 在RouterA上Router>en
Router#config t
Router(config)#host
Router(config) #hostname routerA 更改路由器名称
RouterA(config)#username RouterB password todd username必须是对方路由器的名字
RouterA(config)#interface serial 2/0
RouterA(config-if)#encapsulation ?
frame-relay Frame Relay networks
hdlc Serial HDLC synchronous
ppp Point-to-Point protocol
RouterA(config-if)#encapsulation ppp 使用PPP封装
RouterA(config-if)#ppp authentication ?
chap Challenge Handshake Authentication Protocol <CHAP>
pap Password Authentication Protocol <PAP>
RouterA(config-if)#ppp authentication chap 身份验证方法
RouterA(config-if)#ip address 172.16.1.1 255.255.255.0
RouterA(config-if)#clock rate 64000
RouterA(config-if)#no sh
在RouterB上Router>en
Router#config t
Router(config)#hostname RouterB 更改路由的名字
RouterB(config)#username RouterA password todd username必须是对方路由器的名字
RouterB(config)#interface serial 3/0
RouterB(config-if)#encapsulation ppp
RouterB(config-if)#ppp authentication chap
RouterB(config-if)#ip address 172.16.1.2 255.255.255.0
RouterB(config-if)#no sh
RouterB(config-if)#
查看 在RouterA上RouterA#show interfaces serial 2/0
Serial2/0 is up, line protocol is up (connected)
Hardware is HD64570
Internet address is 172.16.1.1/24
MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec, rely 255/255, load 1/255
Encapsulation PPP, loopback not set, keepalive set (10 sec)
LCP Open 链路控制协议 Open状态
Open: IPCP, CDPCP 网络控制协议IP CDP协议
Last input never, output never, output hang never
Last clearing of "show interface" counters never
Input queue: 0/75/0 (size/max/drops); Total output drops: 0
Queueing strategy: weighted fair
Output queue: 0/1000/64/0 (size/max total/threshold/drops)
Conversations 0/0/256 (active/max active/max total)
Reserved Conversations 0/0 (allocated/max allocated)
5 minute input rate 0 bits/sec, 0 packets/sec
5 minute output rate 0 bits/sec, 0 packets/sec
0 packets input, 0 bytes, 0 no buffer
Received 0 broadcasts, 0 runts, 0 giants, 0 throttles
0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort
0 packets output, 0 bytes, 0 underruns
0 output errors, 0 collisions, 1 interface resets
0 output buffer failures, 0 output buffers swapped out
0 carrier transitions
DCD=up DSR=up DTR=up RTS=up CTS=up