162
[RouterB-Dialer0] ppp pap local-user userb password simple userb
[RouterB-Dialer0] quit
# Bundle timeslots on CE1/PRI interface E1 2/0 into a PRI group.
[RouterB] controller e1 2/0
[RouterB-E1 2/0] pri-set
[RouterB-E1-2/0] quit
# Enable C-DCC on interface Serial 2/0:15 created on interface E1 2/0 and assign the serial
interface to interface Dialer 0.
[RouterB] interface serial 2/0:15
[RouterB-Serial2/0:15] dialer enable-circular
[RouterB-Serial2/0:15] dialer circular-group 0
Configuration example for router-to-router PPP callback with
DCC
Network requirements
As shown in Figure 52:
• Router A and Router B are interconnected through serial interfaces across PSTN.
• Interface Serial 2/0 on Router A is assigned the IP address of 100.1.1.1/24 and interface Serial
2/0 on Router B is assigned the IP address of 100.1.1.2/24.
Implement PPP callback between Router A and Router B, specifying Router A as the callback client
and Router B as the callback server.
Figure 52 Network diagram
Configuration procedure
• Method 1: Use C-DCC to implement PPP callback, allowing the callback server to make
callback decisions based on usernames configured in the dialer route commands.
a. Configure Router A:
# Configure a dial access control rule for dialer access group 1.
<RouterA> system-view
[RouterA] dialer-rule 1 ip permit
# Assign an IP address to interface Serial 2/0, configure its physical layer and C-DCC
parameters.
[RouterA] interface serial 2/0
[RouterA-Serial2/0] ip address 100.1.1.1 255.255.255.0
[RouterA-Serial2/0] physical-mode async
[RouterA-Serial2/0] async mode protocol
[RouterA-Serial2/0] dialer enable-circular
[RouterA-Serial2/0] dialer-group 1
[RouterA-Serial2/0] dialer route ip 100.1.1.2 8810052
[RouterA-Serial2/0] link-protocol ppp
[RouterA-Serial2/0] ppp pap local-user usera password simple usera
PSTN
Modem Router B
Router A
Modem
S2/0
100.1.1.1/24
8810048 8810052
S2/0
100.1.1.2/24
Call back
client
Callback
server