understanding and configuring a

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. I’ve had mails asking how to show some of the configurations. I’ll 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 Cisco’s 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 pro vider’s Network Access Server (NAS), and from there is connected to the provider’s 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).

Upload: msuhas

Post on 05-Apr-2018

218 views

Category:

Documents


0 download

TRANSCRIPT

7/31/2019 Understanding and Configuring A

http://slidepdf.com/reader/full/understanding-and-configuring-a 1/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 beforeI 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 aboutsome options. I’ve had mails asking how to show some of the configurations. I’ll cover those anddo 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 issupported by Cisco’s 1841, 1861, 2800 -series and 3800-series ISR routers. This card onlysupports 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 voiceand data. Universal Mobile Telecommunications System (UMTS) is part of this family. HighSpeed Packet Access (HSPA) is a collection of mobile telephony protocols that extend andimprove the performance of existing UMTS protocols. Two standards, HSDPA and HSUPAhave 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 radiomodem does the hard work in providing physical layer (Layer1) access to the local 3G basestation. The router typically uses PPP as the Layer2 data link to the pro vider’s Network AccessServer (NAS), and from there is connected to the provider’s Layer3 network (which may be aprivate VPN, or public Internet).

The cellular modem must establish a data call, then once connected a PPP session is establishedto 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 commandscan only be issued when the modem is idle (not in a call).

7/31/2019 Understanding and Configuring A

http://slidepdf.com/reader/full/understanding-and-configuring-a 2/6

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 theconnection similar to using a traditional phone number. These modem profiles are stored on themodem and NOT on the routers NVRAM or flash. Note that a modem profile and an IOS dialerprofile are two separate things.

The HWIC-3G-GSM is just a Sierra Wireless MC8775 modem sold in a HWIC form factor witha 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 ATcommands 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 lowlevel debugging of the modem. That is just to tease you. You need proprietary software to usethat 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 asfollow:

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 neededthe extra IOS features.

By default most new SIM cards are protected with a PIN code before they could be used (Thisper 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:

7/31/2019 Understanding and Configuring A

http://slidepdf.com/reader/full/understanding-and-configuring-a 3/6

1 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 thecellular 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 forwardcellular interface to connect to anthe Vodacom Internet APN. A PPP tunnel or dialer interfacecould 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:

1 line 0/0/0 '<---This will depend on what slot thecard uses'

2 exec-timeout 0 0 3 script dialer GSM '<---Calls the chat-script' 4 modem InOut 5 no exec 6 transport preferred none 7 transport output none

7/31/2019 Understanding and Configuring A

http://slidepdf.com/reader/full/understanding-and-configuring-a 4/6

Then the interface and NAT and other configurations

01 username 3g-hwic password password '<--- Specifies the username andpassword used'

02 ! ' either locally or forthe APN'

03 !

04 dialer-list 2 protocol ip permit '<--- Specifies interestingtraffic 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

12 ip nat inside '<--- NAT needed when coming fromprivate addresses'

13 ip virtual-reassembly 14 ! 15 interface Cellular0/0/0 16 description APN-FACING

17 ip address negotiated '<--- The NAS will issue your cardan IP address'

18 ip nat outside 19 ip virtual-reassembly 20 encapsulation ppp 21 dialer in-band 22 dialer idle-timeout 0 23 dialer string GSM '<--- Again uses the chat-script'

24 dialer-group 2 '<--- References the dialer-list(interesting traffic)'

25 async mode interactive

26 ppp chap hostname 3g-hwic '<--- Username and password isrequired.'

27 ppp chap password password '<--- Local or Providers APN' 28 ppp ipcp dns request

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.)

7/31/2019 Understanding and Configuring A

http://slidepdf.com/reader/full/understanding-and-configuring-a 5/6

( But what if you must authenticate to the cellular provider? Then all that is needed extra is todefine 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 APN = unrestricted 4 Are you sure? [confirm] 5 Profile 1 written to modem

.

Verify the profile:

1 VODACOM#sh cellular 0/0/0 profile 2

3 Profile 1 = INACTIVE* '<--- NOTE inactive, Cellular stilldown'

4 -------- 5 PDP Type = IPv4 6 Access Point Name (APN) = internet 7 Authentication = None

8 Username: Password:

.

Since we using a DDR config, the Cellular interface will only be brought up if there is interestingtraffic, 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 Success rate is 40 percent (2/5), round-trip min/avg/max = 92/106/120 ms 7

8 *Mar 3 10:37:58.499: %LINK-3-UPDOWN: Interface Cellular0/0/0, changed stateto up

.

7/31/2019 Understanding and Configuring A

http://slidepdf.com/reader/full/understanding-and-configuring-a 6/6