PageContent
Come ottenere l’indirizzo fisico dell’interfaccia di rete
Linux
Collegandosi come root eseguire il comando “ /sbin/ifconfig eth0 “
# /sbin/ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:10:5A:40:D4:E4
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xf880
Nel campo Ethernet HWaddr compare un numero di 6 cifre esadecimali che è l’indirizzo della scheda di rete o mac address.
Windows
Dal prompt di dos ( dal menu` “START” selezionare “RUN…” e lanciare il comando “CMD” ).
Eseguendo il comando “ ipconfig/all “ si ottiene un output simile a quello che segue :
C:\>ipconfig /all
Windows IP Configuration
Host Name . . . . . . . . . . . . : pcap
Primary DNS Suffix . . . . . . .
Node Type . . . . . . . . . . . . : Broadcast
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : bo.infn.it
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : bo.infn.it
Description . . . . . . . . . . . : 3Com EtherLink XL 10/100 PCI TX NIC (3C905B-TX)
Physical Address. . . . . . . . . : 00-10-5A-16-19-BD
DHCP Enabled. . . . . . . . . . . : No
IP Address. . . . . . . . . . . . : 131.154.11.183
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 131.154.11.254
DNS Servers . . . . . . . . . . . : 131.154.11.102
131.154.10.4
dal quale si possono estrarre le 6 cifre esadecimali relative al campo
“ Physical Address”
Apple
Cliccare sulla mela e selezionare il seguente percorso:
About this mac –> System report –> Hardware–> Ethernet card
Il campo “Ethernet” è l’ID ethernet (MAC Address)