Python 100 project #28: Gateway MAC address getter

I thought it’s quite easy to get the default gateway information from PCs or MAC. But found out it was quite tough, it really depends on OS platform. So I ended up using third party library “netifaces“, which is quite easy to use to retrieve local address information. This time I created a small function to retrieve default gateway MAC address.

Output Example:

Here is the code: