22
0
Fork 0

mise en page

This commit is contained in:
jdubois 2018-03-21 13:50:25 +01:00
parent 79127ea001
commit bb7333f2c6
1 changed files with 45 additions and 35 deletions

View File

@ -1,51 +1,61 @@
**Cette page a été importée automatiquement de notre ancien wiki mais n'a pas encore été révisée.** ---
title: Howto Ethtool
categories: sysadmin network
...
# Howto ethtool * Manpage : <https://manpages.debian.org/stretch/ethtool/ethtool.8.en.html>
## ethtool ethtool est un outil permettant de voir et contrôler les paramètres d'une carte réseau.
## Installation
Installer ethtool :
~~~ ~~~
# aptitude install ethtool # apt install ethtool
# ethtool --version
ethtool version 4.8
~~~ ~~~
Consulter l'état d'une interface : ## Utilisation
### Consulter l'état d'une interface
~~~ ~~~
# ethtool eth0 # ethtool eth0
Settings for eth0: Settings for eth0:
Supported ports: [ TP ] Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full 100baseT/Half 100baseT/Full
1000baseT/Full 1000baseT/Half 1000baseT/Full
Supports auto-negotiation: Yes Supported pause frame use: No
Advertised link modes: Not reported Supports auto-negotiation: Yes
Advertised pause frame use: No Advertised link modes: 10baseT/Half 10baseT/Full
Advertised auto-negotiation: No 100baseT/Half 100baseT/Full
Speed: 10Mb/s 1000baseT/Half 1000baseT/Full
Duplex: Half Advertised pause frame use: Symmetric Receive-only
Port: Twisted Pair Advertised auto-negotiation: Yes
PHYAD: 1 Link partner advertised link modes: 10baseT/Half 10baseT/Full
Transceiver: internal 100baseT/Half 100baseT/Full
Auto-negotiation: off Link partner advertised pause frame use: Symmetric
MDI-X: Unknown Link partner advertised auto-negotiation: Yes
Supports Wake-on: g Speed: 100Mb/s
Wake-on: d Duplex: Full
Link detected: yes Port: MII
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Supports Wake-on: pumbg
Wake-on: g
Current message level: 0x00000033 (51)
drv probe ifdown ifup
Link detected: yes
~~~ ~~~
Changer son état (par exemple) : ### Changer son état
Par exemple, configurer la vitesse à 10Mb/s, le duplex half, et désactiver l'auto-négotiation :
~~~ ~~~
# ethtool -s eth0 speed 10 duplex full autoneg off # ethtool -s eth0 speed 10 duplex half autoneg off
~~~ ~~~
## Changer son adresse MAC
Cela n'a pas un lien direct avec _ethtool_ mais pour changer son adresse MAC sur une machine Linux, on fera :
~~~
# ifconfig eth0 hw ether 01:23:45:67:89:0a
~~~