关于网卡驱动

来源:互联网 发布:单片机照明集中控制 编辑:程序博客网 时间:2024/05/01 19:44

 发现一个问题,我的装的Red Hat Enterprise Linux Server release 5系统,两块网卡,一块板载,一块后插上去的,突然有一天,公司停电了,机器憋死了,当再次启动后发现板载的网卡我发使用了,具体如下:
板载网卡:eth0,接局域网。
后插网卡:eth1,与另一机器直连。
执行ifconfig,结果里面只有eth1,执行ifup eth0,出现如下提示:
eth0:error fecthing interface information:Device not found
第一感觉是驱动的问题。网上一顿搜索,感觉问题是启动时加载的模块问题。
于是cat /etc/modprobe.conf

alias eth0 via-rhine
alias scsi_hostadapter sata_via
alias snd-card-0 snd-via82xx
options snd-card-0 index=0
options snd-via82xx index=0
remove snd-via82xx { /usr/sbin/alsactl store 0 >/dev/null 2>&1 || : ; }; /sbin/modprobe -r --ignore-remove snd-via82xx
alias peth0 via-rhine
alias eth1 8139too
alias peth1 8139too

发现eth1的驱动是8139too,又查看了几个Linux机器的这个文件,大部分都是8139too,这个是很常用的声卡芯片啊,于是索性试试看,把eth0也改成这个。于是成功了,哦耶!