Getting Mac Address on connected IP phones

Home » Asterisk Users » Getting Mac Address on connected IP phones
Asterisk Users 7 Comments

I am struggling to get the mac-addresses of IP phones that are connected
to asterisk as the phone are in different VLAN with * and they were
manually configured. I want to centralize their configuration using
res_phoneprov or tftp

I have tried nmap and arp in vain.

Any idea?

Sam

7 thoughts on - Getting Mac Address on connected IP phones

  • ping + arp isn’t going to work if they’re on a different VLAN.
    I believe this will work:

    1) Set up your TFTP server, but do not put any configuration files in
    the /tftpboot directory (or whatever the directory is).
    2) Set the DHCP server on the phones’ network to hand out the TFTP
    server address.
    3) Reboot the phones
    4) Watch the TFTP server logs and you should see each phone request a
    file based on its MAC. With no downloaded config file, the phone should
    revert to what it already has in nvram.
    5) Collect MAC addresses out of the server logs
    6) Profit?

  • Your router knows the MAC addresses of the phones. So does your DHCP server, if they are using DHCP.

  • Am 14.03.2012 00:34, schrieb James Sharp:

    Too complicated. Just have a look on the switch(es) the phones are
    connected to.

  • I understand you want to choose the easy way but I really think you should not be lazy and go phone by phone and write down the Mac address. Of course if that’s ever possible…

    For future ease of administering those phones, like if you want to do provisioning, troubleshooting etc etc. Better go make one round and than have far more work later on.

    This is my honest opinion only. Good luck!

    Sent from my iPhone