Community discussions

MikroTik App
 
bendersk
just joined
Topic Author
Posts: 4
Joined: Tue Aug 25, 2020 3:50 am

how to unset interface advertisement

Tue Aug 25, 2020 3:57 am

How do unset a /interface ethernet rule. I want the advertise statement gone, when i try to unset it asks for a number? but i dont want to remove number 2, just unset the advertisement config

[admin@MikroTik] /interface ethernet> print
Flags: X - disabled, R - running, S - slave
# NAME MTU MAC-ADDRESS ARP SWITCH
0 ether1 1500 C4:AD:34:EB:8F:72 enabled
1 R sfp-sfpplus1 1500 C4:AD:34:EB:8F:6A enabled
2 sfp-sfpplus2 1500 C4:AD:34:EB:8F:6B enabled
3 sfp-sfpplus3 1500 C4:AD:34:EB:8F:6C enabled
4 sfp-sfpplus4 1500 C4:AD:34:EB:8F:6D enabled
5 sfp-sfpplus5 1500 C4:AD:34:EB:8F:6E enabled
6 sfp-sfpplus6 1500 C4:AD:34:EB:8F:6F enabled
7 sfp-sfpplus7 1500 C4:AD:34:EB:8F:70 enabled
8 R sfp-sfpplus8 1500 C4:AD:34:EB:8F:71 enabled
[admin@MikroTik] /interface ethernet> export
# aug/24/2020 17:55:08 by RouterOS 6.47.2
# software id = 4QIX-240F
#
# model = CCR1072-1G-8S+
# serial number = 8A350B8CB72D
/interface ethernet
set [ find default-name=sfp-sfpplus2 ] advertise=\
10M-half,10M-full,100M-half,100M-full,1000M-half,1000M-full,2500M-full,5000M-full,10000M-full full-duplex=no speed=1Gbps
[admin@MikroTik] /interface ethernet>
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: how to unset interface advertisement

Tue Aug 25, 2020 7:25 am

Use winbox and set or unset whatever speed advertisements you need.

You can also use unset command in cli.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 11635
Joined: Thu Mar 03, 2016 10:23 pm

Re: how to unset interface advertisement  [SOLVED]

Tue Aug 25, 2020 7:57 am

I want the advertise statement gone, when i try to unset it asks for a number? but i dont want to remove number 2, just unset the advertisement config

The way export command works is that it displays settings which are different than (current) default.

So what /interface ethernet export is saying in your case is that the advertised speeds for interface sfp-sfpplus2 is different than default (the rest of interfaces obviously have it set to defaults). Unseting whole advertise list (or setting it to empty value) won't make the line go away from export. You should rather set the list to default value.

I don't have CCR1072-1G-8S+ so I don't have a clue what might be default value. But you can get it by running command /interface ethernet print detail where default-name=sfp-sfpplus1 or by running command /interface ethernet export verbose (the later is like export but prints all settings, including the default ones). Then copy-paste the advertise= list from one of the rest of interfaces into command /interface ethernet set [ find default-name=sfp-sfpplus2 ] advertise=<list of speeds> ...
 
bendersk
just joined
Topic Author
Posts: 4
Joined: Tue Aug 25, 2020 3:50 am

Re: how to unset interface advertisement

Wed Aug 26, 2020 7:11 am

I want the advertise statement gone, when i try to unset it asks for a number? but i dont want to remove number 2, just unset the advertisement config

The way export command works is that it displays settings which are different than (current) default.

So what /interface ethernet export is saying in your case is that the advertised speeds for interface sfp-sfpplus2 is different than default (the rest of interfaces obviously have it set to defaults). Unseting whole advertise list (or setting it to empty value) won't make the line go away from export. You should rather set the list to default value.

I don't have CCR1072-1G-8S+ so I don't have a clue what might be default value. But you can get it by running command /interface ethernet print detail where default-name=sfp-sfpplus1 or by running command /interface ethernet export verbose (the later is like export but prints all settings, including the default ones). Then copy-paste the advertise= list from one of the rest of interfaces into command /interface ethernet set [ find default-name=sfp-sfpplus2 ] advertise=<list of speeds> ...
Yeah this worked like a charm thanks!

Who is online

Users browsing this forum: Bing [Bot] and 16 guests