Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Register Log in

what are your Linux machine hostid?

Status
Not open for further replies.

mariaR

Advanced Member level 4
Joined
Feb 28, 2003
Messages
110
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Activity points
697
I installed 3 Linux boxes, and the host Ids are the same:7f0100.
 

wzdreamer

Full Member level 2
Joined
Jan 16, 2002
Messages
124
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
1,167
see http://www.elektroda.pl/eboard/viewtopic.php?t=42754&highlight=

or topic "Hostid in a Linux machine"

there are many posts about this...

there you can find 1 of 2 different ways how get hostid...
I uploaded strace-d result from executing hostid....

hostid is stored in /etc/hostid - 4 bytes (but this file exists if you previously changed your hostid) or if you didn't - see in attached file...
 

archun

Member level 2
Joined
Aug 23, 2001
Messages
43
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
269
why hostid, why not mac adderss.
 

wzdreamer

Full Member level 2
Joined
Jan 16, 2002
Messages
124
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
1,167
what abou mac address? I can't follow you...
 

mariaR

Advanced Member level 4
Joined
Feb 28, 2003
Messages
110
Helped
3
Reputation
6
Reaction score
2
Trophy points
1,298
Activity points
697
What coomand to get the MAC in RH Linux box ?
 

sensi_millia2000

Newbie level 2
Joined
Apr 9, 2003
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
10
mac-adress

just run 'ifconfig' and watch the field after 'HWaddr'

e.g.

ifconfig |grep HWaddr
eth0 Link encap:Ethernet HWaddr 00:50:04:40:75:BE
eth2 Link encap:Ethernet HWaddr 52:54:40:25:74:5A
eth3 Link encap:Ethernet HWaddr 00:20:AF:39:FB:3C
 

Status
Not open for further replies.
Toggle Sidebar

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top