linux内核强制网卡为100m,linux系统 查看网卡是100M还是1000M

摘要:可以使用 ethtool 命令进行查看,使用格式:ethtool 网络接口名,以下为例,使用 ifconfig 查看当前使用的网卡,获取网卡名字:enp2s0...

可以使用 ethtool 命令进行查看,使用格式:ethtool 网络接口名

以下为例,使用 ifconfig 查看当前使用的网卡,获取网卡名字:enp2s0

root@U-NAS:~# ifconfig

enp2s0: flags=4163 mtu 1500

inet 192.168.0.8 netmask 255.255.255.0 broadcast 192.168.0.255

inet6 fe80::2e0:70ff:fe86:cf8c prefixlen 64 scopeid 0x20

ether 00:e0:70:86:cf:8c txqueuelen 1000 (Ethernet)

RX packets 403272 bytes 400480688 (381.9 MiB)

RX errors 0 dropped 0 overruns 0 frame 0

TX packets 352875 bytes 233242041 (222.4 MiB)

TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

lo: flags=73 mtu 65536

inet 127.0.0.1 netmask 255.0.0.0

inet6 ::1 prefixlen 128 scopeid 0x10

loop txqueuelen 1 (Local Loopback)

RX packets 1250 byte

你可能感兴趣的:(linux内核强制网卡为100m,linux系统 查看网卡是100M还是1000M)