Restarting the 5G Modem to Recover a 5G Link
Context
The 5G function of a router is implemented by the built-in 5G modem. Therefore, the 5G modem needs to work properly to ensure that a 5G link of the router works properly. The 5G modem is restarted automatically when it detects an exception. If the 5G modem cannot be restarted automatically, restart it manually. To enable a 5G link to automatically recover from a fault when users are not onsite, you can configure the 5G modem restart function. The 5G modem can be automatically restarted to recover the 5G link. When the 5G modem is restarted, services on the 5G cellular interface are interrupted. The device can be configured to automatically restart the 5G modem in the following scenarios:
- When a 5G cellular interface is not attached to a PS domain, configure the device to automatically restart the 5G modem at a specified interval. After the configuration, the 5G modem is automatically restarted and starts to dial up at the specified interval until the 5G cellular interface is attached to a PS domain.
- When a 5G cellular interface is in no-service state due to network conditions or other reasons, set the maximum number of automatic restarts of the 5G modem and the no-service state detection period. After the configuration, the device automatically restarts the 5G modem if it detects that the 5G cellular interface has been in no-service state for the specified detection period. If the 5G cellular interface enters the in-service state within the detection period or the number of automatic restarts of the 5G modem reaches the maximum value, the 5G modem is not restarted.
- You can set the maximum number of consecutive dial-up failures on the 5G cellular interface. After the configuration, the device restarts the 5G modem when the number of consecutive dial-up failures reaches the maximum value.
- When the downlink traffic of a 5G cellular interface is abnormal, the device sends ICMP packets to detect whether the DNS server is reachable. If the DNS server is unreachable, the device restarts the 5G modem.
Procedure
- Run system-view
The system view is displayed.
- Run interface cellular interface-number
The 5G cellular interface view is displayed.
- Configure the device to automatically restart the 5G modem.
- Configure the device to automatically restart the 5G modem when the 5G cellular interface is not attached to a PS domain.
- Run packet-service recover interval
The device is configured to automatically restart the 5G modem at the specified interval.
By default, the device does not automatically restart the 5G modem.
- Run packet-service recover interval
- Configure the device to automatically restart the 5G modem when the 5G cellular interface is in no-service state.
- Run modem auto-recovery services-unavailable action modem-reboot test-times times interval interval
The maximum number of automatic restarts of the 5G modem and the no-service state detection period are set.
By default, the maximum number of automatic restarts of the 5G modem and the no-service state detection period are not set. That is, the device does not restart the 5G modem when a 5G cellular interface is in no-service state.
- Only V300R019C11SPC100 and later versions support an automatic switchover between the active and standby SIM cards.
- Run modem auto-recovery services-unavailable action modem-reboot test-times times interval interval
- Configure the device to automatically restart the 5G modem when consecutive dial-up failures occur on the 5G cellular interface.
- Run modem auto-recovery dial action modem-reboot fail-times times
The maximum number of dial-up failures is set. When the number of consecutive dial-up failures reaches the maximum value, the device automatically restarts the 5G modem.
By default, the maximum number of dial-up failures is not configured. That is, the device does not restart the 5G modem or restart itself when the dial-up fails for several consecutive times.
- Run modem auto-recovery dial action modem-reboot fail-times times
- Configure the device to send ICMP packets to detect whether the DNS server is reachable when the downlink traffic of the 5G cellular interface is abnormal. If the DNS server is unreachable, the device restarts the 5G modem:
- Run modem auto-recovery icmp-unreachable action modem-reboot
The device is configured to send ICMP packets to detect whether the DNS server is reachable when the downlink traffic of the 5G cellular interface is abnormal. If the DNS server is unreachable, the device restarts the 5G modem.
By default, the device is not enabled to send ICMP packets to detect whether the DNS server is reachable when the downlink traffic of a 5G cellular interface is abnormal. If the DNS server is unreachable, the device restarts the 5G modem to restore the link.
This function is supported in V300R019C11SPC200 and later versions.
- Run modem auto-recovery icmp-unreachable action modem-reboot
- Configure the device to automatically restart the 5G modem when the 5G cellular interface is not attached to a PS domain.
- (Optional) Run modem reboot
The 5G modem is manually restarted when it cannot be automatically restarted.