This is a preview version of the DisplayLink DL-7450 Software Development Kit Documentation. The functionality that is described and made available in this version is subject to addition, removal or change without warning.

class LAN – control an Ethernet interface

This class allows you to control the Ethernet interface.

Constructors

class network.LAN

Create a LAN driver object.

LAN.ifconfig()

Get the IP address, subnet mask, gateway and DNS for the interface. This method returns a 4-tuple with the above information. For example:

ip, subnet, gw, dns = nic.ifconfig()
LAN.mac()

Get the MAC address of the network interface. For example:

mac_address = nic.mac()