Changeset 14251 in hybrid


Ignore:
Timestamp:
Nov 29, 2018, 9:12:08 PM (6 years ago)
Author:
rick
Message:

Add new UBNT ranges to bridge detection

Fixes: nodefactory#223

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/releng-11/nanobsd/files/etc/motd.cshrc

    r13482 r14251  
    1515echo ""
    1616echo "Active Bridges:"
    17 arp -na | grep -e ' 00:15:6d' | sed -e 's/^/ - /' | grep ' ' || echo " - none"
     17# MAC OIDs Ubiquiti Networks
     18#
     19# curl 'https://code.wireshark.org/review/gitweb?p=wireshark.git;a=blob_plain;f=manuf' |\
     20# awk '{print $1}' | cut -c -8 | tr 'A-Z' 'a-z' | tr '\n' '|'
     21arp -na | grep -E ' (00:15:6d|00:27:22|00:50:c2|04:18:d6|18:e8:29|24:a4:3c|44:d9:e7|68:72:51|74:83:c2|78:8a:20|80:2a:a8|b4:fb:e4|dc:9f:db|e0:63:da|f0:9f:c2|fc:ec:da)'  | sed -e 's/^/ - /' | grep ' ' || echo " - none"
    1822echo ""
    1923echo "Active Neighbors:"
    20 arp -na | grep -v 'permanent' | grep ' 00:0d:b9' |\
     24# MAC OID PC Engines GmbH
     25arp -na | grep -v 'permanent' | grep -E ' 00:0d:b9' |\
    2126  sed -e 's/^/ - /' -e 's/.wleiden.net//' -e 's/expires .*$//' |\
    2227  grep ' ' || echo " - none"
Note: See TracChangeset for help on using the changeset viewer.