Questa configurazione mostrerà alcuni trucchi su come ottenere informazioni hardware sui dispositivi di rete e sulla loro configurazione pertinente sul sistema Linux.
informazioni generali
Innanzitutto, iniziamo il semplice LSPCI
Comando per ottenere un ID bus, produttore e modello di tutte le schede di rete disponibili:
# lspci | Grep Network 00:19.0 Ethernet Controller: Intel Corporation 82579LM Gigabit Network Connection (Rev 04) 03:00.0 Controller di rete: Intel Corporation Centrino Advanced-N 6205 [Taylor Peak] (Rev 34)
Informazioni hardware
lshw
Il comando tenterà di fornirti tutte le possibili informazioni hardware del dispositivo di rete:
# LSHW -Class Network *-Network Descrizione: Interfaccia Ethernet Prodotto: 82579LM GIGABIT Network Connection Vendor: Intel Corporation ID fisico: 19 Informazioni bus: PCI@0000: 00:.0 Nome logico: ENP0S25 Versione: 04 Seriale: 3C: 97: 0E: 02: 98: C8 Capacità: 1 Gbit/s Larghezza: 32 BITS COLLE: 33MHz Capacità su broadcast = Sì driver = E1000E DriverVeversion Resources: IRQ: 50 Memoria: F1600000-F161ffff Memoria: F162A000-F162AFFF IOPORT: *-Network Descrizione: Interfaccia wireless Prodotto: Centrino Advanced-N 6205 [Taylor Peak] Venditore: ID fisico Intel Corporation: ID fisico Intel Corporation ID fisico 0 Informazioni bus: PCI@0000: 03: 00.0 Nome logico: WLP3S0 Versione: 34 Seriale: 8C: 70: 5a: 92: F6: e0 Larghezza: 64 bit orologio: 33MHz Capacità: PM MSI PCIEXPRESS BUS_MASTER Cap_List Ethernet Fishys Physical Configurazione: Broadcast = Yes Driver = iwlwifi Driverversion =.10.0-229.7.2.Ele 802.11ABGN Risorse: IRQ: 51 Memoria: F1500000-F1501FFF
Hardware e configurazione
INXI
è uno strumento estremamente utile che a parte molte altre funzionalità può anche stampare informazioni hardware di rete e la sua configurazione in un output ben formattato:
# INXI -N -V 7 Network: Card -1: Intel 82579LM Gigabit Network Connection Driver: E1000E V: 2.3.Porta 2-k: 4060 ID bus: 00:19.0 Chip-ID: 8086: 1502 IF: ENP0S25 Stato: Down Mac: 3C: 97: 0E: 02: 97: C8: Card-2: Intel Centrino Advanced-N 6205 [Taylor Peak] Driver: IWLWiFi V: In-tree: Bus-ID: 03:00.0 Chip-ID: 8086: 0085 If: WLP3S0 STATO: UP MAC: 8C: 70: 5A: 92: F6: E0 WAN IP: 223.213.45.125 se: WLP3S0 IP: 10.1.1.8 IP-V6: Fe80 :: 8E70: 5AFF: FA92: F640
Configurazione di rete
Il comando più ovvio per ottenere una configurazione di rete è utilizzando IP
comando:
# IP Ad Show
VEDOR ID
# grep -r '.*'/sys/class/net/*/dispositivo/fornitore/sys/class/net/enp0s25/dispositivo/fornitore: 0x8086/sys/class/net/wlp3s0/dispositivo/fornitore: 0x8086
Irq
# grep -r '.*'/sys/class/net/*/dispositivo/IRQ/sys/class/net/enp0s25/dispositivo/IRQ: 50/sys/class/net/wlp3s0/dispositivo/IRQ: 51