Configuring a Dial-up Network Connection (Single-APN Scenario)
Context
Automatic dial-up (permanently online)
A router immediately attempts to dial the remote end after starting. The dialing process is not triggered by data packets. If a connection cannot be established with the remote end, the router retries at an interval.
This mode applies to users who are not charged based on the traffic or time, for example, users who have subscribed to yearly-package services.
On-demand dial-up (connection setup triggered by traffic)
The device triggers link establishment only when data needs to be transmitted. When the time during which no traffic is transmitted on a link exceeds the timeout interval, the device disconnects the link to reduce the traffic volume.
This mode applies to users who are charged based on the traffic or time. For example, a traffic-package service allows a user to use a certain volume of traffic within a specified period.
Procedure
- Run system-view
The system view is displayed.
- Create an APN profile.
You are advised to create an APN profile to configure an APN. You are not advised to run the profile create profile-number { dynamic | static apn } command in the 3G cellular interface view to configure an APN by creating a 3G modem parameter profile.
- (Optional) Configure a dialer ACL.
The following procedure is required in on-demand dial-up mode.
- Enable circular DCC (C-DCC).
- Run dialer number dial-number [ autodial ]
A dialer number is configured for the device to reach the remote end.
- If autodial is specified, automatic dial-up is used. Automatic dial-up is applied to users who are not charged based on the traffic or time, for example, users who have subscribed to yearly-package services.
- If autodial is not specified, on-demand dial-up is used. On-demand dial-up is applied to users who are charged based on the traffic or time. For example, a traffic-package service allows a user to use a certain volume of traffic within a specified period.
Obtain a dialer number from a carrier.
Generally, China Mobile provides the dial string *99***1#, China Telecom provides the dial string #777, and China Unicom provides the dial string *99#.
When autodial is specified and C-DCC is enabled on the 3G cellular interface, the device will set the DCC automatic dial-up interval to 10 seconds to prevent long automatic dial-up. If the 3G cellular interface is used for dial-up, run the dialer timer autodial command to set the automatic dial-up interval.
- Bind the APN profile to a 3G cellular interface.
- Run ip route-static 0.0.0.0 0 cellular interface-number [ preference preference ]
A default route is configured.
interface-number specifies the number of a 3G cellular interface.