Detect Internet is a tool that categorizes monitored interfaces into the 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:
- an interface has an active route to 8.8.8.8.
- an 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).
Infonote |
---|
Note: WAN interface can fall back to LAN state only when link status changes. 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 a cloud is not reached for 3 minutes, the state falls back to WAN.
Configuration
...
Code Block | ||
---|---|---|
| ||
/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 |
Code Block | |
---|---|
|
State
...
| |
[admin@MikroTik] > interface detect-internet print
detect-interface-list: none
lan-interface-list: none
wan-interface-list: none
internet-interface-list: none |
State
This submenu displays status of all monitored interfaces defined by the detect-interface-list parameter
...
:
Code Block | ||
---|---|---|
| ||
/interface detect-internet state |