cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1772
Views
0
Helpful
4
Replies

3G Dual SIM failover on Cisco887VAG-K9

thilinar8
Level 1
Level 1

Hi All,

i am trying to do sim failover when there is any rechability issues:

i configured router with EEM: But its not working: is there anyone who could help with this config

 

multilink bundle-name authenticated
chat-script 3G-SIM "" "AT!SCACT=1" TIMEOUT 60 "OK"
license udi pid C887VAG+7-K9 sn FXXXXXXXXXXXXXXXX

 

controller Cellular 0
 gsm sim max-retry 5
 gsm failovertimer 5
 gsm gps mode standalone
no cdp run
!
track 10 ip sla 10
!
track 20 ip sla 20
!
track 30 ip sla 30 reachability

 

 

interface Cellular0
 description <[ 3G Interface ]>
 ip ddns update dyndns
 ip address negotiated
 ip access-group INTERNET_IN in
 ip access-group INTERNET_OUT out
 no ip redirects
 no ip unreachables
 no ip proxy-arp
 ip flow ingress
 ip nat outside
 ip inspect INTERNET_FW out
 ip virtual-reassembly in
 encapsulation slip
 dialer in-band
 dialer idle-timeout 0
 dialer string hspa-R7
 dialer string 3G-SIM
 dialer-group 1
 async mode interactive
 crypto map CLIENTMAP

 

 

ip sla auto discovery
ip sla 10
 icmp-echo 8.8.8.8
 frequency 480
 timeout 15000
ip sla schedule 10 life forever start-time now
ip sla 20
 icmp-echo 8.8.8.8
 frequency 300
 timeout 15000
ip sla schedule 20 life forever start-time now
ip sla 30
 icmp-echo 8.8.8.8
 frequency 1800
ip sla schedule 30 life forever start-time now
logging history debugging
dialer-list 1 protocol ip permit

 

line 3
 exec-timeout 0 0
 script dialer 3G-SIM
 modem InOut
 no exec
 transport input all
 rxspeed 21600000
 txspeed 5760000

 

event manager applet 3G-FAIL
 event tag E1 track 10 state down
 action 1.0 track read 10
 action 1.1 if $_track_state eq "down"
 action 1.2  cli command "enable"
 action 1.3  cli command "N3tst@r"
 action 1.4  cli command "clear interface cellular 0"
 action 1.5  cli command "cellular 0 gsm sim activate slot 0"
 action 1.6 end
event manager applet 3G-failover
 event tag E3 track 20 state down
 action 2.0 track read 20
 action 2.1 if $_track_state eq "down"
 action 2.2  cli command "enable"
 action 2.3  cli command "N3tst@r"
 action 2.4  cli command "clear interface cellular 0"
 action 2.5  cli command "cellular 0 gsm sim activate slot 1"
 action 2.6 end
event manager applet 3G-Loss
 event tag E5 track 30 state down
 action 3.0 track read 30
 action 3.1 if $_track_state eq "down"
 action 3.2  cli command "enable"
 action 3.3  cli command "N3tst@r"
 action 3.4  cli command "reload"
 action 3.5  cli command "yes"
 action 3.6 end

 

 

 

4 Replies 4

Joe Clarke
Cisco Employee
Cisco Employee

You don't need to do some of this.  Try this applet instead:

event manager applet 3G-FAIL
 event track 10 state down
 action 1.1 if $_track_state eq "down"
 action 1.2  cli command "enable"
 action 1.4  cli command "clear interface cellular 0"
 action 1.5  cli command "cellular 0 gsm sim activate slot 0"
 action 1.6 end
event manager applet 3G-failover
 event track 20 state down
 action 2.1 if $_track_state eq "down"
 action 2.2  cli command "enable"
 action 2.4  cli command "clear interface cellular 0"
 action 2.5  cli command "cellular 0 gsm sim activate slot 1"
 action 2.6 end
event manager applet 3G-Loss
 event track 30 state down
 action 3.1 if $_track_state eq "down"
 action 3.2  reload
 action 3.6 end

 

I'm also not sure the track 30 is doing what you want.  Just because the IPSLA collector runs every 1800 seconds, doesn't mean that a failure has anything do with 1800 seconds.  Meaning, that if the collector happens to run at the moment Google is unreachable, then the router will reload.  Is that what you want?

Hi Joseph,'yes thats true: i want reload the router if nothing reachable:

Okay.  It's just the way you have the IPSLA config now, if Google is unreachable for five seconds, the router reloads.  The other collectors wouldn't even have a chance to timeout.  I think you want to add a timeout parameter to collector 30.

Hi Joseph,

i'll check and let you know ASAP

 

thanks a lot for your support