Reboot the 4G modem of MSR810-LMS-EA every 30s, reboot the device after 5 reboots

2022-03-22 01:56:27 Published
  • 0 Followed
  • 0Collected ,1555Browsed

Network Topology

A 4G SIM card is inserted into the device, and the user accesses the 4G network through DDR dial-up.


Problem Description

Customer requirements: The device performs network connectivity detection every 15 minutes. If it detects that the network is unreachable, it reboots the modem for a total of 5 times. If there is a successful detection in the middle, the detection failure count is reset. If the network is still unreachable after rebooting the modem 5 times, reboot the router.


Process Analysis

After analysis, we can use EAA combined with NQA detection to reboot the modem and device.

Solution

Configuration reference:

 

#

track 1 nqa entry ech1/0:0 1 reaction 1

#

track 2 nqa entry ech1/0:0 1 reaction 2

#

track 3 nqa entry ech1/0:0 1 reaction 3

#

track 4 nqa entry ech1/0:0 1 reaction 4

#

track 5 nqa entry ech1/0:0 1 reaction 5

#

track 6 nqa entry ech1/0:0 1 reaction 6

#

 dialer-group 89 rule ip permit

#

nqa entry ech1/0:0 1

 type icmp-echo

  destination ip x.x.x.x

  frequency 30000          //modem reboot and resume dial-up time, typically within 90 seconds 

  history-record enable

  history-record number 10

  out interface Eth-channel1/0:0

  probe timeout 2000

  reaction 1 checked-element probe-fail threshold-type consecutive 1 action-type trigger-only

  // After the 1st restart, NQA detection still fails, restart 1 time every 90 seconds (detection failure 3 times), total 5 times; if there is a successful detection in the middle, start counting NQA failures again

 

  reaction 2 checked-element probe-fail threshold-type consecutive 4 action-type trigger-only

  reaction 3 checked-element probe-fail threshold-type consecutive 7 action-type trigger-only

  reaction 4 checked-element probe-fail threshold-type consecutive 10 action-type trigger-only

  reaction 5 checked-element probe-fail threshold-type consecutive 13 action-type trigger-only

  reaction 6 checked-element probe-fail threshold-type consecutive 16 action-type trigger-only

#

apn-profile profile69

 apn dynamic

#

controller Cellular1/0

 description Multiple_Line1-OTHER

 eth-channel 0

#

interface Eth-channel1/0:0

 dialer circular enable

 dialer-group 89

 dialer timer wait-carrier 10

 dialer timer autodial 5

 dialer number *99# autodial

 ip address cellular-alloc

 tcp mss 1280

 nat outbound

 apn-profile apply profile69

#

ip route-static 0.0.0.0 0 Eth-channel1/0:0 preference 100

#

rtm cli-policy 1

 event track 1 state negative

 action 0 cli system-view

 action 1 cli controller Cellular 1/0

 action 2 cli modem reboot

 action 3 cli return

 user-role network-admin

commit

#

rtm cli-policy 2

 event track 2 state negative

 action 0 cli system-view

 action 1 cli controller Cellular 1/0

 action 2 cli modem reboot

 action 3 cli return

 user-role network-admin

 commit

#

rtm cli-policy 3

 event track 3 state negative

 action 0 cli system-view

 action 1 cli controller Cellular 1/0

 action 2 cli modem reboot

 action 3 cli return

 user-role network-admin

 commit

#

rtm cli-policy 4

 event track 4 state negative

 action 0 cli system-view

 action 1 cli controller Cellular 1/0

 action 2 cli modem reboot

 action 3 cli return

 user-role network-admin

 commit

#

rtm cli-policy 5

 event track 5 state negative

 action 0 cli system-view

 action 1 cli controller Cellular 1/0

 action 2 cli modem reboot

 action 3 cli return

 user-role network-admin

 commit

#

rtm cli-policy 6

 event track 6 state negative

 action 0 cli save force

 action 1 cli reboot force

 action 2 cli y

 user-role network-admin

 commit

#

[H3C]


Please rate this case:   
0 Comments

No Comments

Add Comments: