Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Info Interfaccie di rete
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
rdivincenzo
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2006
Posts: 79

PostPosted: Wed Sep 17, 2008 2:02 pm    Post subject: Info Interfaccie di rete Reply with quote

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
View user's profile Send private message
Manwhe
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2007
Posts: 127

PostPosted: Wed Sep 17, 2008 2:07 pm    Post subject: Reply with quote

Ciao ,

Con "lspci" hai la lista delle periferiche pci
Con "lsusb" quelle usb.

Ma associazione eth* non saprei proprio
Back to top
View user's profile Send private message
rdivincenzo
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2006
Posts: 79

PostPosted: Wed Sep 17, 2008 2:11 pm    Post subject: Reply with quote

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
View user's profile Send private message
Manwhe
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jun 2007
Posts: 127

PostPosted: Wed Sep 17, 2008 2:14 pm    Post subject: Reply with quote

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
View user's profile Send private message
rdivincenzo
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2006
Posts: 79

PostPosted: Wed Sep 17, 2008 2:30 pm    Post subject: Reply with quote

Certo sapere il MAC aiuta ma non e velocissimo!
Non ci sono altri comandi conosciuti?
Back to top
View user's profile Send private message
Peach
Advocate
Advocate


Joined: 08 Mar 2003
Posts: 3686
Location: London, UK

PostPosted: Wed Sep 17, 2008 4:21 pm    Post subject: Reply with quote

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
View user's profile Send private message
djinnZ
Advocate
Advocate


Joined: 02 Nov 2006
Posts: 4831
Location: somewhere in L.O.S.

PostPosted: Wed Sep 17, 2008 4:59 pm    Post subject: Reply with quote

Code:
lspci -v > file
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:wink:
mala tempora currunt...mater stultorum semper pregna est :evil:
Murpy'sLaw:If anything can go wrong, it will - O'Toole's Corollary:Murphy was an optimist :wink:
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Wed Sep 17, 2008 5:22 pm    Post subject: Reply with quote

non ricordo piu' quale sito restituiva il produttore inserendo la prima metà del mac address... comunque esiste ;-)

Coda
Back to top
View user's profile Send private message
oRDeX
Veteran
Veteran


Joined: 19 Oct 2003
Posts: 1325
Location: Italy

PostPosted: Wed Sep 17, 2008 7:12 pm    Post subject: Reply with quote

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 :P (Spero tu abbia installato iproute2)


p.s. è una cosa schifosa fatta così 8)
p.p.s. non so usare awk 8)
Back to top
View user's profile Send private message
rdivincenzo
Tux's lil' helper
Tux's lil' helper


Joined: 01 Apr 2006
Posts: 79

PostPosted: Wed Sep 17, 2008 10:13 pm    Post subject: Reply with quote

Ragazzi, che dire .... Siete forti ....!!!

Grazie ....
Back to top
View user's profile Send private message
codadilupo
Advocate
Advocate


Joined: 05 Aug 2003
Posts: 3135

PostPosted: Fri Sep 19, 2008 7:51 pm    Post subject: Reply with quote

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 :P (Spero tu abbia installato iproute2)


p.s. è una cosa schifosa fatta così 8)
p.p.s. non so usare awk 8)


Ecco Coffer! Mi rcordava il caffe', infatti :-P

P.S.: Grande oRDeX!

Coda
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum