Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 6

Understanding and Configuring a HWIC-3G-GSM

May 12, 2010

Apologies for the long absence from posting. I find myself without any hours left in a day before I got to everything I wanted to do. And before you know it, more than a month has gone past. In my previous post I presented a quick solution to an Out-of-Band network and I talked about some options. Ive had mails asking how to show some of the configurations. Ill cover those and do other posts I have been promising in the next couple days. This post will focus on the current Cisco 3G WAN card, the HWIC-3G-GSM. This card is supported by Ciscos 1841, 1861, 2800-series and 3800-series ISR routers. This card only supports High-Speed Downlink Packet Access (HSDPA) up to 3.6 Mb/s downlink, 384 kb/s uplink (presumably HSDPA Category 5/6, but not sure)

3G is a broad category of standards and services around broadband mobile wireless voice and data. Universal Mobile Telecommunications System (UMTS) is part of this family. High Speed Packet Access (HSPA) is a collection of mobile telephony protocols that extend and improve the performance of existing UMTS protocols. Two standards, HSDPA and HSUPA have been established and is fairly well known. Three components are required to use a 3G data connection: a SIM, a radio modem, and a router. The SIM identifies the subscriber (that is you the human) for billing and so forth. The radio modem does the hard work in providing physical layer (Layer1) access to the local 3G base station. The router typically uses PPP as the Layer2 data link to the providers Network Access Server (NAS), and from there is connected to the providers Layer3 network (which may be a private VPN, or public Internet). The cellular modem must establish a data call, then once connected a PPP session is established to the providers NAS. The cellular modem still requires age-old AT commands to make that call, and additionally to interrogate the SIM, etc. Cisco IOS provides an interface to a handful of modem features via the cellular exec command and a chat script(s). Note that AT commands can only be issued when the modem is idle (not in a call).

The modem is configured with at least one profile which stores an Access Point Name (APN) and optionally a username and password. This profile is then dialled to establish the connection similar to using a traditional phone number. These modem profiles are stored on the modem and NOT on the routers NVRAM or flash. Note that a modem profile and an IOS dialer profile are two separate things. The HWIC-3G-GSM is just a Sierra Wireless MC8775 modem sold in a HWIC form factor with a Cisco Logo on it. The modem is presented in Cisco IOS as two interfaces:

Low-speed asynchronous control interface which communicates with the modem.

1 #line x/x/x

High-speed synchronous interface connecting to the cellular providers network.

1 #interface cellular x/x/x

Yes that means you can actually do a reverse telnet to the modem, and configure the AT commands natively. Should you do it? NO, unless you know what you doing. There is also a physical diag port (refer to the picture above) on the front of the WIC for low level debugging of the modem. That is just to tease you. You need proprietary software to use that port. Enough boring stuff. The HWIC-3G-GSM card has RSSI (Received Signal Strength Indication) LED in the front, (refer to picture again) to indicate the 3G signal strength. The index is as follow:

Solid Yellow: No service Off Low RSSI (under -100 dBm) Slow Green Blink: Low or medium RSSI (-99 to -90 dBm) Fast Green Blink: Medium RSSI (-89 to -70 dBm) [ideally this should be a minimum] Solid Green: High RSSI (-69 dBm or higher) .

Configuring this simple little card.


Firstly the 3G-GSM card requires at least Cisco IOS 12.4(15)T1 but I would recommend a higher version for stability purposes. For the Cisco-1841 I downloaded c1841-advipservicesk9-mz.124-24.T3.bin because I needed the extra IOS features. By default most new SIM cards are protected with a PIN code before they could be used (This per Session). This PIN code should be disabled when used with a HWIC-3G-GSM. To see if the SIM card has a PIN code active issue the following command:

sh cellular 0/0/0 security !!'

'!! HWIC insert to slot 0

To remove the PIN issue the following command:


1 cellular 0/0/0 gsm sim unlock 1234 ' !!Enter the PIN !!'

Then issue the previous show command again to get a output similar to this:

. Next the actual configuration which is required. This configuration might vary based on the cellular provider used (chat-script). Secondly how you plan on using it, tunnel types or plain etc. I will show the config I used to connect to Vodacom South-Africa and using a straight forward cellular interface to connect to anthe Vodacom Internet APN. A PPP tunnel or dialer interface could also be used but it all depends on what you want to accomplish. I will explain the configuration I used where needed: Firstly define your providers AT command in a chat-script
1! 2 chat-script gsm "" "ATDT*99#" TIMEOUT 30 CONNECT 3!

Next you need to configure your line information:


line 0/0/0 card uses' 2 exec-timeout 0 0 1 3 script dialer GSM 4 modem InOut 5 no exec 6 transport preferred none 7 transport output none '<---This will depend on what slot the

'<---Calls the chat-script'

Then the interface and NAT and other configurations


username 3g-hwic password password password used' ! 02 the APN' 01 03 ! dialer-list 2 protocol ip permit 04 traffic to bring up the dialer' 05 ! 06 interface Loopback0 07 ip address 172.16.1.1 255.255.255.255 08 ! 09 interface FastEthernet0/0 10 description INSIDE 11 ip address 10.0.0.1 255.255.255.0 ip nat inside 12 private addresses' 13 ip virtual-reassembly 14 ! 15 interface Cellular0/0/0 16 description APN-FACING ip address negotiated an IP address' 18 ip nat outside 17 19 ip virtual-reassembly 20 encapsulation ppp 21 dialer in-band 22 dialer idle-timeout 0 23 dialer string GSM dialer-group 2 24 (interesting traffic)' 25 async mode interactive ppp chap hostname 3g-hwic 26 required.' 27 ppp chap password password 28 ppp ipcp dns request '<--- Again uses the chat-script' '<--- References the dialer-list '<--- The NAS will issue your card '<--- NAT needed when coming from '<--- Specifies the username and ' either locally or for

'<--- Specifies interesting

'<--- Username and password is '<--- Local or Providers APN'

29 ! 30 ip nat inside source list 2 interface Cellular0/0/0 overload 31 ip route 0.0.0.0 0.0.0.0 Cellular0/0/0 32 ! 33 access-list 2 permit any

(You might ask why I configured the username and passwords I did above? That is still required, even if it is just used locally.)

(But what if you must authenticate to the cellular provider? Then all that is needed extra is to define the APN username and password in the modem profile below.) . Lastly the APN must be specified in the modem profile (Here I connected to the Vodacom APN internet without any authentication as Vodacom does not require any.
1 VODACOM#cellular 0/0/0 GSM profile create 1 internet 2 Profile 1 will be created with the following values: 3 4 5 APN = unrestricted Are you sure? [confirm] Profile 1 written to modem

. Verify the profile:


1 VODACOM#sh cellular 0/0/0 profile 2 Profile 1 = INACTIVE* down' 4 -------3 5 6 7 8 PDP Type = IPv4 Access Point Name (APN) = internet Authentication = None Username: Password: '<--- NOTE inactive, Cellular still

. Since we using a DDR config, the Cellular interface will only be brought up if there is interesting traffic, either real traffic or traffic created by IP SLA or from the command line.
1 VODACOM#ping 168.210.2.2 2 3 Type escape sequence to abort. 4 Sending 5, 100-byte ICMP Echos to 168.210.2.2, timeout is 2 seconds: 5 6 7 8 *Mar 3 10:37:58.499: %LINK-3-UPDOWN: Interface Cellular0/0/0, changed state to up ...!! Success rate is 40 percent (2/5), round-trip min/avg/max = 92/106/120 ms

Verify the profile again to confirm all is working:


1 VODACOM#sh cellular 0/0/0 profile 2 Profile 1 = ACTIVE* up' 4 -------3 5 6 7 8 PDP Type = IPv4 Access Point Name (APN) = internet Authentication = None Username: Password: '<--- NOTE now its active, Cellular is

Share this:

Share

Like this:
Like Be the first to like this post.

You might also like