This configuration example is for use with a 3G WIC card within a Cisco based
Router.
This was configured with a Vodafone Network.
Initialization
Place the SIM card into it, then insert the card in the router and power it on.
Create a Profile specific to your mobile ISP
- Insert the APN told by your ISP (Vodafone UK: ‘Internet’ username: ‘web’ password: ‘web’)
- Insert the authentication method (chap or pap) and the credentials, also supplied from your ISP
Below is an example of a Vodafone UK Cellar Profilule.
Router# cellular 0/0/0 gsm profile create 1 Internet chap web web
From the profile you’ve just created, you can review it using command
router# sh cellular 0 profile
Profile Information
====================
Profile 1 = ACTIVE
--------
PDP Type = IPv4
PDP address = 192.168.1.1
Access Point Name (APN) = Internet
Authentication = PAP
Username: web, Password: web
* - Default profile
Configuration
You need to define a chat script first, which is used for modem setup and call
initialization. If you are familiar with IOS dial configurations, you feel at home.
Please note that the last number in the dial string (1 in the example below) refers
to the modem profile number you hopefully have defined earlier.
! your chat script
chat-script vodafone “” “ATDT*98*1#” TIMEOUT 60 CONNECT
! the bare interface config
! subcommands at the Cellular interface
interface Cellular0/0/0
ip address negotiated
ip virtual-reassembly
encapsulation ppp
dialer in-band
dialer idle-timeout 0
dialer string vodafone
dialer-group 1
async mode interactive
ppp chap hostname web
ppp chap password 0 web
ppp ipcp dns request
!
ip route 0.0.0.0 0.0.0.0 Cellular0
dialer-list 1 protocol ip permit
! this is the async line assigned to the 3G modem
you need to specify your chat script here
line 0/0/0
script dialer vodaphone
no exec
rxspeed 3600000
txspeed 384000
If cellular int does not get an ip address, might need to go into
config t and add this line even thou we see it above :
line 0/0/0
script dialer vodaphone
!
!
show command:
Just in case you need it for troubleshooting, here are the show commands to use.
- show cellular 0 network
- show cellular 0 hardware
- show cellular 0 connection
- show cellular 0 radio
- show cellular 0 profile
- show cellular 0 security
- show cellular 0 all Debug commands :
- debug chat Rather than reloading the router to restart the module, you can
actually using CLI to reset or reboot the module :
debug chat
router(config)# service internal
router(config)# exit
router# test cellular 0 modem-power-cycle ! for rebooting
router# test cellular 0 modem-reset ! for resetting
debug commands :
debug chat
debug modem
debug dialer events
debug ppp authentication
- Remember to create the Cellular Profile, after tftp config to router :
cellular 0/0/0 gsm profile create 1 Internet chap web web
- This is the bare configuration, you will need to add NAT, firewalls etc etc.