Configuration example for router-to-PC PPP callback with DCC

Network requirements

As shown in Figure 54:

Configure PPP callback with C-DCC between Router and PC, specifying PC as the callback client and Router as the callback server to make return calls according to dialer routes.

Figure 54: Network diagram

Configuring the PC (installed with Windows XP for example)

To create a dialup connection with callback capability enabled:

  1. Place the modem connected to PC in auto answer mode.

  2. Select Start > Programs > Accessories > Communications > Network and Dial-up Connections.

    The Network and Dial-up Connections window appears.

  3. Right-click the Make New Connection icon, and select New Connection… from the shortcut menu.

    The Network Connection Wizard window appears.

  4. Click Next.

    The Network Connection Type dialog box appears.

  5. Select the Dial-up to the Internet option, and click Next.

    The Internet Connection Wizard dialog appears.

  6. Select I want to set up my Internet connection manually, or I want to connect through a local area network. Click Next.

    The Setting up your Internet connection dialog box appears.

  7. Select the I connect through a phone line and a modem option. Click Next.

  8. Enter the phone number for dialing to the callback server. Click Next.

  9. Enter the username and password that you want to use for PPP authentication when connecting to the server. Click Next.

  10. Assign a name to your new connection and follow the instruction to complete the connection setup.

  11. Open the Network and Dial-up Connections window, right-click the connection just created, and select the Properties option in the popup menu.

    The properties setting dialog box appears.

  12. Select the Networking tab. In the Type of dial-up server I am calling list, select PPP: Windows 95/98/NT4/2000, Internet. Click Settings to do the following:

    1. Select the Enable LCP extensions box.

    2. Clear the Enable software compression box.

    3. Clear the Negotiate multi-link for single link connections box.

    4. Click OK.

  13. Turn to the Network and Dial-up Connections window. Click the connection icon you just created. Then, from the menu bar, select Advanced > Dial-up Preferences. In the Dial-up Preferences dialog box, select the Callback tab and do one of the following:

    • Select the No callback option.

      After the PPP authentication is passed in a call, this option prevents the callback server from disconnecting the current connection and calling back. Instead, the server will maintain the current connection and allow the client to access the LAN or the Internet.

    • Select the Ask me during dialing when the server offers option.

      The callback server will use the callback number you input to place return calls.

    • Select the Always call me back at the number(s) below option.

      The callback server will place return calls always at the number or numbers already set.

Configuring Router

# Configure a dial access control rule for dialer access group 1. Create a local user account userpc for PC and configure PPP authentication for the account.

<Router> system-view
[Router] dialer-rule 1 ip permit
[Router] local-user userpc 
[Router-luser-userc] password simple userpc
[Router-luser-userc] service-type ppp
[Router-luser-userc] quit

# Assign an IP address to interface Serial 2/0 and configure physical layer parameters.

[Router] interface serial 2/0
[Router-Serial2/0] ip address 100.1.1.1 255.255.255.0
[Router-Serial2/0] physical-mode async
[Router-Serial2/0] async mode protocol

# Configure PPP encapsulation and other PPP parameters on the interface.

[Router-Serial2/0] link-protocol ppp
[Router-Serial2/0] ppp authentication-mode pap
[Router-Serial2/0] ppp pap local-user Router password simple Router

# Configure the interface to assign an IP address to the remote end.

[Router-Serial2/0] remote address 100.1.1.2

# Specify interface Serial 2/0 as the PPP callback server, and set the callback reference to user mode. DCC uses the dial string corresponding to the username configured in the dialer route command to place return calls.

[Router-Serial2/0] ppp callback server
[Router-Serial2/0] dialer callback-center user

# Enable C-DCC on interface Serial 2/0 and configure C-DCC parameters.

[Router-Serial2/0] dialer enable-circular
[Router-Serial2/0] dialer-group 1
[Router-Serial2/0] dialer route ip 100.1.1.2 user userpc 8810048
[Router-Serial2/0] quit

# Configure the user interface to be used and enable modem dial-in and dial-out on it.

[Router] user-interface tty1
[Router-ui-tty1] modem both