Netzwerkkarte konfigurieren mit ethtool

letzte Änderung: 4. Jan 2015, 22:08 Veröffentlicht: 4. Feb 2008, 18:20

Inhaltsverzeichnis

Anzeigen und Einstellen von Treiber- und Hardwareeinstellungen von Ethernet-Karten wie z.B.

  • Speed
  • Duplex
  • Autonegotiation
  • Wake on LAN
  • Treiberinformationen

 

Infos und Statistiken

 

Treiber-Informationen

server:~ # ethtool -i eth0
driver: e1000
version: 7.3.21-k8-NAPI
firmware-version:
bus-info: 0000:02:01.0
supports-statistics: yes
supports-test: yes
supports-eeprom-access: yes
supports-register-dump: yes

Hardware-Einstellungen der Netzwerkschnittstelle

server:~ # ethtool eth0
Settings for eth0:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
MDI-X: off
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes

 

Statistiken der Netzwerkschnittstelle

server:~ # ethtool -S eth0
NIC statistics:
rx_packets: 308257
tx_packets: 5814
rx_bytes: 37741596
tx_bytes: 1642598
rx_broadcast: 0
tx_broadcast: 0
rx_multicast: 0
tx_multicast: 0
rx_errors: 0
tx_errors: 0
tx_dropped: 0
multicast: 0
collisions: 0
rx_length_errors: 0
rx_over_errors: 0
rx_crc_errors: 0
rx_frame_errors: 0
rx_no_buffer_count: 0
rx_missed_errors: 0
tx_aborted_errors: 0
tx_carrier_errors: 0
tx_fifo_errors: 0
tx_heartbeat_errors: 0
tx_window_errors: 0
tx_abort_late_coll: 0
tx_deferred_ok: 0
tx_single_coll_ok: 0
tx_multi_coll_ok: 0
tx_timeout_count: 0
tx_restart_queue: 0
rx_long_length_errors: 0
rx_short_length_errors: 0
rx_align_errors: 0
tx_tcp_seg_good: 38
tx_tcp_seg_failed: 0
rx_flow_control_xon: 0
rx_flow_control_xoff: 0
tx_flow_control_xon: 0
tx_flow_control_xoff: 0
rx_long_byte_count: 37741596
rx_csum_offload_good: 165835
rx_csum_offload_errors: 0
alloc_rx_buff_failed: 0
tx_smbus: 0
rx_smbus: 0
dropped_smbus: 0

 

Netzwerkkarte identifizieren (blinken)

LED 11x blinken lassen

ethtool -p eth0 11

 

Eprom auslesen, MAC anzeigen

host:~ # ethtool -e eth0 raw off
Offset        Values
------        ------
0x0000        00 0c 29 37 53 9f 20 04 ff ff ff ff ff ff ff ff
0x0010        00 00 00 00 03 46 50 07 ad 15 0f 10 86 80 e8 01
0x0020        ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
0x0030        ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff

 

Einstellungen

 

Autonegotiation/Duplex/Speed

Autonegotiation abstellen, Halfduplex, Speed 100

ethtool -s eth0 autoneg off duplex half speed 100

Autonegotiation manuelle starten

ethtool -r eth0