Linux 里auto ethernet网卡是什么

我请讲解下,Linux 里auto ethernet网卡是什么
最新回答
这个世界该死

2024-11-04 00:10:05

这个应该不是网卡,而是网卡的配置文件,这个问题在RHEL/centos 7里面更加明显,用nmcli可以看出Linux的网卡名称和配置文件名称,还有启用文件名。具体命令:
nmcli conn show
nmcli Dev show
auto ethernet 其实说白了就是你网卡的自动配置文件,你有可能进行了Linux的系统克隆造成的。不要担心,同样用。关于Linux的知识建议参考《linux就该这样学》,希望能够帮助你
⒈輩子⒈个人

2024-11-04 00:19:55

1.lspci | grep -i ethernet
[root@localhost ~]# lspci | grep -i ethernet
01:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
01:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
02:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
2.kudzu
#kudzu --probe --class=network
3.查看完整硬件信息
[root@localhost ~]# dmidecode |less
Product Name: PowerEdge R610
Serial Number: 1DHD13X
BIOS
网卡等消息
[root@localhost ~]# dmidecode |grep -A 5 Ethernet
光棍可耻专门浪费卫生纸。

2024-11-04 00:02:16

和 DHCP 差不多
看见你我胃疼°

2024-11-04 00:16:42

rhel 内核版本信息:
[html] view plain copy
[root@hvrhub ~]# uname -a
Linux hvrhub 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux

查看网卡的驱动,制造商等信息:

[html] view plain copy
[root@hvrhub ~]# kudzu --probe --class=network
-
class: NETWORK
bus: PCI
detached: 0
device: eth0
driver: r8169 ---------------->这是驱动名称,下面的modinfo命令会用到该驱动名称。
desc: "Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller"
network.hwaddr: 20:cf:30:8f:5a:cf
vendorId: 10ec
deviceId: 8136
subVendorId: 1043
subDeviceId: 8347
pciType: 1
pcidom: 0
pcibus: 1
pcidev: 0
pcifn: 0
[root@hvrhub ~]#
下面是查看网卡的网速:

[html] view plain copy
[root@hvrhub ~]# ethtool eth0
Settings for eth0:
Supported ports: [ TP MII ]
Supported link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Supports auto-negotiation: Yes
Advertised link modes: 10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
Advertised auto-negotiation: Yes
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)
Link detected: yes
下面是查看网卡驱动的详细信息

[html] view plain copy
[root@hvrhub ~]# modinfo r8169
filename: /lib/modules/2.6.18-308.el5/kernel/drivers/net/r8169.ko
version: 2.3LK-1-NAPI
license: GPL
description: RealTek RTL-8169 Gigabit Ethernet driver
author: Realtek and the Linux r8169 crew <netdev@vger.kernel.org>
srcversion: 2F438BE7BC0FF431B08F6F4
alias: pci:v00000001d00008168sv*sd00002410bc*sc*i*
alias: pci:v00001737d00001032sv*sd00000024bc*sc*i*
alias: pci:v000016ECd00000116sv*sd*bc*sc*i*
alias: pci:v00001259d0000C107sv*sd*bc*sc*i*
alias: pci:v00001186d00004300sv*sd*bc*sc*i*
alias: pci:v000010ECd00008169sv*sd*bc*sc*i*
alias: pci:v000010ECd00008168sv*sd*bc*sc*i*
alias: pci:v000010ECd00008167sv*sd*bc*sc*i*
alias: pci:v000010ECd00008136sv*sd*bc*sc*i*
alias: pci:v000010ECd00008129sv*sd*bc*sc*i*
depends: mii
vermagic: 2.6.18-308.el5 SMP mod_unload gcc-4.1
parm: rx_copybreak:Copy breakpoint for copy-only-tiny-frames (int)
parm: use_dac:Enable PCI DAC. Unsafe on 32 bit PCI slot. (int)
parm: debug:Debug verbosity level (0=none, ..., 16=all) (int)
module_sig: 883f3504f23243d2d3142b3e704051112e6b709e3b544a3e206c72e140c0edbb9629d3b31086569609f535d83d8f076749cbfa5d34d39be5319c1cc321

如下命令能看出来是不是集成网卡?---有待验证。
[html] view plain copy
[root@hvrhub ~]# dmidecode | sed -n '/net/,+5p'
Type: Ethernet
Status: Enabled
Description: Onboard Ethernet ------------------->这个意思是不是说这是集成网卡?有机会的话,弄个pci网卡上去,再执行此命令看看是啥输出。

Handle 0x0020, DMI type 11, 5 bytes
OEM Strings
下面的命令也能看出网卡控制器的制造商信息。

[html] view plain copy
[root@hvrhub ~]# lspci | grep Ethernet
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller (rev 02)
[root@hvrhub ~]#

查看网卡网速的另外一个命令:
[html] view plain copy
[root@testb .vnc]# ethtool -i eth0
driver: r8169
version: 2.3LK-1-NAPI
firmware-version:
bus-info: 0000:03:00.0
[root@testb .vnc]# ethtool -i eth1
driver: r8169
version: 2.3LK-1-NAPI
firmware-version:
bus-info: 0000:04:06.0
[root@testb .vnc]#