H3C SR6600 Configuration Manual page 59

Layer 2 – wan configuration
Hide thumbs Also See for SR6600:
Table of Contents

Advertisement

[RouterB-luser-usera] password simple hello
# Set the service type of the user account to PPP.
[RouterB-luser-usera] service-type ppp
[RouterB-luser-usera] quit
[RouterB] interface serial 2/0/1
# Enable PPP encapsulation for Serial 2/0/1.
[RouterB-Serial2/0/1] link-protocol ppp
# Configure the username for Router B when Router B is authenticated.
[RouterB-Serial2/0/1] ppp chap user userb
# Assign an IP address to Serial 2/0/1.
[RouterB-Serial2/0/1] ip address 200.1.1.2 16
Approach II: The authenticator with no username configured authenticates the remote end
using CHAP.
3)
Configure Router A.
# Create a user account for Router B.
<RouterA> 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 2/0/1
# Set the authentication mode to CHAP.
[RouterA-Serial2/0/1] ppp authentication-mode chap domain system
# Assign an IP address to Serial 2/0/1.
[RouterA-Serial2/0/1] ip address 200.1.1.1 16
[RouterA-Serial2/0/1] quit
# Create an ISP domain named system.
[RouterA] domain system
# Configure the users in the domain to use the local authentication scheme.
[RouterA-isp-system] authentication ppp local
4)
Configure Router B.
# Configure the username of Router B when Router B is authenticated.
<RouterB> system-view
[RouterB] interface serial 2/0/1
[RouterB-Serial2/0/1] ppp chap user userb
# Set the default CHAP password.
[RouterB-Serial2/0/1] ppp chap password simple hello
# Assign an IP address to Serial 2/0/1.
[RouterB-Serial2/0/1] ip address 200.1.1.2 16
5)
Verify the configurations
Use the display interface command to display information about Serial 2/0/1 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.
2-49

Advertisement

Table of Contents
loading

Table of Contents