beautypg.com

One-way chap authentication configuration example, Network requirements, Configuration procedure – H3C Technologies H3C SR8800 User Manual

Page 44

background image

36

[RouterB-Serial4/1/9/1:0] ppp authentication-mode pap domain system

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

authenticated by Router A 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.

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

[RouterB-Serial4/1/9/1:0] quit

# Configure local authentication for the PPP users in the default ISP domain system.

[RouterB] domain system

[RouterB-isp-system] authentication ppp local

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.

One-way CHAP authentication configuration example

Network requirements

As shown in

Figure 10

, configure Router A to authenticate Router B by using CHAP.

Configuration procedure

Approach I: The authenticator configured with a username authenticates the remote end using CHAP

1.

Configure Router A:
# Create a user account for Router B.

system-view

[RouterA] local-user userb

# Set a password for the user account.

[RouterA-luser-userb] password simple hello

# Set the service type of the user account to PPP.

[RouterA-luser-userb] service-type ppp

[RouterA-luser-userb] quit

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

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

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

# Configure the username for Router A when Router A authenticates Router B.

[RouterA-Serial4/1/9/1:0] ppp chap user usera

# Set the authentication mode to CHAP.

[RouterA-Serial4/1/9/1:0] ppp authentication-mode chap domain system

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

[RouterA-Serial4/1/9/1:0] ip address 200.1.1.1 16

[RouterA-Serial4/1/9/1:0] quit

# Configure local authentication for the PPP users in the default ISP domain system.

[RouterA] domain system

[RouterA-isp-system] authentication ppp local