172
[RouterA-ui-tty1] modem both
2. Configure Router B:
# Configure a dial access control rule for dialer access group 2. Create local user accounts
user1 through user16 and configure PPP authentication for the accounts.
<RouterB> system-view
[RouterB] dialer-rule 2 ip permit
[RouterB] local-user user1
[RouterB-luser-user1] password simple user1
[RouterB-luser-user1] service-type ppp
[RouterB-luser-user1] quit
[RouterB] local-user user2
[RouterB-luser-user2] password simple user2
[RouterB-luser-user2] service-type ppp
[RouterB-luser-user2] quit
...
[RouterB] local-user user16
[RouterB-luser-user16] password simple user16
[RouterB-luser-user16] service-type ppp
[RouterB-luser-user16] quit
# Assign an IP address to interface Dialer0 and configure it to assign IP addresses for PPP
users.
[RouterB] interface dialer 0
[RouterB-Dialer0] link-protocol ppp
[RouterB-Dialer0] ppp authentication-mode pap
[RouterB-Dialer0] ppp pap local-user userb password simple userb
[RouterB-Dialer0] ip address 100.1.1.254 255.255.255.0
[RouterB-Dialer0] remote address pool 1
# Enable C-DCC and configure C-DCC parameters on the interface.
[RouterB-Dialer0] dialer enable-circular
[RouterB-Dialer0] dialer-group 2
[RouterB-Dialer0] quit
# Configure physical and link layer parameters for interface Async 1/0.
[RouterB] interface async 1/0
[RouterB-Async1/0] async mode protocol
[RouterB-Async1/0] dialer circular-group 0
[RouterB-Async1/0] link-protocol ppp
[RouterB-Async1/0] ppp authentication-mode pap
[RouterB-Async1/0] ppp pap local-user userb password simple userb
[RouterB-Async1/0] quit
Repeat this step to configure physical and link layer parameters for interfaces Async 1/1
through Async 1/7.
# Configure user interfaces TTY 1 through TTY 7 for interfaces Async 1/0 through Async 1/7
and enable modem dial-in and dial-out on them.
[RouterB] user-interface tty1
[RouterB-ui-tty1] modem both
[RouterB-ui-tty1] quit
[RouterB] user-interface tty2
[RouterB-ui-tty2] modem both