Host ID vs MAC Address


 
Thread Tools Search this Thread
Operating Systems Solaris Host ID vs MAC Address
# 1  
Old 01-08-2007
Host ID vs MAC Address

Hi,

I've got a Sun Solaris machine with host ID (840f8e57) and MAC address (0:14:4f:f:8e:57), how do I:

1. Write the MAC address in standard (IEEE 802) format, i.e. xx-xx-xx-xx-xx-xx? Do I need to add 0's before or after the 'f', i.e. 00-14-4f-0f-8e-57 or 00-14-4f-f0-8e-57?

2. What is exactly the Host ID, and is it made somehow from MAC address? If yes, how? And if I have (83ED8561) as my host ID, what would the MAC address be?

Thanks in advance.
# 2  
Old 01-26-2007
Any idea regarding this?
# 3  
Old 01-26-2007
The hostid uniquely identifies a given server. It is often used for software licensing.

Traditionally, a Sun server hostid was based on the MAC address of the primary on-board network interface. All network interfaces have a unique MAC address and Sun Microsystem's all begin with 08:00:20:xx:xx:xx. By truncating leading zeros your would get 8:0:20:xx:xx:xx displayed by ifconfig(1M).

The hostid starts with "80" -- the first two octets of the MAC address -- followed by six hexadecimal characters representing the last three octets. Thus, a server with a MAC address of 08:00:20:0a:1b:2c would have a hostid of 800a1b2c.

I believe with the newer servers, this is all being done away with and is supported by a "system configuration card" allowing you to take all of this information from one server to another in the event of a major hardware failure.
# 4  
Old 02-03-2007
Thanks a lot for your reply.

As I understand from your post is that there is no way to get MAC address from Host ID, as there is always a missing part; hope I'm not mistaken.

By the way, the examples I used ini my first post are not imaginary examples, they are from real Sun Blade machines... I noticesd that the Host ID always starts with '8' (not '80') and ends (i.e. last 6 characters) with the last 3 octets of the MAC address Smilie

Thaks again
# 5  
Old 02-03-2007
As I said, I'm working with old hardware. The algorithm has probably changed. It seems from you example that Sun is still using the last three octets of the MAC address but that the first two digits are generated differently.

The easiest way to get a server's hostID is to use the command hostid. Sometimes simple is better.

:-)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. IP Networking

MAC Address - Four Interfaces with the same MAC Address

four interfaces with ifconfig all interfaces have the same mac. If is not set for unique. but it still works. what difference does it make to have all macs the same or different? (4 Replies)
Discussion started by: rrodgers
4 Replies

2. IP Networking

IP address to host name conversion

hi, i want to get the hostname for the specified IP address. # host www.google.com www.google.com has address 173.194.69.104 www.google.com has address 173.194.69.105 www.google.com has address 173.194.69.106 www.google.com has address 173.194.69.147 www.google.com has address... (3 Replies)
Discussion started by: kavitha rao
3 Replies

3. Red Hat

Static IP Address setup for vm as well as the host system

Hello, Greetings!! I have a server with 3 TB of disk space and 12 GB RAM and a i7 processor. What I did thus far is to install Oracle Enterprise Linux (OEL 5.7)as the host system and install Oracle Virtual box and created 3 VM's. Installed OEL 5.7 on one of the VM, working on installing... (1 Reply)
Discussion started by: rparavastu
1 Replies

4. IP Networking

Tracing a MAC address to IP address: Solaris

Hi there I lost connectivity to one of our remote systems and when I checked the messages log I found the following: Aug 10 23:42:34 host xntpd: time reset (step) 1.681729 s Aug 16 13:20:51 host ip: WARNING: node "mac address" is using our IP address x.x.x.x on aggr1 Aug 16 13:20:51 host... (9 Replies)
Discussion started by: notreallyhere
9 Replies

5. Programming

get host name by IP address

I'm trying to write a function to get the host name of any given IP address. I'm trying to follow this manual but I'm stuck. I'm using gcc and Linux. Any ideas? getnameinfo() #include <stdio.h> #include <netdb.h> #include <sys/socket.h> #include <arpa/inet.h> char... (6 Replies)
Discussion started by: limmer
6 Replies

6. Solaris

No value in Ethernet address and Host ID at Ok prompt

Hi All, In Ultra 10 at time system is not displaying value for Ethernet address and Host ID. Also, when i am trying to change the value of environment variables i am getting below message and value is not changing Thanks (4 Replies)
Discussion started by: kumarmani
4 Replies

7. Solaris

How to get the IP address / Host name of client machine

Hi How to get the IP address / Host name of a particular user connected to Unix Server. For example: If used 'DevUser1' is connected to Unix server. I need to find out from which PC this connection has been made. How can this be achieved? Thanks (6 Replies)
Discussion started by: MVL
6 Replies

8. Programming

host name to IP address

There's a piece in a C program I'm writing (Linux) that simply needs to take a host name and return an IP address (e.g., take 'mail.gnu.org' and return 199.232.76.166). I've gotten a successful status from getaddrinfo, but don't see any of the fields in the result structure that has what I'm... (7 Replies)
Discussion started by: cleopard
7 Replies

9. IP Networking

How to Achive IP address through MAC(Ethernet) address

Hi sir, i want to make such programe which takes MAC(Ethernet) address of any host & give me its IP address....... but i'm nt getting that how i can pass the MAC address to Frame........ Please give me an idea for making such program... Thanks & regards Krishna (3 Replies)
Discussion started by: krishnacins
3 Replies

10. UNIX for Advanced & Expert Users

Host IP address for a telnet session

I am using Tru64UX 5.1a on alphaserver 4100. Users access the application through Telnet sessions to this server. My requirement is to limit the users login through their PCs only. Is there any way I can accomplish this on the unix box ? I want to include a script in the .profile ( or... (1 Reply)
Discussion started by: shauche
1 Replies
Login or Register to Ask a Question