dell optiplex 3010 安裝 redhat linux 5.4 解決方案
dell optiplex 3010 單網路卡,硬碟500G ,在該主機上安裝 redhat linux 5.4(64位) ,
安裝完之後用 chkconfig --list iptables 檢查防火牆已經關閉,
但只能 ping 通 eth0 的ip地址,無法 ping 通 閘道器地址
下面是 /var/log/messages 的一些資訊
[root@spgztest log]# pwd
/var/log
[root@spgztest log]# tail -f messages
Sep 12 10:32:06 spgztest dhcpd:
Sep 12 10:32:06 spgztest dhcpd: Please do not under any circumstances send requests for
Sep 12 10:32:06 spgztest dhcpd: help directly to the authors of this software - please
Sep 12 10:32:06 spgztest dhcpd: send them to the appropriate mailing list as described in
Sep 12 10:32:06 spgztest dhcpd: the README file.
Sep 12 10:32:06 spgztest dhcpd:
Sep 12 10:32:06 spgztest dhcpd: exiting.
Sep 12 10:34:38 spgztest kernel: r8169: eth0: unknown chipset (mac_version = 1).
Sep 12 10:34:38 spgztest kernel: r8169: eth0: link down
Sep 12 10:34:38 spgztest kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
/var/log
[root@spgztest log]# tail -f messages
Sep 12 10:32:06 spgztest dhcpd:
Sep 12 10:32:06 spgztest dhcpd: Please do not under any circumstances send requests for
Sep 12 10:32:06 spgztest dhcpd: help directly to the authors of this software - please
Sep 12 10:32:06 spgztest dhcpd: send them to the appropriate mailing list as described in
Sep 12 10:32:06 spgztest dhcpd: the README file.
Sep 12 10:32:06 spgztest dhcpd:
Sep 12 10:32:06 spgztest dhcpd: exiting.
Sep 12 10:34:38 spgztest kernel: r8169: eth0: unknown chipset (mac_version = 1).
Sep 12 10:34:38 spgztest kernel: r8169: eth0: link down
Sep 12 10:34:38 spgztest kernel: ADDRCONF(NETDEV_UP): eth0: link is not ready
在網上搜尋 “kernel: r8169: eth0: unknown chipset (mac_version = 1)” 之後,顯示 centos5.4 也出現了這種情況,
centos5.4 自帶的網路卡驅動會有點問題,需要安裝官方驅動
解決方案如下:
1:檢視乙太網卡的物理資訊是 RTL8111/8168B
[root@spgztest ~]# lspci |grep Ethernet
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 06)
但是在裝置資訊中顯示的 eth0 卻是 r8169 ,因此初步判斷是 網路卡和驅動不一致 的問題
[root@spgztest ~]#
[root@spgztest ~]# cat /etc/modprobe.conf
alias eth0 r8169
alias scsi_hostadapter ahci
alias scsi_hostadapter1 usb-storage
[root@spgztest ~]# cat /etc/modprobe.conf
alias eth0 r8169
alias scsi_hostadapter ahci
alias scsi_hostadapter1 usb-storage
[root@spgztest ~]# lsmod |grep 8169
r8169 70853 0
mii 38849 1 r8169
[root@spgztest ~]#
[root@spgztest ~]# rmmod r8169
[root@spgztest ~]# lsmod |grep 8169
[root@spgztest ~]#
[root@spgztest ~]# make clean modules
make: *** No rule to make target `clean'. Stop.
[root@spgztest ~]#
在如下頁面下載linux網路卡驅動
下載 驅動包 r8168-8.036.00.tar.bz2 到 U 盤中,將 U 盤插入 linux伺服器,會直接彈出視窗,然後右鍵點選“copy”
[root@spgztest ~]# pwd
/root
[root@spgztest ~]# cp /media/GRMCULFRER_/r8168-8.036.00.tar.bz2 /root
[root@spgztest ~]#
[root@spgztest ~]#
[root@spgztest ~]# cd /root
[root@spgztest ~]# ls -lt r8168-8.036.00.tar.bz2
-rwxr-xr-x 1 root root 71053 Sep 12 11:18 r8168-8.036.00.tar.bz2
[root@spgztest ~]#
[root@spgztest ~]# chmod 777 r8168-8.036.00.tar.bz2
[root@spgztest ~]#
/root
[root@spgztest ~]# cp /media/GRMCULFRER_/r8168-8.036.00.tar.bz2 /root
[root@spgztest ~]#
[root@spgztest ~]#
[root@spgztest ~]# cd /root
[root@spgztest ~]# ls -lt r8168-8.036.00.tar.bz2
-rwxr-xr-x 1 root root 71053 Sep 12 11:18 r8168-8.036.00.tar.bz2
[root@spgztest ~]#
[root@spgztest ~]# chmod 777 r8168-8.036.00.tar.bz2
[root@spgztest ~]#
然後解壓安裝
[root@spgztest ~]# tar -xf r8168-8.036.00.tar.bz2
[root@spgztest ~]# ls
anaconda-ks.cfg Desktop install.log install.log.syslog r8168-8.036.00 r8168-8.036.00.tar.bz2
[root@spgztest ~]# cd r8168-8.036.00
[root@spgztest r8168-8.036.00]# ls
autorun.sh Makefile README src
[root@spgztest ~]# ls
anaconda-ks.cfg Desktop install.log install.log.syslog r8168-8.036.00 r8168-8.036.00.tar.bz2
[root@spgztest ~]# cd r8168-8.036.00
[root@spgztest r8168-8.036.00]# ls
autorun.sh Makefile README src
[root@spgztest r8168-8.036.00]# ./autorun.sh
Check old driver and unload it.
Build the module and install
In file included from /root/r8168-8.036.00/src/r8168_n.c:70:
/root/r8168-8.036.00/src/r8168.h:299:1: warning: "DMA_BIT_MASK" redefined
In file included from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:135,
from include/linux/pci.h:804,
from /root/r8168-8.036.00/src/r8168_n.c:40:
include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition
/root/r8168-8.036.00/src/r8168_n.c: In function 鈥榬tl8168_init_board鈥?
/root/r8168-8.036.00/src/r8168_n.c:15865: warning: left shift count >= width of type
/root/r8168-8.036.00/src/r8168_n.c: In function 鈥榬tl8168_init_one鈥?
/root/r8168-8.036.00/src/r8168_n.c:16186: warning: assignment discards qualifiers from pointer target type
/root/r8168-8.036.00/src/r8168_n.c: In function 鈥榬tl8168_poll鈥?
/root/r8168-8.036.00/src/r8168_n.c:18614: warning: cast from pointer to integer of different size
In file included from /root/r8168-8.036.00/src/r8168_asf.c:53:
/root/r8168-8.036.00/src/r8168.h:299:1: warning: "DMA_BIT_MASK" redefined
In file included from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:135,
from include/linux/pci.h:804,
from /root/r8168-8.036.00/src/r8168_asf.c:37:
include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition
In file included from /root/r8168-8.036.00/src/rtl_eeprom.c:43:
/root/r8168-8.036.00/src/r8168.h:299:1: warning: "DMA_BIT_MASK" redefined
In file included from include/linux/dmaengine.h:32,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:112,
from include/linux/netdevice.h:29,
from /root/r8168-8.036.00/src/rtl_eeprom.c:38:
include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition
In file included from /root/r8168-8.036.00/src/rtltool.c:8:
/root/r8168-8.036.00/src/r8168.h:299:1: warning: "DMA_BIT_MASK" redefined
In file included from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:135,
from include/linux/pci.h:804,
from /root/r8168-8.036.00/src/rtltool.c:3:
include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition
Backup r8169.ko
rename r8169.ko to r8169.bak
DEPMOD 2.6.18-164.el5
load module r8168
Completed.
Build the module and install
In file included from /root/r8168-8.036.00/src/r8168_n.c:70:
/root/r8168-8.036.00/src/r8168.h:299:1: warning: "DMA_BIT_MASK" redefined
In file included from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:135,
from include/linux/pci.h:804,
from /root/r8168-8.036.00/src/r8168_n.c:40:
include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition
/root/r8168-8.036.00/src/r8168_n.c: In function 鈥榬tl8168_init_board鈥?
/root/r8168-8.036.00/src/r8168_n.c:15865: warning: left shift count >= width of type
/root/r8168-8.036.00/src/r8168_n.c: In function 鈥榬tl8168_init_one鈥?
/root/r8168-8.036.00/src/r8168_n.c:16186: warning: assignment discards qualifiers from pointer target type
/root/r8168-8.036.00/src/r8168_n.c: In function 鈥榬tl8168_poll鈥?
/root/r8168-8.036.00/src/r8168_n.c:18614: warning: cast from pointer to integer of different size
In file included from /root/r8168-8.036.00/src/r8168_asf.c:53:
/root/r8168-8.036.00/src/r8168.h:299:1: warning: "DMA_BIT_MASK" redefined
In file included from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:135,
from include/linux/pci.h:804,
from /root/r8168-8.036.00/src/r8168_asf.c:37:
include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition
In file included from /root/r8168-8.036.00/src/rtl_eeprom.c:43:
/root/r8168-8.036.00/src/r8168.h:299:1: warning: "DMA_BIT_MASK" redefined
In file included from include/linux/dmaengine.h:32,
from include/linux/skbuff.h:31,
from include/linux/if_ether.h:112,
from include/linux/netdevice.h:29,
from /root/r8168-8.036.00/src/rtl_eeprom.c:38:
include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition
In file included from /root/r8168-8.036.00/src/rtltool.c:8:
/root/r8168-8.036.00/src/r8168.h:299:1: warning: "DMA_BIT_MASK" redefined
In file included from include/asm-generic/pci-dma-compat.h:7,
from include/asm/pci.h:135,
from include/linux/pci.h:804,
from /root/r8168-8.036.00/src/rtltool.c:3:
include/linux/dma-mapping.h:16:1: warning: this is the location of the previous definition
Backup r8169.ko
rename r8169.ko to r8169.bak
DEPMOD 2.6.18-164.el5
load module r8168
Completed.
[root@spgztest r8168-8.036.00]# lsmod |grep r8168
r8168 288608 0
[root@spgztest r8168-8.036.00]#
[root@spgztest r8168-8.036.00]# ifconfig
eth0 Link encap:Ethernet HWaddr A4:1F:72:8A:4A:1C
inet addr:10.10.40.136 Bcast:10.10.40.255 Mask:255.255.255.0
inet6 addr: fe80::a61f:72ff:fe8a:4a1c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:143 errors:0 dropped:0 overruns:0 frame.:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14352 (14.0 KiB) TX bytes:11458 (11.1 KiB)
Interrupt:233 Base address:0x8000
r8168 288608 0
[root@spgztest r8168-8.036.00]#
[root@spgztest r8168-8.036.00]# ifconfig
eth0 Link encap:Ethernet HWaddr A4:1F:72:8A:4A:1C
inet addr:10.10.40.136 Bcast:10.10.40.255 Mask:255.255.255.0
inet6 addr: fe80::a61f:72ff:fe8a:4a1c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:143 errors:0 dropped:0 overruns:0 frame.:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14352 (14.0 KiB) TX bytes:11458 (11.1 KiB)
Interrupt:233 Base address:0x8000
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:1778 errors:0 dropped:0 overruns:0 frame.:0
TX packets:1778 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2446635 (2.3 MiB) TX bytes:2446635 (2.3 MiB)
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:1778 errors:0 dropped:0 overruns:0 frame.:0
TX packets:1778 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2446635 (2.3 MiB) TX bytes:2446635 (2.3 MiB)
[root@spgztest r8168-8.036.00]#
[root@spgztest r8168-8.036.00]# ifconfig eth0 up
[root@spgztest r8168-8.036.00]# ifconfig eth0 up
最後測試網路卡驅動是否安裝成功
[root@spgztest ~]#
[root@spgztest ~]# ethtool -s eth0 speed 100 duplex full autoneg on
[root@spgztest ~]# ethtool -s eth0 speed 100 duplex full autoneg on
[root@spgztest ~]# ping 10.10.36.134
PING 10.10.36.134 (10.10.36.134) 56(84) bytes of data.
64 bytes from 10.10.36.134: icmp_seq=1 ttl=127 time=2.63 ms
64 bytes from 10.10.36.134: icmp_seq=2 ttl=127 time=0.312 ms
64 bytes from 10.10.36.134: icmp_seq=3 ttl=127 time=0.647 ms
64 bytes from 10.10.36.134: icmp_seq=4 ttl=127 time=0.499 ms
PING 10.10.36.134 (10.10.36.134) 56(84) bytes of data.
64 bytes from 10.10.36.134: icmp_seq=1 ttl=127 time=2.63 ms
64 bytes from 10.10.36.134: icmp_seq=2 ttl=127 time=0.312 ms
64 bytes from 10.10.36.134: icmp_seq=3 ttl=127 time=0.647 ms
64 bytes from 10.10.36.134: icmp_seq=4 ttl=127 time=0.499 ms
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/28373936/viewspace-1722297/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- redhat 5.4下安裝MYSQL全過程RedhatMySql
- Linux(01):RedHat 7.6 安裝LinuxRedhat
- redhat安裝dockerRedhatDocker
- npm安裝失敗解決方案NPM
- MySQL解除安裝重灌解決方案MySql
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)線上安裝方式LinuxRedhatCentOSMySql
- 在Linux(Redhat/CentOS)下安裝MySQL之yum(rpm)離線安裝方式LinuxRedhatCentOSMySql
- linux 安裝 jupyter報錯解決Linux
- npm install 安裝報錯解決方案NPM
- win安裝wordcloud報錯解決方案Cloud
- Laravel安裝horizon報錯解決方案Laravel
- centOS(同redhat)安裝 dockerCentOSRedhatDocker
- 操作規範(四)——Linux 5.4安裝Oracle 11gR2LinuxOracle
- 解決VMware安裝RedHat虛擬機器無法上網的問題Redhat虛擬機
- 【安裝Android Studio報錯之解決方案】Android
- 解決pytorch-gpu 安裝失敗方案PyTorchGPU
- autodesk產品無法安裝解決方案
- Oracle 10g 在linux redhat as4 系統安裝圖解全過程Oracle 10gLinuxRedhat圖解
- RedHat FC5安裝xmmsRedhat
- PostgreSQL:Redhat 8.5 + PostgreSQL 14.5 安裝SQLRedhat
- 徹底解決Linux下mongodb的安裝LinuxMongoDB
- Arch linux下安裝bochs失敗解決Linux
- DELL E5470 安裝WWAN
- Anaconda 安裝 國內映象問題解決方案
- ubuntu 20.04 安裝 vim 出錯的解決方案Ubuntu
- 解決centos 7 安裝、檢查和配置源為aliyun解決方案CentOS
- Redhat 7 下安裝達夢7Redhat
- RedHat 7.6作業系統安裝Redhat作業系統
- Vmware linux redhat6.4 安裝11g(11.2.0.1) 雙節點RACLinuxRedhat
- [重慶思莊每日技術分享]-Redhat Linux 6.5安裝ORACLE ASMLIBRedhatLinuxOracleASM
- 關於 larabbs yarn 安裝加速不能用解決方案Yarn
- led螢幕的安裝方式及故障解決方案
- 安裝WSL報錯0x80370102解決方案
- Laravel 5.4 入門系列 1. 安裝Laravel
- linux mint 19 pyenv 安裝 python 3.7.0 問題解決LinuxPython
- Linux解決MySQL-python安裝失敗問題LinuxMySqlPython
- Linux安裝Python3.11以及解決openssl問題LinuxPython
- win10安裝net35終極解決方案 net3.5安裝失敗的解決辦法Win10
- Linux下錯誤解決方案Linux