Manual:Detect internet: Difference between revisions

From MikroTik Wiki
Jump to navigation Jump to search
(Created page with "{{Versions| v6.41 +}} __TOC__ ==Summary== Detect Internet is a tool that categorizes monitored interfaces into three states - Internet, WAN and LAN. ===LAN=== All layer...")
 
No edit summary
 
(4 intermediate revisions by 3 users not shown)
Line 3: Line 3:
__TOC__
__TOC__


{{ warning | Article is migrated to our new manual: https://help.mikrotik.com/docs/display/ROS/RouterOS }}


==Summary==
==Summary==


Detect Internet is a tool that categorizes monitored interfaces into three states - Internet, WAN and LAN.
Detect Internet is a tool that categorizes monitored interfaces into following states - Internet, WAN, LAN, unknown and no-link.


===LAN===
===LAN===
Line 14: Line 16:
===WAN===
===WAN===


Any tunnel and LTE interfaces will always have this state. Layer 2 interfaces can obtain this state if:
Any L3 tunnel and LTE interfaces will initially have this state. Layer 2 interfaces can obtain this state if:
<ul>
<ul>
<li>interface has an active route to 8.8.8.8.
<li>interface has an active route to 8.8.8.8 in main routing table.
<li>interface can obtain an address from DHCP (does not apply if DHCP server is running Detect Internet).
<li>interface can obtain (or has obtained) an address from DHCP (does not apply if DHCP server is also running Detect Internet on the DHCP server interface).
</ul>
</ul>


{{ Note | WAN interface can fall back to LAN state only when physical link status changes. }}  
{{ Note | WAN interface can fall back to LAN state only when link status changes. }}
{{ Note | LAN interfaces get locked to LAN after 1h and then change only when link status changes. }}


===Internet===
===Internet===


WAN interfaces that can reach cloud.mikrotik.com using UDP protocol can obtain this state. Reachability is checked every minute. If cloud is not reached for 3 minutes, state falls back to WAN.
WAN interfaces that can reach cloud.mikrotik.com using UDP protocol port 30000 can obtain this state. Reachability is checked every minute. If cloud is not reached for 3 minutes, state falls back to WAN.


==Configuration==
==Configuration==

Latest revision as of 07:12, 7 May 2021

Version.png

Applies to RouterOS: v6.41 +


Icon-warn.png

Warning: Article is migrated to our new manual: https://help.mikrotik.com/docs/display/ROS/RouterOS


Summary

Detect Internet is a tool that categorizes monitored interfaces into following states - Internet, WAN, LAN, unknown and no-link.

LAN

All layer 2 interfaces initially have this state.

WAN

Any L3 tunnel and LTE interfaces will initially have this state. Layer 2 interfaces can obtain this state if:

  • interface has an active route to 8.8.8.8 in main routing table.
  • interface can obtain (or has obtained) an address from DHCP (does not apply if DHCP server is also running Detect Internet on the DHCP server interface).
Icon-note.png

Note: WAN interface can fall back to LAN state only when link status changes.


Icon-note.png

Note: LAN interfaces get locked to LAN after 1h and then change only when link status changes.


Internet

WAN interfaces that can reach cloud.mikrotik.com using UDP protocol port 30000 can obtain this state. Reachability is checked every minute. If cloud is not reached for 3 minutes, state falls back to WAN.

Configuration

Sub-menu: /interface detect-internet


Property Description
detect-interface-list (interface list; Default: none) All interfaces in the list will be monitored by Detect Internet
internet-interface-list (interface list; Default: none) Interfaces with state Internet will be dynamically added to this list
lan-interface-list (interface list; Default: none) Interfaces with state Lan will be dynamically added to this list
wan-interface-list (interface list; Default: none) Interfaces with state Wan will be dynamically added to this list

State

Sub-menu: /interface detect-internet state


This submenu displays status of all monitored interfaces defined by detect-interface-list parameter.