Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    Example: Configuring Broadband Gateway APNs

    This example shows how to configure an access point network (APN) on the MobileNext Broadband Gateway. An APN selection method is configured, along with a mobile interface (mif-). The APN interfaces are placed into a virtual routing and forwarding (VRF) routing instance.

    Requirements

    This example uses the following hardware and software components:

    • An MX chassis equipped with session Dense Port Concentrators (DPCs) and three interface PFEs (housed in DPCs or Modular Port Concentrators [MPCs]).
    • The Junos OS Mobility package software

    Before you begin:

    • Install the chassis hardware.
    • Configure the chassis, as well as interfaces, anchors, and (optionally) redundancy.

    Overview

    Figure 1 shows the role of APNs in a 4G network (APNs apply to other mobile network generations as well). APNs contain the parameters used to characterize a user session with a packet network. The broadband gateway uses the APN to identify an attached IP network.

    Figure 1: APNs Connect Mobile Devices to IP Networks Through a P-GW

    APNs Connect Mobile Devices to
IP Networks Through a P-GW

    In this example, the broadband gateway has only one APN configured. Not all parameters are configured in this example, and many of them document default values (this is not an unusual practice: the default values are now clearly visible to all). All mobile devices attach to this APN, but a selection method is still required. The mobile interface is configured (mif.0), and then the interfaces for the APN are placed in a separate VRF.

    In detail, the broadband gateway is named MBG1 and the APN is called apn-1. The MIF interface is configured as mif-1/0/1.0 and is a real APN. The APN includes Domain Name System (DNS) and call state control function (CSCF) servers. All timers use the default values, and includes an authentication, authorization, and accounting (AAA) profile called aaa-access-profile-1 (this profile is configured under the AAA mobility hierarchy level). All other general APN parameters either use the default values or are not configured.

    This APN configuration places no restrictions of traffic sent from one APN to another (this is the default). The APN supports only IPv4 and the address assignment method uses the default timer value (0) so that addresses can be re-used immediately. The address group is group-1-apn-1 and the pool is called pool-1. No pools are excluded.

    The APN references only the default charging profile. The APN configures one MIF interface (taking all default values) called mif.0 and associates the mobile interface and the local IP interface (Gi or SGi: in this case ge-0/0/0.5) in a VRF called User1-VRF. (No other VRF parameters are shown.) The APN service selection method (called apn-1-selection) takes the most inclusive from (a blank clause) in term select-apn and assigns all traffic to apn-1.

    Configuration

    The APN referenced above is configured by:

    CLI Quick Configuration

    [edit unified-edge gateways ggsn-pgw MBG1 apn-services]user@host# set apn apn-1 [edit unified-edge gateways ggsn-pgw MBG1 apn-services apns apn-1]user@host# set mobile-interface mif.0 user@host# set apn-type real user@host# set apn-data-type ipv4 user@host# set dns-server primary-v4 10.10.10.9 secondary-v4 172.16.0.7user@host# set p-cscf-server 172.16.14.25 user@host# set session-timeout 0 user@host# set idle-timeout 0 user@host# set idle-timeout-direction both user@host# set aaa-profile aaa-access-profile-1 user@host# set restriction-value 0 [edit unified-edge gateways ggsn-pgw MBG1 apn-services apns apn-1 address-assignment-method]user@host# set aaa [edit unified-edge gateways ggsn-pgw MBG1 apn-services apns apn-1 address-assignment inet-pool]user@host# set group group-1-apn-1 user@host# set pool pool-1 [edit unified-edge gateways ggsn-pgw MBG1 apn-services apns apn-1 charging]user@host# set default-charging-profile default-charging-profile-apn-1 [edit interfaces]user@host# set mif unit 0 family inet [edit routing-instances]user@host# set User1-VRF interface mif.1 user@host# set User1-VRF interface ge-0/0/0.5 [edit unified-edge apn-service-selection apn-1-selection term select-apn]user@host# set from [edit unified-edge apn-service-selection apn-1-selection term select-apn]user@host# set then apn-service apn-1

    Step-by-Step Procedure

    Results

    From configuration mode, confirm your configuration by entering the show command at the various hierarchy levels. If the output does not display the intended configuration, repeat the configuration instructions in this example to correct it.

    For brevity, these show command outputs include only the configuration that is relevant to this example.

    show unified-edge gateways ggsn-pgw MBG1 apn-services apns apn-1mobile-interface mif.0;apn-type real;apn-data-type ipv4;dns-server primary 10.10.10.p secondary 172.16.0.7;p-cssf server 172.16.14.25;session-timeout 0;idle-timeout 0;idle-timeout-direction both;aaa-profile aaa-access-profile-1;restriction-value 0;address-assignment-method {aaa;inet-pool {group group-1-apn-1;pool pool-1;}charging {default-charging-profile default-charging-profile-apn-1;}}show interfacesmif {unit 0 {family intet;}}show routing-instances User1-VRF interfacesmif-0;ge-0/0/0.5;show unified-edge apn-service-selection apn-1-selectionterm select-apn {from;then {apn-service apn-1;}}

    After you configure the device, enter commit from configuration mode.

    Verification

    Verifying the APN Configuration

    Purpose

    Verify that the APN is configured or not.

    Action

    From operational mode, enter the show unified-edge ggsn-pgw apn statistics apn-name apn-1 command.

    Meaning

    The APN configured (apn-1 in this case) will display a number of statistics such as address allocation and user authentication statistics. Non-zero values in these fields are a sign that the APN is functioning.

    Published: 2011-11-22