课堂笔记

2021.11.5 -H3C 配置PPP互联

配置普通PPP

[R1]local-user user1 class network
New local user added.
[R1-luser-network-user1]password simple 123123
[R1-luser-network-user1]service-t
[R1-luser-network-user1]service-type ppp
[R1-luser-network-user1]quit

[R1]int s1/0
[R1-Serial1/0]link-protocol ppp
[R1-Serial1/0]ip add 1.1.1.1 8
[R1-Serial1/0]un shutdown
[R1-Serial1/0]quit

[H3C]sys R4
[R4]int s1/0
[R4-Serial1/0]ip add 1.1.1.2 8
[R4-Serial1/0]link
[R4-Serial1/0]link-protocol ppp
[R4-Serial1/0]ppp pap local-user user1 password simple 123123

[R4-Serial1/0]quit
[R4]dis int s1/0
Serial1/0
Current state: UP
Line protocol state: UP
Description: Serial1/0 Interface
Bandwidth: 64 kbps
Maximum transmission unit: 1500
Hold timer: 10 seconds, retry times: 5
Internet address: 1.1.1.2/8 (primary)
Link layer protocol: PPP
LCP: opened, IPCP: opened
Output queue - Urgent queuing: Size/Length/Discards 0/100/0
Output queue - Protocol queuing: Size/Length/Discards 0/500/0
Output queue - FIFO queuing: Size/Length/Discards 0/75/0
Last link flapping: 0 hours 7 minutes 40 seconds
Last clearing of counters: Never
Current system time:2021-11-05 17:59:46
Last time when physical state changed to up:2021-11-05 17:52:05
Last time when physical state changed to down:2021-11-05 17:51:46

配置CHAP认证


[R1]int s1/0
[R1-Serial1/0]ppp authentication chap domain system
[R1-Serial1/0]ppp chap user user1
[R1-Serial1/0]quit

 

[R4]int s1/0
[R4-Serial1/0]ppp authentication chap
[R4-Serial1/0]ppp chap user user1
[R4-Serial1/0]quit
[R4]dis int s1/0
Serial1/0
Current state: UP
Line protocol state: UP
Description: Serial1/0 Interface
Bandwidth: 64 kbps
Maximum transmission unit: 1500
Hold timer: 10 seconds, retry times: 5
Internet address: 11.11.13.2/24 (primary)
Link layer protocol: PPP
LCP: opened, IPCP: opened
Output queue - Urgent queuing: Size/Length/Discards 0/100/0
Output queue - Protocol queuing: Size/Length/Discards 0/500/0
Output queue - FIFO queuing: Size/Length/Discards 0/75/0
Last link flapping: 0 hours 6 minutes 55 seconds
Last clearing of counters: Never
Current system time:2021-11-05 20:21:36
Last time when physical state changed to up:2021-11-05 20:14:40
Last time when physical state changed to down:2021-11-05 20:14:31

[R4]ping 11.11.13.1
Ping 11.11.13.1 (11.11.13.1): 56 data bytes, press CTRL_C to break
56 bytes from 11.11.13.1: icmp_seq=0 ttl=255 time=6.000 ms
56 bytes from 11.11.13.1: icmp_seq=1 ttl=255 time=2.000 ms
56 bytes from 11.11.13.1: icmp_seq=2 ttl=255 time=3.000 ms
56 bytes from 11.11.13.1: icmp_seq=3 ttl=255 time=3.000 ms
56 bytes from 11.11.13.1: icmp_seq=4 ttl=255 time=3.000 ms

--- Ping statistics for 11.11.13.1 ---
5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
round-trip min/avg/max/std-dev = 2.000/3.400/6.000/1.356 ms
[R4]%Nov 5 20:21:41:675 2021 R4 PING/6/PING_STATISTICS: Ping statistics for 11.11.13.1: 5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss, round-trip min/avg/max/std-dev = 2.000/3.400/6.000/1.356 ms.

 

怡夏
我爱她,仅此而已
查看“怡夏”的所有文章 →

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注

相关推荐