R0106-HP MSR Router Series Layer 2 - WAN Configuration Guide(V7)
191
[RouterB-Serial2/1/0] physical-mode async
[RouterB-Serial2/1/0] async-mode protocol
# Enable traditional DDR on the interface.
[RouterB-Serial2/1/0] dialer circular enable
# Associate the interface with dialer group 2.
[RouterB-Serial2/1/0] dialer-group 2
# Enable PPP encapsulation on the interface.
[RouterB-Serial2/1/0] link-protocol ppp
# Configure PAP authentication on the interface.
[RouterB-Serial2/1/0] ppp authentication-mode pap
# Enable the interface to accept callback requests as the callback server.
[RouterB-Serial2/1/0] ppp callback server
# Configure the interface to use the dial string configured in the dialer route command to call back.
[RouterB-Serial2/1/0] dialer callback-center user
# Configure the dial string for callback.
[RouterB-Serial2/1/0] dialer route ip 100.1.1.1 8810048 user usera
[RouterB-Serial2/1/0] quit
# Configure the user line to be used, and enable modem dial-in and dial-out on it.
[RouterB] line tty2
[RouterB-line-tty2] modem enable both
Method 2: Use the callback number configured in the authorization-attribute callback-number
command to call back the client.
3. Configure Router A:
# Create dialer group 1 and configure a dial rule for it.
<RouterA> system-view
[RouterA] dialer-group 1 rule ip permit
# Configure an IP address for interface Serial 2/1/0, and configure physical layer parameters
and traditional DDR for Serial 2/1/0.
[RouterA] interface serial 2/1/0
[RouterA-Serial2/1/0] ip address 100.1.1.1 255.255.255.0
# Configure the interface to operate as an asynchronous interface in protocol mode.
[RouterA-Serial2/1/0] physical-mode async
[RouterA-Serial2/1/0] async-mode protocol
# Enable traditional DDR on the interface.
[RouterA-Serial2/1/0] dialer circular enable
# Associate the interface with dialer group 1.
[RouterA-Serial2/1/0] dialer-group 1
# Configure the dial string for calling Router B.
[RouterA-Serial2/1/0] dialer route ip 100.1.1.2 8810052
# Enable PPP encapsulation on the interface.
[RouterA-Serial2/1/0] link-protocol ppp
# Configure the username and password for PAP authentication.
[RouterA-Serial2/1/0] ppp pap local-user usera password simple usera
# Enable Serial 2/1/0 to send callback requests.