Questions about ubunut Gigabit Network Card

I have a ubuntu physical machine with two network cards installed on it. Now the network cable is plugged into the 100-megabit network card enp2s0, and the gigabit network card network port enp1s0 is not plugged into the network cable, but checking the enp1s0 shows that it is 10Mb/s.
the commands used are as follows: enp1s0 is a gigabit network card, enp2s0 is a 100-megabit network card.

root@sangfor-System-Product-Name:~-sharp  cat /sys/class/net/enp1s0/speed 
10
root@sangfor-System-Product-Name:~-sharp cat /sys/class/net/enp2s0/speed 
100

root@sangfor-System-Product-Name:~-sharp ethtool enp1s0
Settings for enp1s0:
    Supported ports: [ TP MII ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Half 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/Half 1000baseT/Full 
    Advertised pause frame use: Symmetric Receive-only
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Speed: 10Mb/s
    Duplex: Half
    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: no




root@sangfor-System-Product-Name:~-sharp ethtool enp2s0
Settings for enp2s0:
    Supported ports: [ TP MII ]
    Supported link modes:   10baseT/Half 10baseT/Full 
                            100baseT/Half 100baseT/Full 
                            1000baseT/Half 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: Symmetric Receive-only
    Advertised auto-negotiation: Yes
    Advertised FEC modes: Not reported
    Link partner advertised link modes:  10baseT/Half 10baseT/Full 
                                         100baseT/Half 100baseT/Full 
    Link partner advertised pause frame use: Symmetric Receive-only
    Link partner advertised auto-negotiation: Yes
    Link partner advertised FEC modes: Not reported
    Speed: 100Mb/s
    Duplex: Full
    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
root@sangfor-System-Product-Name:~-sharp 

Why is this solved?


this is related to the network card driver. Maybe when there is no UP by default, the speed set on this network card is 10m


Speed: 10Mb/s is only one of the items allowed by the physical specification of the network card. It can also be 100m or 1000m , and there is no other possibility.

generally speaking, the minimum speed is enabled when the network card is started, and then adaptively adjusted according to the specifications of the opposite end (except those that are manually set).
Please refer to https://en.wikipedia.org/wiki...

.

for example, when an adaptive network card is connected to a 100m switch, its speed becomes 100m, and when it intervenes in a 1000m switch, it becomes 1000m.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b35440-2bf98.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b35440-2bf98.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?