osesyn.blogg.se

Linux C how to get MAC address
Linux C how to get MAC address




# sys-unconfig WARNING This program will unconfigure your system. This command restores the system configuration to the "as-manufactured" state.Ĭaution - The sys-unconfig(1M) command will halt the system When you are done, type sys-unconfig(1M) at the command line. Record the Solaris network interface name for each MAC address previously recorded in the Configuration Worksheet list.Ĥ.

linux C how to get MAC address

For example, the MAC address associated to the Solaris named network interface e1000g0 is 0:14:4f:c:a1:ee.ģ. The MAC address for each network interface appears after the word ether. In the sample above, the Solaris named network interfaces appear as e1000g0, e 1000g1, and so on. To output a list of all Solaris named interfaces along with their physical MAC addresses, type this command at the prompt (#):Ī sample ifconfig-a output is as follows: The shell prompt (#) appears when the discovery completes.Ģ. The command discovers all installed network interfaces.

linux C how to get MAC address

Log in to the system as root and run ifconfig -a plumb in a command shell. You record this information, which you need during configuration, and then return the OS to its unconfigured state before proceeding with the configuration.ġ. Prior to configuring the OS, you use the procedure below to identify the network interfaces by their logical and physical names (MAC addresses). Identifying Logical and Physical Network Interface Names for a Pre-installed Solaris OSĪny pre-installed Solaris OS is unconfigured.






Linux C how to get MAC address