Community discussions

MikroTik App
 
cainos
just joined
Topic Author
Posts: 6
Joined: Sun Feb 08, 2015 2:23 am

How to shutdown a port programmatically?

Sun Feb 08, 2015 2:59 am

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
You do not have the required permissions to view the files attached to this post.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Mon Feb 09, 2015 9:43 pm

X status means disabled. Why do you think it's up?
 
User avatar
ShayanFiroozi
Member Candidate
Member Candidate
Posts: 281
Joined: Sat Jun 01, 2013 12:44 pm
Location: Bandar Abbas , Iran

Re: How to shutdown a port programmatically?

Tue Feb 10, 2015 1:16 pm

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
 
cainos
just joined
Topic Author
Posts: 6
Joined: Sun Feb 08, 2015 2:23 am

Re: How to shutdown a port programmatically?

Wed Feb 11, 2015 9:54 am

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...
You do not have the required permissions to view the files attached to this post.
 
conecting
newbie
Posts: 37
Joined: Sat Jul 12, 2014 11:38 pm

Re: How to shutdown a port programmatically?

Wed Feb 11, 2015 11:15 am

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...
 
Rudios
Forum Veteran
Forum Veteran
Posts: 972
Joined: Mon Mar 11, 2013 12:58 pm
Location: The Netherlands

Re: How to shutdown a port programmatically?

Thu Feb 12, 2015 9:42 am

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
 
User avatar
ShayanFiroozi
Member Candidate
Member Candidate
Posts: 281
Joined: Sat Jun 01, 2013 12:44 pm
Location: Bandar Abbas , Iran

Re: How to shutdown a port programmatically?

Thu Feb 12, 2015 3:32 pm

that's not possible !! if you disabled an ether1 no connection could established , maybe hardware or software bug , report to support
 
cainos
just joined
Topic Author
Posts: 6
Joined: Sun Feb 08, 2015 2:23 am

Re: How to shutdown a port programmatically?

Thu Feb 26, 2015 9:36 am

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

Who is online

Users browsing this forum: No registered users and 57 guests