hello
how to know if ethernet is not running or unplugged ?
regards
hello
how to know if ethernet is not running or unplugged ?
regards
in menu interface
if interface have a R is running and plugged, if not have a R is unplugged.
By a script
use script to log display?
:do {
:local status
:set status [/interface get [/interface find name="ether1"] running]
:if ($status=true) do={
:log warning ("ether1 is running")}
:if ($status=false) do={
:log warning ("ether1 is no run")
}}
What i want to know if the interface ether1 is unpluged the it should disable ether5 and when it is pluged again then ether5 is enabled
you must be on x86?
/interface ethernet> set [find] disable-running-check=no
that will disable the interface automatically when its not linked.
I really don’t know what you do
ether1 disabled and disable ether5?
ether1 enabled and enable ether5?
thank you for your help
i edited the script and it works fine for me
:do {
:local status
:set status [/interface get [/interface find name=“ether1”] running]
:if ($status=true) do={
:log warning (“ether1 is running”)}
/ interface enable ether5
:if ($status=false) do={
:log warning (“ether1 is no run”)
/ interface disable ether5
}}
regards