R0106-HP MSR Router Series Layer 2 - WAN Configuration Guide(V7)
140
Setting the country code of a modem
CAUTION:
This task disconnects the modem connection.
Modem encoding format differs with countries. You must configure the correct country code for a modem
to function correctly. This task is available only on AM interfaces.
To set the country code of a modem:
Ste
p
Command
Remarks
1. Enter system view.
system-view N/A
2. Enter AM interface
view.
interface analogmodem interface-number N/A
3. Set the country code.
country-code area-name
The default country code is
united-states.
Modem management configuration example
Network requirements
As shown in Figure 45, configure DDR and modem access services for Router A and Router B to establish
a modem dial-up connection between the Serial 2/1/0 interfaces for data transmission.
For more information about DDR, see "Configuring DDR."
Figure 45 Network diagram
Configuration procedure
1. Configure Router A:
# Create dialer access group 1 and add a dial access rule to match call triggering traffic. The rule
in this example permits any IP packets to trigger a call.
<RouterA> system-view
[RouterA] dialer-group 1 rule ip permit
# Configure the asynchronous/synchronous serial interface Serial 2/1/0 to operate in
asynchronous mode and protocol mode.
[RouterA] interface serial 2/1/0
[RouterA-Serial2/1/0] physical-mode async
[RouterA-Serial2/1/0] async-mode protocol
# Assign the IP address 1.1.1.1/16 to Serial 2/1/0.
[RouterA-Serial2/1/0] ip address 1.1.1.1 255.255.0.0
PSTN
Router A Router BModem Modem
S2/1/0
2.2.2.2/16
S2/1/0
1.1.1.1/16