H3C Technologies H3C SR8800 User Manual

Page 42

Advertising
background image

34

[RouterA] domain system

[RouterA-isp-system] authentication ppp local

2.

Configure Router B:
# Enable PPP encapsulation on interface Serial 4/1/9/1:0.

<RouterB> system-view

[RouterB] interface Serial 4/1/9/1:0

[RouterB-Serial4/1/9/1:0] link-protocol ppp

# Configure the PAP username and password sent from Router B to Router A when Router B is

authenticated by Router A by using PAP.

[RouterB-Serial4/1/9/1:0] ppp pap local-user userb password simple passb

# Assign an IP address to Serial 4/1/9/1:0 of Router B.

[RouterB-Serial4/1/9/1:0] ip address 200.1.1.2 16

3.

Verify the configuration:
Use the display interface command to display information about Serial 4/1/9/1:0 of Router B.
The physical layer status and link layer status of the interface are both up, and the states of LCP and

IPCP are both Opened, indicating that PPP negotiation is successful. Router A and Router B can

ping each other.

[RouterB-Serial4/1/9/1:0] display interface Serial 4/1/9/1:0

Serial4/1/9/1:0 current state: UP

Line protocol current state: UP

Description: Serial4/1/9/1:0 Interface

The Maximum Transmit Unit is 1500, Hold timer is 10(sec)

Internet Address is 200.1.1.2/16 Primary

Link layer protocol is PPP

LCP opened, IPCP opened

CRC type is 16-bit

Last 300 seconds input: 0 packets/sec, 3 bytes/sec

Last 300 seconds output: 0 packets/sec, 2 bytes/sec

Input(total): 367 packets, 13212 bytes

Input(Bad): 0 Abort, 0 FCS-Error, 0 FIFO-Abort, 0 Giant, 0 Runt

Output(total): 654 packets, 9156 bytes

Output(Bad): 0 Abort

Peak value of input: 3 bytes/sec, at 2010-11-04 17:02:07

Peak value of output: 2 bytes/sec, at 2010-11-04 17:02:07

[RouterB-Serial4/1/9/1:0] ping 200.1.1.1

PING 200.1.1.1: 56 data bytes, press CTRL_C to break

Reply from 200.1.1.1: bytes=56 Sequence=1 ttl=255 time=103 ms

Reply from 200.1.1.1: bytes=56 Sequence=2 ttl=255 time=1 ms

Reply from 200.1.1.1: bytes=56 Sequence=3 ttl=255 time=1 ms

Reply from 200.1.1.1: bytes=56 Sequence=4 ttl=255 time=1 ms

Reply from 200.1.1.1: bytes=56 Sequence=5 ttl=255 time=10 ms

--- 200.1.1.1 ping statistics ---

5 packet(s) transmitted

5 packet(s) received

0.00% packet loss

Advertising