View previous topic :: View next topic |
Author |
Message |
rdivincenzo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/156064843045dee707a551d.jpg)
Joined: 01 Apr 2006 Posts: 79
|
Posted: Wed Sep 17, 2008 2:02 pm Post subject: Info Interfaccie di rete |
|
|
Scusatemi, vorrei sapere se in Gentoo esiste un comando che mi fornisca informazioni circa l'associazione della device fisica (es. eth0) al nome del costruttore e/o modello.
Grazie anticipatamente! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Manwhe Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/BaldursGate/baldursgate_edwin.gif)
Joined: 25 Jun 2007 Posts: 127
|
Posted: Wed Sep 17, 2008 2:07 pm Post subject: |
|
|
Ciao ,
Con "lspci" hai la lista delle periferiche pci
Con "lsusb" quelle usb.
Ma associazione eth* non saprei proprio |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rdivincenzo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/156064843045dee707a551d.jpg)
Joined: 01 Apr 2006 Posts: 79
|
Posted: Wed Sep 17, 2008 2:11 pm Post subject: |
|
|
I due comandi elencati li conoscevo già, purtroppo sono su un server e ho installato 4 schede di rete tutte diverse, ovviamente non ho modo di riconoscerle se non come facevano gli antichi, ovvero attestare il cavo e fare il ping.
Ora, mi chiedo, c'è un metodo meno obsoleto?
Grazie a tutti. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Manwhe Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/gallery/BaldursGate/baldursgate_edwin.gif)
Joined: 25 Jun 2007 Posts: 127
|
Posted: Wed Sep 17, 2008 2:14 pm Post subject: |
|
|
humm.
se fai ifconfig eth* ti restituisce il macaddress, magari ti torna utile
eth0 Link encap:Ethernet HWaddr 00:02:44:55:EE:17
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:96871 errors:0 dropped:0 overruns:0 frame:0
TX packets:106632 errors:110 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:59113476 (56.3 Mb) TX bytes:43645514 (41.6 Mb)
Interrupt:11 Base address:0xd400
poi anche un
dmesg | grep -i eth
eth0: BMAC at 00:05:02:5e:a5:26
eth1: DC21143 at 0x0400 (PCI bus 0, device 13), h/w address
00:00:c5:50:85:07, |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rdivincenzo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/156064843045dee707a551d.jpg)
Joined: 01 Apr 2006 Posts: 79
|
Posted: Wed Sep 17, 2008 2:30 pm Post subject: |
|
|
Certo sapere il MAC aiuta ma non e velocissimo!
Non ci sono altri comandi conosciuti? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Peach Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/113917422347ec3b2cbcf21.gif)
Joined: 08 Mar 2003 Posts: 3686 Location: London, UK
|
Posted: Wed Sep 17, 2008 4:21 pm Post subject: |
|
|
forse potrebbe esserti d'aiuto:
Code: | # ls -l /sys/class/net/ |
combinato con l'id che trovi in lspci, hai quello che cerchi. _________________ Gentoo user since 2004.
"It's all fun and games, until someone loses an eye" - mom |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
djinnZ Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
![](images/avatars/3978748614ef08bfa7f764.jpg)
Joined: 02 Nov 2006 Posts: 4831 Location: somewhere in L.O.S.
|
Posted: Wed Sep 17, 2008 4:59 pm Post subject: |
|
|
e poi metti file su un sito che mi perdo sempre ma che sicuramente qualche anima pia potrà indicarti. _________________ scita et risus abundant in ore stultorum sed etiam semper severi insani sunt
mala tempora currunt...mater stultorum semper pregna est
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist ![Wink :wink:](images/smiles/icon_wink.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
codadilupo Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Aug 2003 Posts: 3135
|
Posted: Wed Sep 17, 2008 5:22 pm Post subject: |
|
|
non ricordo piu' quale sito restituiva il produttore inserendo la prima metà del mac address... comunque esiste
Coda |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
oRDeX Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/1093511417417ec3ee2e62c.jpg)
Joined: 19 Oct 2003 Posts: 1325 Location: Italy
|
Posted: Wed Sep 17, 2008 7:12 pm Post subject: |
|
|
Non sapendo cosa fare, ho trovato un sito di MAC Addr lookup ed ho fatto un minuscolo script (anzi, è una sola riga, non avevo voglia di aprire un editor).
Code: | # DEV=wlan0; MAC=$(ip link show dev ${DEV} |grep link |tr -s ' ' |cut -d' ' -f3 |cut -d':' -f1,2,3 --output-delimiter=''); wget "http://www.coffer.com/mac_find/?string=${MAC}" -O - 2>/dev/null |grep -i "${MAC}" |grep "www\.google\.com" |cut -d'>' -f2 |cut -d'<' -f1 |
Lo esegui da root ed inizializzi DEV all'interfaccia che preferisci (Spero tu abbia installato iproute2)
p.s. è una cosa schifosa fatta così
p.p.s. non so usare awk ![Cool 8)](images/smiles/icon_cool.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
rdivincenzo Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
![](images/avatars/156064843045dee707a551d.jpg)
Joined: 01 Apr 2006 Posts: 79
|
Posted: Wed Sep 17, 2008 10:13 pm Post subject: |
|
|
Ragazzi, che dire .... Siete forti ....!!!
Grazie .... |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
codadilupo Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Aug 2003 Posts: 3135
|
Posted: Fri Sep 19, 2008 7:51 pm Post subject: |
|
|
oRDeX wrote: | Non sapendo cosa fare, ho trovato un sito di MAC Addr lookup ed ho fatto un minuscolo script (anzi, è una sola riga, non avevo voglia di aprire un editor).
Code: | # DEV=wlan0; MAC=$(ip link show dev ${DEV} |grep link |tr -s ' ' |cut -d' ' -f3 |cut -d':' -f1,2,3 --output-delimiter=''); wget "http://www.coffer.com/mac_find/?string=${MAC}" -O - 2>/dev/null |grep -i "${MAC}" |grep "www\.google\.com" |cut -d'>' -f2 |cut -d'<' -f1 |
Lo esegui da root ed inizializzi DEV all'interfaccia che preferisci (Spero tu abbia installato iproute2)
p.s. è una cosa schifosa fatta così
p.p.s. non so usare awk ![Cool 8)](images/smiles/icon_cool.gif) |
Ecco Coffer! Mi rcordava il caffe', infatti
P.S.: Grande oRDeX!
Coda |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|