How to shutdown a port programmatically?

I want to know if is possible to disable/enable a port (link down/up) on rb951-2n, RouterOS 6.26
I disabled ether5, I tried to uncheck all link capabilities 10/100, but link is still up.
How to do “link down” on ether5 without unplug cable?
eth5.JPG
capabilities.JPG

X status means disabled. Why do you think it’s up?

Hi
jarda is right , send you network map ,if you think it’s up maybe traffic is traveling through another port , in that case you should have loop on your network if RSTP in not running

Maybe I not explained exactly, just try following easy steps:

  1. Disable your ether5 interface

  2. Connect any ethernet device to ether5 (in my case laptop)

what we see?

one side, mikrotik, link on ether5 is on:
ether5-link-on.JPG
other side, laptop:
connected-link-on.JPG
Now, what needed (to shutdown physically ether5 without unplug cable)
link-down.png
hope this will help you to understand…

Well I know that this solution is not full proper solution but it will work.
open winbox.
IP-> firewall
add firewall rule

chain forward
in interface eth5(or other name depends on your network configuration)
!(negation) out interface eth5(or other name depends on your network configuration)

click on top on action and choose drop and hit apply button.
this firewall rule should work…

That looks weird.

I have just checked with one of my RB750UP’s and when I disable any port, the led will turn off and the connected computer shows disconnected cable state.

Maybe it is worth installing via NetInstall

that’s not possible !! if you disabled an ether1 no connection could established , maybe hardware or software bug , report to support

Yes, I tested on other model (750GL) and link goes down if I disable interface. Thank’s for advice!