DefaultIfaceNetsh¶
- class getmac.getmac.DefaultIfaceNetsh[source]¶
Bases:
MethodUse
netsh.exeto find the default interface on Windows: the interface of the IPv4 default route (0.0.0.0/0) with the lowest metric.Microsoft Documentation: netsh
Attributes Summary
The type of method, e.g. does it get the MAC of a interface.
Platforms supported by a method.
Methods Summary
get([arg])Core logic of the method that performs the lookup.
test()Low-impact test that the method is feasible, e.g. a command exists.
Attributes Documentation
- method_type: str = 'default_iface'¶
The type of method, e.g. does it get the MAC of a interface.
Allowed values:
ip
ip4
ip6
iface
default_iface
Methods Documentation