ATEN-Chapter 6 PPP protocol (Point-to-Point Protocol)

Source: Internet
Author: User

Tool used in the experiment: Xiao fan Simulator
Experiments 1, 2, and 3: (same image)

★Task 1: Configure PAP★
☆① ☆
R1
Router>
Router> enable
Router # config terminal
Router (config) # hostname R1-jin
R1-jin (config) # interface s0/0
R1-jin (config-if) # encapsulation ppp -- configure PPP protocol
R1-jin (config-if) # ip address 192.168.1.1 255.0.0.0
R1-jin (config-if) # clock rate 128000 -- configure the link rate (DCE interface side)
R1-jin (config-if) # ppp authentication pap -- enable PAP authentication
R1-jin (config-if) # no shutdown
R1-jin (config-if) # exit

R1-jin (config) # username jinliuli password 123 -- add the username and password of the authenticated user
R1-jin (config) # end

R1-jin # show interface s0/0

R2
Router>
Router> enable
Router # config terminal
Router (config) # hostname R2-jin
R2-jin (config) # interface s0/0
R2-jin (config-if) # encapsulation ppp
R2-jin (config-if) # ip address 192.168.1.2 255.0.0.0
R2-jin (config-if) # no shutdown

R2-jin (config-if) # ppp pap sent-username jinliuli password 123 -- configure the user name and password required for PAP Authentication
R2-jin (config-if) # end

R2-jin # show interface s0/0 -- View


Task 2: Configure CHAP
☆② ☆
R1
Router>
Router> enable
Router # config terminal
Router (config) # hostname R1-jin
R1-jin (config) # interface s0/0
R1-jin (config-if) # encapsulation ppp
R1-jin (config-if) # clock rate 128000
R1-jin (config-if) # ip address 192.168.1.1 255.255.255.0
R1-jin (config-if) # ppp authentication chap
R1-jin (config-if) # ppp chap hostname li -- specifies the user name for the authenticated party to use this name
R1-jin (config-if) # no shutdown
R1-jin (config-if) # exit

R1-jin (config) # username R2-jin password 456
R1-jin (config) # exit

R1-jin # show interface s0/0

R2
Router>
Router> enable
Router # config terminal
Router (config) # hostname R2-jin
R2-jin (config) # interface s0/0
R2-jin (config-if) # ip address 192.168.1.2 255.0.0.0
R2-jin (config-if) # encapsulation ppp
R2-jin (config-if) # no shutdown
R2-jin (config-if) # exit

R2-jin (config) # username li password 456
R2-jin (config) # exit

R2-jin # show interface s0/0


Task 3: Configure address negotiation
☆③ ☆
R1
Router>
Router> enable
Router # config terminal
Router (config) # hostname R1-jin
R1-jin (config) # interface s0/0
R1-jin (config-if) # ip address 192.168.1.1 255.0.0.0
R1-jin (config-if) # encapsulation ppp
R1-jin (config-if) # clock rate 128000
R1-jin (config-if) # peer default ip address 192.168.1.20
R1-jin (config-if) # no shutdown
R1-jin (config-if) # exit
R1-jin (config) # end
R1-jin # show interface s0/0

R2
Router>
Router> enable
Router # config terminal
Router (config) # hostname R2-jin
R2-jin (config) # interface s0/0
R2-jin (config-if) # encapsulation ppp
R2-jin (config-if) # ip address negotiated
R2-jin (config-if) # no shutdown
R2-jin (config-if) # end
R2-jin # show interface s0/0

Experiment 4:

1. Configure PAP between R1 and R2
R1
Router>
Router> enable
Router # config terminal
Router (config) # hostname R1-jin
R1-jin (config) # interface s0/0
R1-jin (config-if) # encapsulation ppp
R1-jin (config-if) # ip address 10.0.0.1 255.0.0.0
R1-jin (config-if) # clock rate 128000
R1-jin (config-if) # ppp authentication pap
R1-jin (config-if) # no shutdown
R1-jin (config-if) # exit
R1-jin (config) # username jinliuli password 123
R1-jin (config) # exit
R1-jin # show interface s0/0
R1-jin # ping 10.0.0.2
R2
Router>
Router> enable
Router # config terminal
Router (config) # hostname R2-jin
R2-jin (config) # interface s0/0
R2-jin (config-if) # encapsulation ppp
R2-jin (config-if) # ip address 10.0.0.2 255.0.0.0
R2-jin (config-if) # no shutdown
R2-jin (config-if) # ppp pap sent-username jinliuli password 123
R2-jin (config-if) # end
R2-jin # show interface s0/0
R2-jin # ping 10.0.0.1
Ping each other!
Ii. Configure CHAP between R3 and R2
R3
Router>
Router> enable
Router # config terminal
Router (config) # hostname R3-jin
R3-jin (config) # interface s0/1
R3-jin (config-if) # encapsulation ppp
R3-jin (config-if) # ip address 255.0.0.2 255.0.0.0
R3-jin (config-if) # clock rate 128000
R3-jin (config-if) # ppp authentication chap
R3-jin (config-if) # ppp chap hostname haohao
R3-jin (config-if) # no shutdown
R3-jin (config-if) # exit
R3-jin (config) # username R2-jin password 987
R3-jin (config) # end
R3-jin # show interface s0/1
R3-jin # ping 255.0.0.1
R2
R2-jin # config terminal
R2-jin (config) # interface s0/1
R2-jin (config-if) # encapsulation ppp
R2-jin (config-if) # ip address 255.0.0.1 255.0.0.0
R2-jin (config-if) # no shutdown
The R2-jin (config-if) # username haohao password 987
R2-jin (config) # end
R2-jin # show interface s0/1
R2-jin # ping 255.0.0.2
Ping each other !!
OK. The experiment is complete !!!
Lab 5:

1. Configure PAP between R1 and R2; configure CHAP between R2 and R3
R1
Router>
Router> enable
Router # config terminal
Router (config) # hostname R1-jin
R1-jin (config) # interface s0/0
R1-jin (config-if) # encapsulation ppp
R1-jin (config-if) # ip address 10.0.0.1 255.0.0.0
R1-jin (config-if) # clock rate 128000
R1-jin (config-if) # ppp authentication pap
R1-jin (config-if) # no shutdown
R1-jin (config-if) # exit
R1-jin (config) # username jinliuli password 123
R1-jin (config) # exit
R1-jin # show interface s0/0
R1-jin # ping 10.0.0.2
R2
Router>
Router> enable
Router # config terminal
Router (config) # hostname R2-jin
R2-jin (config) # interface s0/0
R2-jin (config-if) # encapsulation ppp
R2-jin (config-if) # ip address 10.0.0.2 255.0.0.0
R2-jin (config-if) # no shutdown
R2-jin (config-if) # ppp pap sent-username jinliuli password 123
R2-jin (config-if) # end
R2-jin # show interface s0/0
R2-jin # ping 10.0.0.1
R3
Router>
Router> enable
Router # config terminal
Router (config) # hostname R3-jin
R3-jin (config) # interface s0/1
R3-jin (config-if) # encapsulation ppp
R3-jin (config-if) # ip address 255.0.0.2 255.0.0.0
R3-jin (config-if) # clock rate 128000
R3-jin (config-if) # ppp authentication chap
R3-jin (config-if) # ppp chap hostname haohao
R3-jin (config-if) # no shutdown
R3-jin (config-if) # exit
R3-jin (config) # username R2-jin password 987
R3-jin (config) # end
R3-jin # show interface s0/1
R3-jin # ping 255.0.0.1
R2
R2-jin # config terminal
R2-jin (config) # interface s0/1
R2-jin (config-if) # encapsulation ppp
R2-jin (config-if) # ip address 255.0.0.1 255.0.0.0
R2-jin (config-if) # no shutdown
The R2-jin (config-if) # username haohao password 987
R2-jin (config) # end
R2-jin # show interface s0/1
R2-jin # ping 255.0.0.2
2. Set IP addresses for F1/0 (Ethernet Interface) of the three routers respectively, and configure dynamic routes
R1
R1-jin # config terminal
R1-jin (config) # interface f1/0
R1-jin (config-if) # ip address 30.0.0.1 255.0.0.0
R1-jin (config-if) # no shutdown
R1-jin (config-if) # exit
R1-jin (config) # router rip
R1-jin (config-router) # network 10.0.0.0
R1-jin (config-router) # network 30.0.0.0
R1-jin (config-router) # end
R1-jin # show ip route
R2
R2-jin # config terminal
R2-jin (config) # interface f1/0
R2-jin (config-if) # ip address 40.0.0.1 255.0.0.0
R2-jin (config-if) # no shutdown
R2-jin (config-if) # exit
R2-jin (config) # router rip
R2-jin (config-router) # network 10.0.0.0
R2-jin (config-router) # network route 0.0.0
R2-jin (config-router) # network 40.0.0.0
R2-jin (config-router) # end
R2-jin # show ip route
R3
R3-jin # config terminal
R3-jin (config) # interface f1/0
R3-jin (config-if) # ip address 50.0.0.1 255.0.0.0
R3-jin (config-if) # no shutdown
R3-jin (config-if) # exit
R3-jin (config) # router rip
R3-jin (config-router) # network route 0.0.0
R3-jin (config-router) # network 50.0.0.0
R3-jin (config-router) # end
R3-jin # show ip route
3. Configure the PC for verification: Full Netcom mail
VPCS 1>
VPCS 1> show
VPCS 1> ip 30.0.0.2 30.0.0.1 8
VPCS 1> 2
VPCS 2> ip 40.0.0.2 40.0.0.1 8
VPCS 2> 3
VPCS 3> ip 50.0.0.2 50.0.0.1 8
VPCS 3> show
VPCS 3> ping 40.0.0.2
40.0.0.2 icmp_seq = 1 timeout
40.0.0.2 icmp_seq = 2 time = 94.000 MS
40.0.0.2 icmp_seq = 3 time = 125.000 MS
40.0.0.2 icmp_seq = 4 time = 94.000 MS
40.0.0.2 icmp_seq = 5 time = 110.000 MS
VPCS 3> ping 30.0.0.2
30.0.0.2 icmp_seq = 1 timeout
30.0.0.2 icmp_seq = 2 time = 125.000 MS
30.0.0.2 icmp_seq = 3 time = 125.000 MS
30.0.0.2 icmp_seq = 4 time = 156.000 MS
30.0.0.2 icmp_seq = 5 time = 156.000 MS
VPCS 3> 1
VPCS 1> ping 40.0.0.2
40.0.0.2 icmp_seq = 1 time = 94.000 MS
40.0.0.2 icmp_seq = 2 time = 93.000 MS
40.0.0.2 icmp_seq = 3 time = 94.000 MS
40.0.0.2 icmp_seq = 4 time = 94.000 MS
40.0.0.2 icmp_seq = 5 time = 141.000 MS
OK !!!

Author: ""

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.