Manual pages › System administration commands (1M)
dlpi-mac(1M)
print the station address of a network interface
Package: amxbase, added for amigaux.
NAME
dlpi-mac - print the station address of a network interface
SYNOPSIS
dlpi-mac [ -p ppa ] [ -s sap ] [ -t seconds ] device
DESCRIPTION
dlpi-mac prints the station (MAC) address of the Ethernet interface whose DLPI device is device, such as /dev/aen0 or /dev/zen0, as six two-digit hexadecimal numbers joined by colons:
00:80:10:ff:ff:ff
Nothing else is printed on the standard output, so a script can use it as it is. It works the same way with every DLPI Ethernet driver and needs no driver-specific code. It may be run before or after the interface is set up: it sends no frame and leaves the device as it found it.
OPTIONS
- -p ppa
- the physical point of attachment to attach to, for a driver that needs one (DLPI Style 2); default 0.
- -s sap
- the service access point (Ethernet type) to bind while asking; default 0x88B5, a type no protocol uses.
- -t seconds
- how long to wait for each answer from the driver; default 5.
EXIT STATUS
- 0
- the address was printed.
- 1
- a usage error, or the device could not be opened (no such card in this machine).
- 2
- the driver did not answer as DLPI requires, or not in time.
SEE ALSO
| 30 October 2026 | amix-base |