Projet

Général

Profil

L2 » Historique » Version 5

Version 4 (Laurent GUERBY, 20/12/2015 12:07) → Version 5/10 (Mehdi Abaakouk, 24/12/2015 16:08)

{{>toc}}

h1. L2

Decouvertes des MAC et de la topologie niveau 2

h2. Commandes



h3. ubnt antenna

<pre>
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
</pre>

h3. toughswitch

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

h3. ubnt misc

<pre>
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
</pre>

h3. airfiber


<pre>
aflist
af get rmac
</pre>

h3. mikrotik CRS226

<pre>
/interface ethernet switch unicast-fdb print
</pre>

h3. mikrotik RB750UP

<pre>
/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])

</pre>

h3. Netonix

Interactive shell
<pre>
show config
show status
show
mac table
</pre>

Script shell
<pre>
cat /tmp/boot-config.json # config
cat /tmp/5min.json # status
cat /tmp/mactable.json # mactable

</pre>

h3. TP-Link SG3424

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

h3. S4810

<pre>
sh mac-address-table dynamic
</pre>