beautypg.com

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

Page 43

background image

35

round-trip min/avg/max = 1/23/103 ms

Two-way PAP authentication configuration example

Network requirements

As shown in

Figure 10

, Router A and Router B are connected through their Serial 4/1/9/1:0 interfaces.

Configure Router A and Router B to authenticate each other by using PAP.

Configuration procedure

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 passb

# 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

# Set the authentication mode to PAP.

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

# Configure the PAP username and password sent from Router A to Router B when Router A is
authenticated by Router B using PAP.

[RouterA-Serial4/1/9/1:0] ppp pap local-user usera password simple passa

# 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

2.

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

system-view

[RouterB] local-user usera

# Set a password for the user account.

[RouterB-luser-usera] password simple passa

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

[RouterB-luser-usera] service-type ppp

[RouterB-luser-usera] quit

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

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

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

# Set the authentication mode to PAP.