如何让内核检测到两块网卡

      LINUX专栏 2005-5-30 13:20:00
 
发信站: BBS 水木清华站 (Sun Nov 16 19:54:57 1997) 
经常碰到这类问题,其实非常简单: 

当你有两块网卡时,在lilo.conf里加上 

append = "ether=0,0,eth1" 

当你插了三块, 则为: 

append = "ether=0,0,eth1 ether=0,0,eth2" 

举例如下: 

boot = /dev/hda 
#compact        # faster, but won't work on all systems. 
delay = 50 
vga = normal    # force sane state 
append= "ether=0,0,eth1" 
# ramdisk = 0     # paranoia setting 
# End LILO global section 
# Linux bootable partition config begins 
image = /zImage 
  root = /dev/hda1 
  label = linux 
  read-only # Non-UMSDOS filesystems should be mounted read-only for checking 
# Linux bootable partition config ends 

这是不知道网卡irq和iobase时的做法(尤其是PCI网卡时,象3c590...) 

当知道网卡irq和iobase时,还是指定的好: 

例如:两块3c590: 

append="ether=9,0xfce0,eth0 ether=5,0xfcc0,eth1" 
  

注:如果已经编译成模块的话,应该在/etc/rc.d/rc.modules(在Redhat里是/etc/conf.modules) 
加上类似的一行: 
/sbin/modprobe ne io=io1,io2 
先试试上面的方法吧. 
  

本文转自中文Linux论坛 
标签集:TAGS:
回复Comments() 点击Count()
喜欢就顶一下

回复Comments

{commentauthor}
{commentauthor}
{commenttime}
{commentnum}
{commentcontent}
作者:
{commentrecontent}