You are not logged in.

#1 2020-03-14 04:24:08

ljzttttt
Member
Registered: 2014-11-07
Posts: 2

How to change the link mode of network interface

Thx you to help.

I want change network interface "enp0s3" from 1000M  to 10M with "ethtool" but :

[root@archlinux ~]# ethtool -s enp0s3 speed 10
Cannot advertise speed 10

The information of enp0s3:

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

Has any other tool can do it?  iproute2 ?

Offline

#2 2020-03-14 15:52:54

Zod
Member
From: Hoosiertucky
Registered: 2019-03-10
Posts: 636

Re: How to change the link mode of network interface

You could try..

sudo ethtool –s enp0s3 speed 10 duplex full autoneg off

Edit: But do not do this remotely because if you lose connection you're done.

Last edited by Zod (2020-03-14 16:05:43)

Offline

#3 2020-03-15 04:53:48

ljzttttt
Member
Registered: 2014-11-07
Posts: 2

Re: How to change the link mode of network interface

Zod wrote:

You could try..

sudo ethtool –s enp0s3 speed 10 duplex full autoneg off

Edit: But do not do this remotely because if you lose connection you're done.

Thx .  I do it but no effict, The speed stell at 1000Mbit/s.  I give up.  You are good buddy. Think you.

Offline

#4 2020-03-15 08:12:03

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,166

Re: How to change the link mode of network interface

Can it

ethtool -s advertise 0x003 enp0s3

?
(This is for autonegotiation)

Why are you trying to do that, btw? Sounds like an xy-problem.

Offline

#5 2020-03-15 11:14:46

xerxes_
Member
Registered: 2018-04-29
Posts: 1,091

Re: How to change the link mode of network interface

Correction (according to 'man ethtool'):

ethtool -s advertise 0x002 enp0s3

Offline

#6 2020-03-15 12:39:22

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 79,166

Re: How to change the link mode of network interface

You may want to revisit the manual.
What is 0x001? What is 0x002? ANd why is there suspiciously no 0x003?

Offline

Board footer

Powered by FluxBB