! PPP

! R1
en
conf t
!
host R1
username R2 password xxxxx
!
int s0/0
ip addr 192.168.1.1 255.255.255.0
encapsulation ppp
ppp authentication chap
no shut
!
end




! R2
en
conf t
!
host R2
username R1 password xxxxx
!
int s0/0
ip addr 192.168.1.2 255.255.255.0
encapsulation ppp
ppp authentication chap
no shut
!
end





R2#
*Mar 1 00:31:19.311: Se0/0 CHAP: O CHALLENGE id 2 len 23 from "R2"
*Mar 1 00:31:19.311: Se0/0 CHAP: I CHALLENGE id 20 len 23 from "R1"
*Mar 1 00:31:19.331: Se0/0 CHAP: Using hostname from unknown source
*Mar 1 00:31:19.331: Se0/0 CHAP: Using password from AAA
*Mar 1 00:31:19.335: Se0/0 CHAP: O RESPONSE id 20 len 23 from "R2"
*Mar 1 00:31:19.475: Se0/0 CHAP: I RESPONSE id 2 len 23 from "R1"
*Mar 1 00:31:19.479: Se0/0 CHAP: I SUCCESS id 20 len 4
*Mar 1 00:31:19.491: Se0/0 PPP: Sent CHAP LOGIN Request
*Mar 1 00:31:19.499: Se0/0 PPP: Received LOGIN Response PASS
*Mar 1 00:31:19.507: Se0/0 PPP: Sent LCP AUTHOR Request
*Mar 1 00:31:19.511: Se0/0 PPP: Sent IPCP AUTHOR Request
*Mar 1 00:31:19.523: Se0/0 LCP: Received AAA AUTHOR Response PASS
*Mar 1 00:31:19.527: Se0/0 IPCP: Received AAA AUTHOR Response PASS
*Mar 1 00:31:19.531: Se0/0 CHAP: O SUCCESS id 2 len 4
*Mar 1 00:31:19.539: Se0/0 PPP: Sent CDPCP AUTHOR Request
*Mar 1 00:31:19.559: Se0/0 CDPCP: Received AAA AUTHOR Response PASS
*Mar 1 00:31:19.591: Se0/0 PPP: Sent IPCP AUTHOR Request
*Mar 1 00:31:20.531: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0,
changed state to up
R2#
arrow
arrow
    全站熱搜

    taichenyu 發表在 痞客邦 留言(0) 人氣()