R2511-HP MSR Router Series Voice Configuration Guide(V5)

346
[RouterA-radius-sch1] primary accounting 1.1.1.3 1813
# Configure RADIUS packets to carry unqualified usernames.
[RouterA-radius-sch1] user-name-format without-domain
# Configure the server type to a RADIUS server based on an extended protocol.
[RouterA-radius-sch1] server-type extended
# Configure the RADIUS scheme in the default domain.
[RouterA] domain system
[RouterA-isp-system] authentication voip radius-scheme sch1
[RouterA-isp-system] authorization voip radius-scheme sch1
[RouterA-isp-system] accounting voip radius-scheme sch1
[RouterA-isp-system] quit
# Configure the access number and set the dialing process to the card number/password process.
[RouterA-voice] dial-program
[RouterA-voice-dial] gw-access-number 12345
[RouterA-voice-dial-anum12345] process-config cardnumber
# Configure the number of digits in a card number and password.
[RouterA-voice-dial-anum12345] card-digit 10
[RouterA-voice-dial-anum12345] password-digit 4
# Enable the authentication function.
[RouterA-voice-dial-anum12345] authentication
# Enable the authorization function.
[RouterA-voice-dial-anum12345] authorization
# Enable the accounting function.
[RouterA-voice-dial-anum12345] accounting
# Set the number of redial attempts to 3.
[RouterA-voice-dial-anum12345] redialtimes 3
2. Configure the voice gateway Router B:
The configurations on Router A are similar to those on Router B.
# Create a RADIUS scheme.
<RouterB> system-view
[RouterB] radius scheme sch1
# Configure an access password for accessing the authentication and authorization server.
[RouterB-radius-sch1] key authentication password2
# Configure a password for accessing the accounting server.
[RouterB-radius-sch1] key accounting password2
# Configure an IP address for the primary authentication and authorization server and the primary
accounting server.
[RouterB-radius-sch1] primary authentication 1.1.1.3 1812
[RouterB-radius-sch1] primary accounting 1.1.1.3 1813
# Configure RADIUS packets to carry unqualified usernames.
[RouterB-radius-sch1] user-name-format without-domain
# Configure the server type to a RADIUS server based on an extended protocol.
[RouterB-radius-sch1] server-type extended
# Configure the RADIUS scheme in the default domain.