Sunday, March 1, 2015

Solaris 11: Identifying Ethernet MAC addresses


Solaris 11 introduced very useful command that you can use for checking and to set all data links –dladm.
Let's assume you need to find out ethernet (MAC) addresses of all network interfaces on your Solaris box.
Issuing the dladm command with option -m you will get the list of factory MAC addresses, their slot identifiers and their availability.

$ dladm show-phys -m
LINK SLOT ADDRESS INUSE CLIENT
net0 primary 8:0:27:4:7c:5e yes net0

Solaris 10 and older:This command however does not work on older releases of Solaris. In order to see ethernet address of the network interface even though it is not plumed you can use the following:


$ prtpicl -c network -v

This should include driver-name and instance to associate an block to a specific network interface and the local-mac-address to get the mac address of that entry.

Other option valid for all versions of Solaris is to use the netstat command:

$ netstat -pn

No comments:

Post a Comment