Abner Kou原创,转载请注明出处http://abner.cublog.cn
Add NIC to Openfiler 2.3
安装完Openfiler之后,新添了一块8139的PCI网卡
主要是想用新添的网卡管理Openfiler,另一块集成的用来使用共享存储
可是添加完成后ifconfig只能显示eth0的集成网卡
以下是解决过程
1:#ls /etc/sysconfig//network-scripts
ifcfg-eth0 ifdown-ippp ifdown-sl ifup-ipv6 ifup-routes
ifcfg-eth1 ifdown-ipsec ifup ifup-ipx ifup-sit
2:#vi /etc/sysconfig/network-scripts/ifcfg-eth1
配置好IP地址
DEVICE=eth1
USERCTL=no
BOOTPROTO=static
BROADCAST=192.168.63.255
HWADDR=50:78:4C:45:C8:2B
IPADDR=192.168.40.200
NETMASK=255.255.224.0
NETWORK=192.168.32.0
ONBOOT=yes
TYPE=Ethernet
3:#vi /etc/modprode.conf
alias eth0 tg3
alias eth1 8139cp
内核认出的网卡类型为8139cp
4:#lspci
02:00.0 Ethernet controller: Broadcom Corporation NetXtreme BCM5754 Gigabit Ether net PCI Express (rev 02)
04:09.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL-8139/8139C/8139C + (rev 10)
5:#lspci -n
02:00.0 Class 0200: 14e4:167a (rev 02)
04:09.0 Class 0200: 10ec:8139 (rev 10)
根据(rev 10)查到8139这块网卡的device Id 10ec vandor id 8139
6:查找 /lib/modules/2.6.26.8-1.0.11.smp.gcc3.4.x86_64/modules.pcimap
8139cp 0x000010ec 0x00008139 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0
8139cp 0x00000357 0x0000000a 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0
8139too 0x000010ec 0x00008139 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0
8139too 0x000010ec 0x00008138 0xffffffff 0xffffffff 0x00000000 0x00000000 0x0
内核中有两个device Id 10ec vandor id 8139的驱动可选
8139cp和8139too
7:#lsmod (查找加载模块)
Module Size Used by
8139cp 28688 0
8139too 32144 0
mii 14480 2 8139cp,8139too
已经加载8139的两个驱动模块
8:#dmesg (也可dmesg | grep eth1/eth0)
8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004)
8139cp 0000:04:09.0: This (id 10ec:8139 rev 10) is not an 8139C+ compatible chip
8139cp 0000:04:09.0: Try the "8139too" driver instead.
发现问题所在,内核没有正确认出8139网卡的型号,在/etc/modprode.conf手动该8159cp 为 8139too
9:#service network restart
10:#ifconfig
成功显示eth0和eth1
阅读(2831) | 评论(1) | 转发(0) |