18
0
Fork 0
wiki/HowtoEthtool.md

1.1 KiB

Cette page a été importée automatiquement de notre ancien wiki mais n'a pas encore été révisée.

Howto ethtool

ethtool

Installer ethtool :

# aptitude install ethtool

Consulter l'état d'une interface :

# 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:  Not reported
        Advertised pause frame use: No
        Advertised auto-negotiation: No
        Speed: 10Mb/s
        Duplex: Half
        Port: Twisted Pair
        PHYAD: 1
        Transceiver: internal
        Auto-negotiation: off
        MDI-X: Unknown
        Supports Wake-on: g
        Wake-on: d
        Link detected: yes

Changer son état (par exemple) :

# ethtool -s eth0 speed 10 duplex full 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