確定缺少驅動的網路卡
--檢查有幾個pci網路卡
[root@db01 ~]# lspci |grep Ethernet
04:00.0 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
04:00.1 Ethernet controller: Broadcom Corporation NetXtreme II BCM5709 Gigabit Ethernet (rev 20)
13:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
13:00.1 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
13:00.2 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
13:00.3 Ethernet controller: Broadcom Corporation NetXtreme BCM5719 Gigabit Ethernet PCIe (rev 01)
18:00.0 Ethernet controller: ServerEngines Corp. Emulex OneConnect 10Gb NIC (be3) (rev 02)
18:00.1 Ethernet controller: ServerEngines Corp. Emulex OneConnect 10Gb NIC (be3) (rev 02)
95:00.0 Ethernet controller: Broadcom Corporation Device 165f
95:00.1 Ethernet controller: Broadcom Corporation Device 165f
--檢查有驅動的網路卡
[root@db01 ~]# ifconfig
eth0 Link encap:Ethernet HWaddr 5C:F3:FC:DC:1C:C8
inet addr:10.208.0.30 Bcast:10.255.255.255 Mask:255.255.255.0
inet6 addr: fe80::5ef3:fcff:fedc:1cc8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2238 errors:0 dropped:0 overruns:0 frame.:0
TX packets:1398 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:227872 (222.5 KiB) TX bytes:249685 (243.8 KiB)
Interrupt:28 Memory:94000000-94012800
eth1 Link encap:Ethernet HWaddr 5C:F3:FC:DC:1C:CA
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame.:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:40 Memory:92000000-92012800
eth2 Link encap:Ethernet HWaddr 00:10:18:DB:F3:64
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame.:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:30
eth3 Link encap:Ethernet HWaddr 00:10:18:DB:F3:65
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame.:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:37
eth4 Link encap:Ethernet HWaddr 00:10:18:DB:F3:66
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame.:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:30
eth5 Link encap:Ethernet HWaddr 00:10:18:DB:F3:67
UP BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame.:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:37
eth6 Link encap:Ethernet HWaddr 00:90:FA:05:B2:3C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame.:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
eth7 Link encap:Ethernet HWaddr 00:90:FA:05:B2:40
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame.:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:107 errors:0 dropped:0 overruns:0 frame.:0
TX packets:107 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:7770 (7.5 KiB) TX bytes:7770 (7.5 KiB)
usb0 Link encap:Ethernet HWaddr 5E:F3:FD:37:1C:7B
inet6 addr: fe80::5cf3:fdff:fe37:1c7b/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5783 errors:0 dropped:0 overruns:0 frame.:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:376435 (367.6 KiB) TX bytes:468 (468.0 b)
--檢視網路卡的匯流排資訊(bus-info)
[root@db01 ~]# ethtool -i eth0
driver: bnx2
version: 2.0.8-j15
firmware-version: bc 6.2.0 NCSI 2.0.11
bus-info: 0000:04:00.0
[root@db01 ~]# ethtool -i eth1
driver: bnx2
version: 2.0.8-j15
firmware-version: bc 6.2.0 NCSI 2.0.11
bus-info: 0000:04:00.1
[root@db01 ~]# ethtool -i eth2
driver: tg3
version: 3.108
firmware-version: 5719-v1.29
bus-info: 0000:13:00.0
[root@db01 ~]# ethtool -i eth3
driver: tg3
version: 3.108
firmware-version: 5719-v1.29
bus-info: 0000:13:00.1
[root@db01 ~]# ethtool -i eth4
driver: tg3
version: 3.108
firmware-version: 5719-v1.29
bus-info: 0000:13:00.2
[root@db01 ~]# ethtool -i eth5
driver: tg3
version: 3.108
firmware-version: 5719-v1.29
bus-info: 0000:13:00.3
[root@db01 ~]# ethtool -i eth6
driver: be2net
version: 2.102.426r
firmware-version: 4.0.1062.0
bus-info: 0000:18:00.0
[root@db01 ~]# ethtool -i eth7
driver: be2net
version: 2.102.426r
firmware-version: 4.0.1062.0
bus-info: 0000:18:00.1
--確定95:00.1,95:00.0沒有驅動
--google 關鍵字:Broadcom 165f 或者 Broadcom Corporation Device 165f
找到網址http://pci-ids.ucw.cz/read/PC/14e4 對應的 165f 對應 NetXtreme BCM5720 Gigabit Ethernet PCIe
--到http://www.broadcom.com/support/ethernet_nic/netxtreme_server.php 下載5720驅動
--安裝驅動
The following are general guidelines for installing the driver.
1. Install the source RPM package:
rpm -ivh tg3-.src.rpm
2. CD to the RPM path and build the binary driver for your kernel:
cd /usr/src/{redhat,OpenLinux,turbo,packages,rpm ..}
========
在過去RHEL5以及之前的版本會在/usr/src/redhat下SOURCE 和SPECS這兩個目錄
現在rhel6是找不到這個目錄的
預設情況下會在/root/下生成一個rpmbuild的目錄這個下面就有SOURCE 和SPECS著兩個目錄
安裝軟體包後就會到這兩個目錄中去
=========
rpm -bb SPECS/tg3.spec
or
rpmbuild -bb SPECS/tg3.spec (for RPM version 4.x.x)
Note that the RPM path is different for different Linux distributions.
The driver will be compiled for the running kernel by default. To build
the driver for a kernel different than the running one, specify the
kernel by defining it in KVER:
rpmbuild -bb SPECS/tg3.spec --define "KVER "
where in the form. of 2.x.y-z is the version of another
kernel that is installed on the system.
3. Install the newly built package (driver and man page):
(/root/rpmbuild/RPMS/x86_64)
rpm -ivh RPMS//tg3-..rpm
rpm -ivh RPMS/i386/tg3-.i386.rpm
Note that the --force option may be needed on some Linux distributions
if conflicts are reported.
The driver will be installed in the following path:
2.6.x/3.x kernels:
/lib/modules//kernel/drivers/net/tg3.ko
4. Load the driver:
insmod tg3.o
or
insmod tg3.ko (on 2.6.x/3.x kernels)
or
modprobe tg3
5. To configure network protocol and address, refer to various Linux
documentations.
===============
This version of the tg3 driver supports one module parameter that is
not available in the in-kernel driver. The parameter is named tg3_disable_eee.
To disable Energy Efficient Ethernet (EEE) support, set this module parameter
to 1.
The rest of the sections below apply to both the in-kernel tg3
driver and the tg3 driver package from Broadcom.
Driver settings can be queried and changed using ethtool. The latest ethtool
can be downloaded from ftp://ftp.kernel.org/pub/software/network/ethtool if
it is not already installed. The following are some common examples on how to
use ethtool. See the ethtool man page for more information. ethtool settings
do not persist across reboot or module reload. The ethtool commands can be put
in a startup script. such as /etc/rc.local to preserve the settings across a
reboot. On Red Hat distributions, "ethtool -s" parameters can be specified
in the ifcfg-ethx scripts using the ETHTOOL_OPTS keyword. The specified
ethtool parameters will be set during ifup. Example:
/etc/sysconfig/network-scripts/ifcfg-eth0:
ETHTOOL_OPTS="wol g speed 100 duplex half autoneg off"
Some ethtool examples:
1. Show current speed, duplex, and link status:
ethtool eth0
2. Change speed, duplex, autoneg:
Example: 100Mbps half duplex, no autonegotiation:
ethtool -s eth0 speed 100 duplex half autoneg off
Example: Autonegotiation with full advertisement:
ethtool -s eth0 autoneg on
Example: Autonegotiation with 100Mbps full duplex advertisement only:
ethtool -s eth0 speed 100 duplex full autoneg on
3. Show flow control settings:
ethtool -a eth0
4. Change flow control settings:
Example: Turn off flow control
ethtool -A eth0 autoneg off rx off tx off
Example: Turn flow control autonegotiation on with tx and rx advertisement:
ethtool -A eth0 autoneg on rx on tx on
Note that this is only valid if speed is set to autonegotiation.
5. Show offload settings:
ethtool -k eth0
6. Change offload settings:
Example: Turn off TSO (TCP segmentation offload)
ethtool -K eth0 tso off
7. Get statistics:
ethtool -S eth0
8. Perform. self-test:
ethtool -t eth0
Note that the interface (eth0) must be up to do all tests.
9. Show number of channels (rings):
ethtool -l eth0
Note that this is only supported on newer MSI-X capable devices (e.g.
57765, 57766, 5717, 5719, 5720) and available on 3.x kernels and 3.x
ethtool only.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/25027760/viewspace-750870/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- linux網路卡驅動薦Linux
- Linux下檢視網路卡資訊及確定網路卡位置Linux
- linux檢視網路卡驅動Linux
- win10網路卡驅動怎麼更新_win10更新網路卡驅動操作方法Win10
- win10在哪裡檢視網路卡驅動_windows10怎麼檢視網路卡驅動Win10Windows
- win10網路卡驅動還原怎麼操作_win10網路卡驅動如何還原Win10
- win10網路卡驅動不能用怎麼辦_win10網路卡驅動異常的解決方法Win10
- win10網路卡驅動怎麼備份_win10網路卡驅動備份操作方法Win10
- win10網路卡驅動位置在哪裡_win10網路卡驅動檔案位置如何開啟Win10
- win10重灌網路卡驅動怎麼弄_新裝win10沒有網路卡驅動如何重灌Win10
- 手動安裝Linux網路卡驅動程式薦Linux
- VMware ESXi 8.0U2c macOS Unlocker & OEM BIOS 整合網路卡驅動 Marvell AQC 網路卡定製版MaciOS
- win10網路卡驅動資料夾在哪裡_win10網路卡驅動安裝在哪個資料夾Win10
- win10怎樣安裝無線網路卡驅動_win10系統安裝無線網路卡驅動的步驟Win10
- vmware虛擬網路卡驅動無法安裝
- windows10系統如何回退網路卡驅動Windows
- 怎樣驅動音效卡和網路卡?(轉)
- win10網路卡驅動裝不上如何解決_win10網路卡驅動裝不上怎麼處理Win10
- deepin linux的無線網路解決-網路卡驅動(手動)安裝Linux
- win10網路卡驅動不相容怎麼處理_win10與網路卡驅動不相容解決方法Win10
- 網路卡驅動刪除不完整造成的網速變慢(轉)
- win10系統更新無線網路卡驅動的方法Win10
- windows10系統安裝水星網路卡驅動的方法Windows
- linux網路卡驅動程式的編譯與安裝(轉)Linux編譯
- Ubuntu 20.04.5安裝Solarflare網路卡Openonload驅動Ubuntu
- linux下安裝Marvell Yukon網路卡驅動Linux
- 第一步:設定正確的網路卡服務順序
- win10無線網路卡驅動異常怎麼修復_win10無線網路卡驅動異常解決方法Win10
- win10無線網路卡驅動解除安裝如何操作_win10怎麼刪除電腦無線網路卡驅動Win10
- w10系統網路卡驅動程式碼56怎麼解決 win10網路卡驅動報錯56修復方法Win10
- 網路卡驅動程式不正常上不了網怎麼修復(win7、win10) 網路卡驅動不正常不能連線網路Win7Win10
- VMware ESXi 8.0U3 macOS Unlocker & OEM BIOS 整合網路卡驅動和 NVMe 驅動 (整合驅動版)MaciOS
- 如何為3G上網路卡安裝非廠方原裝驅動(通用驅動)的方法
- win10無線網路卡驅動不能用的解決方法Win10
- VMware ESXi 8.0U1d macOS Unlocker & OEM BIOS 整合網路卡驅動和 NVMe 驅動 (整合驅動版)MaciOS
- VMware ESXi 8.0U2c macOS Unlocker & OEM BIOS 整合網路卡驅動和 NVMe 驅動 (整合驅動版)MaciOS
- 怎樣給WinPE安裝網路卡音效卡驅動
- 網路卡驅動安裝方法 Windows 7 64位系統Windows