Project

General

Profile

L2 » History » Version 5

« Previous - Version 5/10 (diff) - Next » - Current version
Mehdi Abaakouk, 12/24/2015 04:08 PM


L2

Decouvertes des MAC et de la topologie niveau 2

Commandes

ubnt antenna

brctl show
# => ordre des ports dans showmacs
brctl showmacs br0
# premiere colonne = numero du port
/usr/www/sta.cgi
# sur sta donne la MAC de l'AP
# sur AP donne la MAC des STA

toughswitch

/usr/www/mactable_data.cgi
...
"mac": "24:a4:3c:3d:ef:3b", "port": 6, "fid" : 1, "queue": 0, "is_static": 0,

ubnt misc

date
/usr/www/ipscan.cgi
ping6 -q -c 1 ff02::1%br0 # remplir la table MAC
/usr/www/mactable_data.cgi
ip ne
ip -6 ne
iwlist ath0 peers
/usr/www/sta.cgi
/usr/www/status.cgi
ubntbox mca-status
athbox athstats
athbox 80211status
athbox radartool
cat /proc/net/arp
brctl show
brctl showmacs br0
cat /proc/net/dev
cat /tmp/running.cfg

airfiber

aflist
af get rmac

mikrotik CRS226

/interface ethernet switch unicast-fdb print

mikrotik RB750UP

/interface ethernet switch host print
:put [/system routerboard get model]
:put [/interface bridge get 0 mac-address]
:put [/tool mac-scan all duration=1]
foreach i in=[/interface ethernet switch host find] do={:put ([/interface ethernet switch host get $i mac] . " " . [/interface ethernet switch host get $i port])

Netonix

Interactive shell

show config
show status
show mac table

Script shell

cat /tmp/boot-config.json # config
cat /tmp/5min.json # status
cat /tmp/mactable.json # mactable

TP-Link SG3424

show mac add add all
show mac add int gigabitEthernet 1/0/2
show mac add vlan 3131

S4810

sh  mac-address-table dynamic