# APN Remap Table Configuration Mode

APN Remap Table Configuration mode provides the commands to configure parameters for multiple features related to Access Point Name (APN) handling, such as: Default APN, APN Remap, and Wildcard APN. APN remap table is a key element of the Operator Policy feature and a table is not usable (valid) until it has been associated with an operator policy (see the Operator Policy Configuration Mode Commands chapter.)

A maximum of 1,000 APN remap tables are supported, and each APN remap table supports a maximum of 100 APN remap entries. Multiple tables can be defined and stored but an operator policy and/or IMEI profile each only support association with a single (one) table per policy/profile configuration. The APN remap table associated with an IMEI profile will be used in IMEI override scenarios.
When this mode is accessed, the command prompt should be similar to:

    [local]asr5000(apn-remap-table<table_id>)#

IMPORTANT:

The commands or keywords/variables that are available are dependent on platform type, product version, and installed license(s).
apn-remap

Creates an entry in the APN remap table and provides the ability to override the APN requested by the UE.
Platform:

ASR 5000
Product:

MME, SGSN
Privilege:

Security Administrator, Administrator
Syntax

    apn-remap { network-identifier apn_net_id { new-ni new_apn_net_id | operator-identifier apn_op_id new-ni new_apn_net_id { new-oi new_apn_op_id | value-for-oi-mcc mcc | value-for-oi-mnc mnc } | value-for-ni-wc  new_apn_net_id } | operator-identifier apn_op_id  { new-oi new_apn_op_id | value-for-oi-mcc mcc | value-for-oi-mnc mnc } } no apn-remap { network-identifier apn_net_id | operator-identifier apn_op_id }

no

Deletes the specified APN remap entry from the APN remap table.
network-identifier apn_net_id

Identifies the "old" APN network identifier that is being mapped for replacement.

apn_net_id is a string of 1 to 62 characters, including digits, letters, dots (.) and dashes (-). Additionally, one wildcard character ( * ) can be included anywhere within the string.
new-ni new_apn_net_id

Identifies the new (target) network identifier to use when no wildcard character is included in the “old” APN network identifier.

new_apn_net_id is a string of 1 to 62 characters, including digits, letters, dots (.) and dashes (-).
value-for-ni-wc new_apn_net_id

Identifies the information to replace the wildcard in the new APN network identifier when a wildcard character is included in the “old” APN network identifier.

new_apn_net_id is an alphanumeric string of characters, including dots (.) and dashes (-). This string replaces the wildcard (*) specified in the apn_net_id. The two strings together must not exceed 62 characters.
operator-identifier apn_op_id

Identifies the “old” APN operator identifier that is being mapped for replacement.

apn_op_id is a string of 1 to 18 characters including digits, letters, and dots (.). The entry must be in the following format, where # represents a digit: `MNC###.MCC###.GPRS`.

Optionally, either one or two wildcard characters ( * ) can be entered. Wildcard characters can be used in place of one # or three # -- for example `MNC12*.MCC*.GPRS`.
new-oi new_apn_op_id

Identifies the new (target) operator identifier to use when no wildcard character is included in the “old” APN operator identifier.

new_apn_op_id is a string of 1 to 18 characters including digits, letters, and dots (.). The entry must be in the following format, where # represents a digit: `MNC###.MCC###.GPRS`.
value-for-oi-mcc mcc

Identifies the information to replace the wildcard in the new APN operator identifier when a wildcard character is included in the MCC portion of the “old” APN operator identifier; for example `MNC###.MCC*.GPRS`.
value-for-oi-mnc mnc

Identifies the information to replace the wildcard in the new APN operator identifier when a wildcard character is included in the MNC portion of the “old” APN operator identifier; for example `MNC*.MCC###.GPRS`.
Usage:

IMPORTANT:

Entries in the APN remap table are only valid if the table is associated with an operator policy. The same table can then be associated with an IMEI profile as IMEI-specific remap entries are not supported.

This command defines mapping entries in the APN remap table which supports a range of APN overrides. Mapping can be done one-to-one:

- a "new" APN network identifier (NI) can be mapped to override an “old” APN network identifier (NI) or an “old” APN operator identifier (OI)
- a "new" APN operator identifier (OI) can be mapped to override an “old” APN network identifier (NI) or an “old” APN operator identifier (OI)

Mapping can also be done with wildcards in the "old" APN entry mapped to wildcard replacements to dynamically create “new” APN network/operator identifiers.

Related Commands: APN override can also be based on charging characteristics. This type of override mapping is defined with the cc command, also part of this configuration mode.
Example:
A one-to-one APN NI remap entry is illustrated by:

    apn-remap network-identifier
    123abc.com new-ni 333CBC.com

Create an entry with a wildcard so that part of an incoming APN NI will be replaced - for example, incoming xyzabcpqr.com becomes xyzinternet2pqr.com.

    apn-remap network-identifier
    xyz*pqr.com value-for-ni-wc internet2

Replace any incoming APN NI with a new APN NI.

    apn-remap network-identifier * value-for-ni-wc newnet.com

A one-to-one APN OI remap entry is illustrated by:

    apn-remap operator-identifier MNC423.MCC222.GPRS
    new-oi MNC123.MCC456.GPRS

Replace any incoming APN OI with a new APN OI MNC123.MCC456.GPRS:

    apn-remap operator-identifier
    MNC*.MCC*.GPRS value-for-oi-mnc 123 value-for-oi-mcc 456

apn-selection-default

Enables and configures or disables the Default APN feature for use when the normal APN selection process fails.
Platform:

ASR 5000
Product:

MME, SGSN
Privilege:

Security Administrator, Administrator
Syntax

    apn-selection-default { first-in-subscription | lowest-context-id | network-identifier apn_net_id [ fallback-apn network-identifier apn_net_id | fallback-to-first-in-subscription | prefer-single-subscription | reject-blank-apn | require-dns-fail-wildcard | require-subscription-apn ] + }

    no apn-selection-default { first-in-subscription | lowest-context-id | network-identifier apn_net_id }

no

Delete the configuration statement and disable the default APN feature.
first-in-subscription

Specifies that the first APN in the subscription record matching the PDN type is used as the default APN when normal APN selection fails and if the UE APN is absent and the defined default APN is not a match.

For the SGSN, “first-in-subscription” means the first record from the list of records sent from the HLR (in the same order) with PDP type matching the requested PDP type. With this configuration, if the first record is a wildcard APN it is expected that the wildcard APN be configured. If not, the activation will be rejected.
lowest-context-id

SGSN only.

Specifies that the subscription APN with tje lowest context-ID in the subscription record matching the PDN type is used as the default APN when normal APN selection fails.

With this configuration, if the record with the lowest context-ID is a wildcard APN, then it is expected that the wildcard APN has already been configured. If not, the activation will be rejected.
network-identifier apn_net_id

Specifies the network identifier will be used as the default APN name as a string of 1 to 62 characters, including digits, letters, dots (.) and dashes (-).

Any of the following optional keywords can be used with network-identifier as qualifications.
fallback-apn network-identifier apn_net_id

SGSN only.

Specifies a dummy APN to be used when the default APN is not present in the subscription so that the activation does not fail. With this keyword configured, the context is activated with a dummy APN and the GGSN displays a static page for this APN, instructing the subscriber to subscribe for appropriate services.

apn_net_id is a string of 1 to 62 characters, including letters, digits, dots (.) and dashes (-).
fallback-to-first-in-subscription

Uses the APN from the first subscription record when the configured default APN is not available.
prefer-single-subscription

Uses the APN from the subscription record if it is the only record available and normal APN selection fails.
reject-blank-apn

Disables use of the default APN if a blank APN is received.
require-dns-fail-wildcard

Enables the default APN to be used if the DNS query fails with the selected APN.
require-subscription-apn network-identifier apn_net_id

If defined, this APN name must also be included in the subscription data for the default APN feature to function.

apn_net_id is a string of 1 to 62 characters, including letters, digits, dots (.) and dashes (-).
Usage:

IMPORTANT:

The Default APN feature will only work if it is configured in an APN remap table entry and the table is associated to an IMEI profile.

The default APN feature will be used in error situations when the SGSN cannot select a valid APN via the normal APN selection process. Within an operator policy, a default APN can be configured for the SGSN to:

- override a requested APN when the HLR does not have the requested APN in the subscription profile.
- provide a viable APN if APN selection fails because there was no "requested APN" and wildcard subscription was not an option.

The default APN feature can also be used in the event of a DNS query failure with the selected APN, if:

- the wildcard-apn command is configured,
- a wildcard subscription is present,
- the require-dns-fail-wildcard keyword is included with the apn-selection-default command then the configured default APN will be used when the DNS query is retried.

In all of the instances outlined above, the SGSN can provide the default APN as an alternate behavior to ensure that PDP context activation is successful.
Example:
The following command enables the default APN feature for APN HomeNet1:

    apn-selection-default
    network-identifier HomeNet1

The following command enables use of a default APN selected on the basis of lowest context-ID if the APN is not contained within the subscription:

    apn-selection-default
    lowest-context-id

The following command enables use of a default APN if the DNS query fails:

    apn-selection-default
    network-identifier HomeNet1 require-dns-fail-wildcard

blank-apn

Enables the Blank APN feature and defines the APN that will be used when no APN is requested. This command is specific to SGSN.
Platform:

ASR 5000
Product:

SGSN
Privilege:

Security Administrator, Administrator
Syntax

    blank-apn network-identifier apn_net_idno blank-apn

no

Removes the APN NI from the APN remap table configuration and disables the Default APN feature.
network-identifier apn_net_id

Identifies the APN network identifier (NI) that will be used when no APN is requested.

apn_net_id is a string of 1 to 62 characters, including letters, digits, dots (.) and dashes (-).
Usage:

Use this command to enable the Blank APN feature.
Example:
The following command creates an entry that supplies the starnet.com as the APN network identifier whenever a request does not include an APN:

    blank-apn network-identifier starnet.com

cc

This command maps an APN override based on charging characteristics.
Platform:

ASR 5000
Product:

MME, SGSN
Privilege:

Security Administrator, Administrator
Syntax

    cc behavior bit_value profile index_bit apn-remap network-identifier apn_net_id new-ni new_apn_net_idno cc behavior  bit_value profile index_bit apn-remap network-identifier apn_net_id

no

Disables the configured cc-based remapping behavior.
behavior bit_value

Specifies the value for the charging characteristic behavior bit.

bit_value is a hex value from 0x0 to 0xFFF.
profile index_bit

Specifies the index for the charging characteristic profile.

index_bit is an integer from 1 through 15.

Some of the index values are predefined according to 3GPP standards:

- 1 for hot billing
- 2 for flat billing
- 4 for prepaid billing
- 8 for normal billing

apn-remap network-identifier apn_net_id

Identifies the “old” APN network identifier that is being mapped for replacement.

apn_net_id is a string of 1 to 62 characters, including letters, digits, dots (.) and dashes (-).
new-ni new_apn_net_id

Identifies the “new" APN network identifier that is being mapped to.

new_apn_net_id is a string of 1 to 62 characters, including letters, digits, dots (.) and dashes (-) .
Usage:

Use this command to enable APN remapping only when the charging characteristic value in the subscription record associated with the requested APN matches the value configured for the new-ni .

The new APN NI must be part of the subscription data so that the charging characteristic associated with the new APN NI will be used for activating the context. If there is not one associated, then the general charging characteristic will be used.
Example:
The following command associates a new APN NI locals1 with a set of charging characteristics:

    cc behavior 0xF  profile
    4 apn-remap network-identifier  homer1 new-ni locals1

description

Defines a string that describes this APN remap table.
Platform:

ASR 5000
Product:

MME, SGSN
Privilege:

Security Administrator, Administrator
Syntax

    description descriptionno description

no

Removes the description configuration from this APN Remap Table configuration.
description

Specifies descriptive text to be associated with the APN remap table as an alphanumeric string of 1 through 100 characters. The string may include spaces, punctuation, and case-sensitive letters if the string is enclosed in double quotation marks (“).
Usage:

Define information that identifies this particularly APN remap table.
Example:

    description “APN_remap1
    replaces all MNC1## Ids.”

end

Exits the current configuration mode and returns to the Exec mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    end

Usage:

Use this command to return to the Exec mode.
exit

Exits the current mode and returns to the parent configuration mode.
Product:

All
Privilege:

Security Administrator, Administrator
Syntax

    exit

Usage:

Use this command to return to the parent configuration mode.
wildcard-apn

Enables or disables the Wildcard APN feature and define the default APN to be used whenever a wildcard APN is included in the subscriber record.
Platform:

ASR 5000
Product:

MME, SGSN
Privilege:

Security Administrator, Administrator
Syntax

    wildcard-apn pdp-type { dual-ipv4v6 | ipv4 | ipv6 | ppp } network-identifier apn_net_idno wildcard-apn pdp-type { dual-ipv4v6 | ipv4 | ipv6 | ppp }

no

Disables the wildcard-apn definition from the configuration.
pdp-type {dual-ipv4v6 | ipv4 | ipv6 | ppp }

Specifies the PDP type.

- dual-ipv4v6- for a dual PDP context association with one IPv4 address and one IPv6 address/prefix (SGSN only)
- ipv4 - for an IPv4 context
- ipv6 - for an IPv6 context
- ppp - for a PPP context

network-identifierapn_net_id

Identifies one of the APN network identifiers specified via the apn command in the Operator Policy configuration mode.

apn_net_id is a string of 1 to 62 characters, including letters, digits, dots (.) and dashes (-).
Usage:

This command is used to define a wildcard APN with the type of PDP context and the APN’s network identifier (NI). This wildcard APN would be used when an APN is not identified.

The command should be repeated per PDP type, as needed, to enable wildcard APN for two or more of the PDP types.

The wildcard APN configured with the dual PDP IPv4v6 context will be used in the following scenarios:

- the UE requested a PDP type of IPv4v6
- the UE did not request any specific APN
- the subscription includes wildcard APN with PDP type as IPv4v6.

IMPORTANT:

Wildcard APN feature configuration is only valid if the APN remap table is associated with at least one operator policy. The same table can then be associated with an IMEI profile as IMEI-specific Wildcard APN is not supported.
Example:
Use this command to enable an APN wildcard for PDP type IPv4 and NI homer1:

    wildcard-apn pdp-type
    ipv4 network-identifier homer1