title: get MAC address for mobile broadband modem in python
body: <p>I want to get the MAC address for my network interface on Linux. I am using Python with PyQt4 modules. When I run this code:</p>
  
  <pre><code>form PyQt4.QtNetwork import *
  def getinfo():
    all_info = QNetworkInterface().allInterfaces()
    for interface in all_info:
          print interface.hardwareAddress()," ",interface.humanReadableName()
  </code></pre>
  
  <p>I get this outout:</p>
  
  <pre><code>00:00:00:00:00:00   lo
  00:26:2D:8C:8F:B3   eth3
  F0:7B:CB:3B:82:2B   wlan3
    ppp0
  </code></pre>
  
  <p>It works fine with <code>eth3</code> and <code>wlan3</code>, but with <code>ppp0</code> which runs on my mobile broadband modem, the MAC address doesn't appear.</p>