host id

4 posts / 0 new
Last post
razvan
host id

Stie cineva cum pot sa aflu host id-ul placii de retea in linux?

cosmin
cosmin's picture
Re: host id

Comanda este /sbin/ifconfig eth0Rezultatul e ceva de genul:

% [b]/sbin/ifconfig eth0[/b]
eth0      Link encap:Ethernet  HWaddr [b]00:A0:CC:23:39:3F[/b]
          inet addr:142.103.175.109  Bcast:142.103.175.255  Mask:255.255.255.0
          UP BROADCAST RUNNING  MTU:1500  Metric:1
          RX packets:786404 errors:0 dropped:0 overruns:0 frame:0
          TX packets:534006 errors:0 dropped:0 overruns:0 carrier:0
          collisions:47 txqueuelen:100 
          Interrupt:17 Base address:0xf400

În exemplul de mai sus, hostid-ul este 00:A0:CC:23:39:3F.

[url=http://counter.li.org/]Linux registered user #368449[/url]

razvan
Re: host id

Merci

Reiz
Re: host id

Quote:
root@trust:/home/razor# hostid
7f0100
root@trust:/home/razor# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0E:A6:95:72:CF
inet addr:192.168.13.72 Bcast:192.168.13.255 Mask:255.255.255.0
UP BROADCAST NOTRAILERS RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1022861 errors:0 dropped:0 overruns:0 frame:0
TX packets:439471 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:882476148 (841.5 Mb) TX bytes:31137755 (29.6 Mb)
Interrupt:11 Base address:0xa000

HWaddr 00:0E:A6:95:72:CF - HardWare Address ( aka MAC - Adresa fizica a placii de retea)

hostid : 7f0100 = numeric identifier (in hexadecimal) for the current host.