Community discussions

MikroTik App
 
artemk
newbie
Topic Author
Posts: 26
Joined: Wed Jun 20, 2012 8:06 pm
Location: Kyiv, Ukraine

Feature request: ability to view MAC address table (FDB)

Thu Jun 02, 2016 2:10 pm

Hello!

It would be good to add an ability to view MAC address table of the switch (L2 Forwarding Database) for troubleshooting purposes. Sometimes it is needed to know whether switch learned MAC address or some remote side. Currently this is not possible.

ARP table is not an option, because remote side may not have an IP configured, and still it is needed to know if it is on link.

We are using VLANs and it is also needed to know in which exactly VLAN the MAC address does appear.

Let me know if any additional clarification needed on this request.

THanks!
Artem
 
pe1chl
Forum Guru
Forum Guru
Posts: 10506
Joined: Mon Jun 08, 2015 12:09 pm

Re: Feature request: ability to view MAC address table (FDB)

Thu Jun 02, 2016 3:38 pm

/interface ethernet switch host print
 
artemk
newbie
Topic Author
Posts: 26
Joined: Wed Jun 20, 2012 8:06 pm
Location: Kyiv, Ukraine

Re: Feature request: ability to view MAC address table (FDB)

Thu Jun 02, 2016 10:38 pm

/interface ethernet switch host print
This do not show required info.
It only shows Mikrotik's own MACs, but NOT learned.

Here is an example:
[artem@RTR01] > /interface ethernet switch host print
Flags: D - dynamic, I - invalid
# SWITCH MAC-ADDRESS PORTS TIMEOUT DROP MIRROR VLAN-ID
0 D switch2 E4:8D:8C:78:BF:D3 switch2-cpu 3m30s no no 1
1 D switch2 E4:8D:8C:78:BF:D8 switch2-cpu 3m30s no no 1

At the same time there are active peers, which I expect to appear in learned addresses list:

[artem@RTR01] > /ip arp print
Flags: X - disabled, I - invalid, H - DHCP, D - dynamic, P - published, C - complete
# ADDRESS MAC-ADDRESS INTERFACE
0 DC aa.bb.131.241 5C:5E:AB:0A:AE:F0 vlan762
1 DC aa.bb.131.249 5C:5E:AB:0A:AE:F0 vlan763

Thanks!
Artem
 
Neilson
Member Candidate
Member Candidate
Posts: 174
Joined: Tue Nov 06, 2012 10:42 pm
Location: Auckland, New Zealand

Re: Feature request: ability to view MAC address table (FDB)

Fri Jun 03, 2016 3:17 am

Hi Artem

What model are you using?

What ROS and Firmware version are you running?

Are all your VLAN's created in the switch menu? Or are they interfaces on the interfaces menu?


On my router at home (Temporarily RB951-2n) running 6.36RC21 (however I am not using VLAN's on my temp home router)
This shows:

[alexander@AJCN-Home-Router-01] > /interface ethernet switch host print
Flags: D - dynamic, I - invalid
# SWITCH MAC-ADDRESS PORTS TIMEOUT DROP MIRROR VLAN-ID
0 D switch1 D4:CA:6D:6E:B3:D9 ether5 3m no no
1 D switch1 D4:CA:6D:25:F8:22 ether3 3m30s no no
2 D switch1 70:B1:4E:52:86:54 ether5 3m30s no no
3 D switch1 D4:CA:6D:2D:EC:41 switch1-cpu 1m30s no no
4 D switch1 C4:2C:03:07:E2:FC ether4 3m30s no no
5 D switch1 B8:C7:5D:C6:1E:4F ether3 3m30s no no
6 D switch1 A4:67:06:80:4F:D7 ether3 3m30s no no
7 D switch1 A8:20:66:2E:6E:EE ether3 3m30s no no
8 D switch1 F8:1A:67:4D:7F:62 ether4 3m30s no no
9 D switch1 6C:AD:F8:E0:D3:AA ether5 3m30s no no
10 D switch1 D4:CA:6D:92:9F:74 ether4 3m30s no no
11 D switch1 58:55:CA:15:D4:8B ether4 3m30s no no
12 D switch1 68:64:4B:59:48:85 ether5 3m30s no no
[alexander@AJCN-Home-Router-01] >

So your issue may be a bug or an implementation interaction with your VLAN's. With more information we may be able to build tests and see what appears to be happening.

If you are able to post your config we may be able to take a look further into that.

Regards
Alexander
 
User avatar
chechito
Forum Guru
Forum Guru
Posts: 3095
Joined: Sun Aug 24, 2014 3:14 am
Location: Bogota Colombia
Contact:

Re: Feature request: ability to view MAC address table (FDB)

Fri Jun 03, 2016 3:34 am

if you are using a bridge take a look on hosts table on bridge section

be sure you are using switch functionality

http://wiki.mikrotik.com/wiki/Manual:Sw ... _Switching
 
pe1chl
Forum Guru
Forum Guru
Posts: 10506
Joined: Mon Jun 08, 2015 12:09 pm

Re: Feature request: ability to view MAC address table (FDB)

Fri Jun 03, 2016 8:45 am

/interface ethernet switch host print
This do not show required info.
It only shows Mikrotik's own MACs, but NOT learned.
Well here it does... show the output of this command:
/interface ethernet export
 
artemk
newbie
Topic Author
Posts: 26
Joined: Wed Jun 20, 2012 8:06 pm
Location: Kyiv, Ukraine

Re: Feature request: ability to view MAC address table (FDB)

Fri Jun 03, 2016 11:48 am

What model are you using?
What ROS and Firmware version are you running?
[artem@RTR01] /system resource> print
uptime: 3d14h53m37s
version: 6.36rc20 (testing)
build-time: May/30/2016 05:56:55
free-memory: 933.5MiB
total-memory: 1011.3MiB
cpu: ARMv7
cpu-count: 2
cpu-load: 2%
free-hdd-space: 86.8MiB
total-hdd-space: 128.3MiB
architecture-name: arm
board-name: RB3011UiAS
platform: MikroTik

[artem@RTR01] /system> routerboard print
routerboard: yes
model: RouterBOARD 3011UiAS
serial-number: ##############
firmware-type: ipq8060
factory-firmware: 3.27
current-firmware: 3.27
upgrade-firmware: 3.27

Are all your VLAN's created in the switch menu? Or are they interfaces on the interfaces menu?
[artem@RTR01] > /interface vlan export
/interface vlan
add interface=ether2 name=vlan29 vlan-id=29
add interface=ether1 name=vlan762 vlan-id=762
add interface=ether1 name=vlan763 vlan-id=763

[artem@RTR01] > /interface ethernet export
/interface ethernet
set [ find default-name=ether3 ] master-port=ether2
set [ find default-name=ether4 ] master-port=ether2
set [ find default-name=ether5 ] master-port=ether2
set [ find default-name=ether7 ] master-port=ether6
set [ find default-name=ether8 ] master-port=ether6
set [ find default-name=ether9 ] master-port=ether6
set [ find default-name=ether10 ] master-port=ether6
/interface ethernet switch vlan
add independent-learning=yes ports=ether1,switch1-cpu switch=switch1 vlan-id=762
add independent-learning=yes ports=ether1,switch1-cpu switch=switch1 vlan-id=763
add independent-learning=yes ports=ether2,switch1-cpu switch=switch1 vlan-id=29


For me it does not look like configuration issue. But if anyone notice anything misconfigured - let me know please.

Thanks!
Artem
 
pe1chl
Forum Guru
Forum Guru
Posts: 10506
Joined: Mon Jun 08, 2015 12:09 pm

Re: Feature request: ability to view MAC address table (FDB)

Fri Jun 03, 2016 4:32 pm

Well, the configuration specifies vlans on ether1, which is not part of your switch1.
OTOH, you specify configuration for these vlans on switch1.

I think it is not correct. I don't know what you want to achieve but you need to look at it again.
 
User avatar
ZeroByte
Forum Guru
Forum Guru
Posts: 4047
Joined: Wed May 11, 2011 6:08 pm

Re: Feature request: ability to view MAC address table (FDB)

Sat Jun 04, 2016 2:52 am

In your config, eth1 is a stand-alone interface which means that it is a layer 3 interface, so the switch will not track MACs. You see MACs on a L3 interface by looking in the ARP table.

If you MUST see MAC info regardless of layer 3, then you need to make a WAN bridge and move the VLAN interfaces onto that bridge. Then you should be able to see some MAC entries in bridge hosts display, but you'll only see things that are either already communicating with your WAN interface directly (thus in the ARP table anyway) or are sending broadcasts.
 
Zorro
Long time Member
Long time Member
Posts: 675
Joined: Wed Apr 16, 2014 2:43 pm

Re: Feature request: ability to view MAC address table (FDB)

Sat Jun 04, 2016 9:56 pm

thats part of 802.1x-2010 subset. specifically 802.1AC and other portions.
 
tansentim
just joined
Posts: 1
Joined: Fri Dec 09, 2016 11:08 am

Re: Feature request: ability to view MAC address table (FDB)

Fri Dec 09, 2016 11:11 am

For the list of layer2 addresses on a port try

/interface ethernet switch unicast-fdb print

I hope this helps.
 
artemk
newbie
Topic Author
Posts: 26
Joined: Wed Jun 20, 2012 8:06 pm
Location: Kyiv, Ukraine

Re: Feature request: ability to view MAC address table (FDB)

Sun Dec 11, 2016 9:38 pm

[admin@RTR01] > /interface ethernet switch unicast-fdb print
bad command name unicast-fdb (line 1 column 28)
[admin@RTR01] > /interface ethernet switch
host port rule vlan edit export find print reset-counters set

Who is online

Users browsing this forum: RogerWilco, tombs and 22 guests