Based on security considerations, many companies may use the Wide Area Network Technology for Intranet Communication.
Lan |
Wan |
Network cable |
Serial Line |
Transmission Distance near |
Long Transmission Distance |
<100 m |
> 1000 m |
Asynchronous transmission |
Synchronous Transmission |
Fast transmission speed |
Slow transmission speed |
To achieve synchronous transmission, a clock frequency must be provided by DCE.
① DTE: data communication device, generally on the user end
② DCE: data communication equipment, usually on the operator
PPP is widely used for WAN connection.
PPP (Point-to-Point Protocol) supports point-to-point authentication. The authentication methods include pap and chap.
In real life, it is mainly pap. Once authenticated, it can be used directly next time, eliminating the need for bandwidth occupation and traffic waste.
PAP |
Chap |
Secondary handshake |
Three-way handshake |
Plaintext Password |
Ciphertext Password |
Request initiated by the client |
Request initiated by the server |
The following are the configuration cases of PAP:
Network Topology:
PAP client:
R1#ping 10.10.10.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 16/40/84 ms
PAP Server Configuration:
R2#enR2#conf tEnter configuration commands, one per line. End with CNTL/Z.R2(config)#usR2(config)#username oracle passR2(config)#username oracle password oracleR2(config)#int s0/0R2(config-if)#enR2(config-if)#encapsulation pppR2(config-if)#ppp*Mar 1 00:04:14.835: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to downR2(config-if)#ppp authenR2(config-if)#ppp authentication papR2(config-if)#no shR2(config-if)#end
PAP client Configuration:
R1#ping 10.10.10.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:...*Mar 1 00:04:43.303: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to down..Success rate is 0 percent (0/5)
Ping failed before the PAP client is configured
R1#conf tEnter configuration commands, one per line. End with CNTL/Z.R1(config)#int s0/0R1(config-if)#encR1(config-if)#encapsulation pppR1(config-if)#ppp pap seR1(config-if)#ppp pap sent-username oracle paR1(config-if)#ppp pap sent-username oracle password oracleR1(config-if)#no*Mar 1 00:07:20.415: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0 changed state to upR1(config-if)#no shR1(config-if)#endR1#ping*Mar 1 00:07:29.311: %SYS-5-CONFIG_I: Configured from console by consoleR1#ping 10.10.10.2Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 10.10.10.2, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 20/64/132 ms