Search This Blog

Pages

Monday, January 4, 2010

Getting the host name and MAC address quickly :-)

Simply the terminal, as User root, command:

# arp

The output is:

Address HWtype HWaddress Flags Mask Iface ether C eth0


Where:

* Address - is the name of the host: computer, router, switch, printer and others, and which domain or group he belongs.
* HWtype: Ether - type of hardware, whether it is Ethernet or not, or other models such as FBBI equivalent to fiber optics.
* HWaddress - MAC Address of the physical network adapter or interface.
* Mask Flags: C - netmask.
* Iface: eth0 - the alias / nickname given by the operating system for the network interface.

No comments:

Post a Comment