免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
楼主: jazeltq
打印 上一主题 下一主题

linux 网卡 [复制链接]

论坛徽章:
36
IT运维版块每日发帖之星
日期:2016-04-10 06:20:00IT运维版块每日发帖之星
日期:2016-04-16 06:20:0015-16赛季CBA联赛之广东
日期:2016-04-16 19:59:32IT运维版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-19 06:20:00每日论坛发贴之星
日期:2016-04-19 06:20:00IT运维版块每日发帖之星
日期:2016-04-25 06:20:00IT运维版块每日发帖之星
日期:2016-05-06 06:20:00IT运维版块每日发帖之星
日期:2016-05-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-13 06:20:00IT运维版块每日发帖之星
日期:2016-05-28 06:20:00每日论坛发贴之星
日期:2016-05-28 06:20:00
11 [报告]
发表于 2009-06-01 22:02 |只看该作者
如果你还没搞明白你的网卡驱动的名称,那么你进入内核的配置文件中看driver的时候,也没法确定哪个配置是你当前网卡的。

所以,先看一下modprobe.conf文件中有几个ethX,每个ethx对应的名称是什么。这个名称通常就是这个网卡所使用的驱动名称。

论坛徽章:
0
12 [报告]
发表于 2009-06-01 22:08 |只看该作者
en ,
#
# Copyright (c) 1996-2002 SuSE Linux AG Nuernberg, Germany.
# All rights reserved.
#
# Author: Hubert Mantel <mantel@suse.de>, 1996-2002
#
# Configuration file for loadable modules; used by modprobe
#
# Please don't edit this file. Place your settings into
# /etc/modprobe.conf.local instead.
#
#
########################################################################
# Aliases - specify your hardware
########################################################################

install eth0             /bin/true
install eth1             /bin/true
install tr0              /bin/true
install scsi_hostadapter /bin/true
install fb0              /bin/true

########################################################################
# only used for Mylex or Compaq Raid as module
########################################################################

install block-major-48   /bin/true
install block-major-49   /bin/true
install block-major-72   /bin/true
install block-major-73   /bin/true

########################################################################
# only needed for fifth and sixth IDE adaptor
########################################################################

install block-major-56   /bin/true
install block-major-57   /bin/true

########################################################################
# mouse (for older busmice)
########################################################################

install char-major-10    /bin/true

########################################################################
# If you want to use the new autofs4
########################################################################

alias autofs           autofs4

########################################################################
# For parallel port devices, uncomment the following two lines and
# change "frpw" to the protocol type you use
########################################################################

# install paride /sbin/modprobe --ignore-install paride && { /sbin/modprobe --ignore-install frpw; }
# remove paride { /sbin/modprobe -r --ignore-remove frpw; } ; /sbin/modprobe -r --ignore-remove paride

########################################################################
# Options; these are examples; uncomment and modify the lines you need
########################################################################

# options cdu31a         cdu31a_port=0x340 cdu31a_irq=0
# options aztcd          aztcd=0x320
# options cm206          cm206=0x340,11
# options gscd           gscd=0x340
# options mcdx           mcdx=0x300,11
# options optcd          optcd=0x340
# options sjcd           sjcd_base=0x340
# options sonycd535      sonycd535=0x340

# options ne             io=0x300 irq=5

# Use this if you have two cards:
# options ne             io=0x300,0x320 irq=5,7

# options tulip          options=0
# options 3c59x          options=0
# options 3c501          io=0x280 irq=5
# options 3c503          io=0x280 irq=5 xcvr=0
# options 3c505          io=0x300 irq=10
# options 3c507          io=0x300 irq=10
# options 3c509          irq=10
# options at1700         io=0x260 irq=10
# options wd             io=0x300 irq=10
# options smc9194        io=0x200 irq=10 ifport=0
# options e2100          io=0x300 irq=10 mem=0xd0000 xcvr=0
# options depca          io=0x200 irq=7
# options ewrk3          io=0x300 irq=10
# options eexpress       io=0x300 irq=10
# options hp             io=0x300 irq=10
# options hp100          hp100_port=0x380
# options ac3200         io=0x300 irq=10 mem=0xd0000
# options de620          io=0x378 irq=7 bnc=1
# options ibmtr          io=0xa20
# options arcnet         io=0x300 irq=10 shmem=0xd0000
# options plip           io=0x378 irq=7
# options eepro          io=0x260 irq=10 mem=0x6000
# options eth16i         io=0x2a0 irq=10
# options ni52           io=0x360 irq=9 memstart=0xd0000 memend=0xd4000
# options bttv    pll=1 radio=0 card=0
# options tuner   type=0
# options msp3400 once=1 simple=1

# install bttv /sbin/modprobe --ignore-install bttv && { /sbin/modprobe -k tuner; /sbin/modprobe -k msp3400; }
#

install dummy0 /sbin/modprobe -o dummy0 --ignore-install dummy
install dummy1 /sbin/modprobe -o dummy1 --ignore-install dummy
remove dummy0 /sbin/modprobe -r -o dummy0 --ignore-remove dummy
remove dummy1 /sbin/modprobe -r -o dummy1 --ignore-remove dummy

########################################################################
# block dev aliases
########################################################################

install block-major-3     /bin/true
alias block-major-13      xd
alias block-major-15      cdu31a
alias block-major-16      gscd
alias block-major-17      optcd
alias block-major-18      sjcd
alias block-major-20      mcdx
install block-major-22    /bin/true
alias block-major-24      sonycd535
alias block-major-29      aztcd
alias block-major-32      cm206
install block-major-33    /bin/true
install block-major-34    /bin/true
# network block device
install block-major-43    /bin/true
alias block-major-45      pd
alias block-major-46      pcd
alias block-major-47      pf

########################################################################
# char dev aliases
########################################################################

install char-major-10-134 /bin/true
install char-major-10-135 /bin/true
alias char-major-10-175   agpgart
alias char-major-10-181   toshiba
alias char-major-10-250   sonypi
options sonypi            minor=250
install char-major-15     /bin/true
alias char-major-19       cyclades
alias char-major-20       cyclades
install char-major-29     /bin/true
# alias char-major-43       hisax
# alias char-major-44       hisax
# alias char-major-45       hisax
install char-major-43     /bin/true
install char-major-44     /bin/true
install char-major-45     /bin/true
alias char-major-67       coda
alias char-major-75       specialix
alias char-major-76       specialix
alias char-major-81       videodev
install char-major-81-0   /bin/true
install char-major-81-1   /bin/true
install char-major-81-2   /bin/true
install char-major-81-3   /bin/true

alias char-major-96       pt
alias char-major-97       pg
# remove this if sound is configured
install char-major-116    /bin/true

########################################################################
# ppp over ethernet
# the kernel 2.2 uses pppox
# the kernel 2.4 uses pppoe
########################################################################

alias char-major-144      pppoe

########################################################################
# IrDA
########################################################################

alias char-major-161      ircomm-tty

alias char-major-162      raw

########################################################################
# ISDN
########################################################################
install b1pci /bin/true
install c4 /bin/true
install sc /bin/true
install hisax /bin/true
install hisax_fcpcipnp /bin/true
install hfc4s8s_l1 /bin/true
install hysdn /bin/true
install pcbit /bin/true
install t1pci /bin/true
install divas /bin/true
install fcdsl /bin/true
install fcdsl2 /bin/true
install fcpci /bin/true
install fcpnp /bin/true
install fcdslsl /etc/sysconfig/isdn/scripts/hotplug_pci

########################################################################
# USB
########################################################################

install char-major-166    /bin/true

########################################################################
# Moxa Multiport Serial Boards
########################################################################

alias char-major-172      moxa
alias char-major-173      moxa

# options moxa type=2,,, baseaddr=0xdc000,,, numports=8,,,
alias char-major-174      mxser
alias char-major-175      mxser
# options mxser ioaddr=0x180

#alias char-major-180     usbcore

alias char-major-188      usbserial

alias char-major-212      /bin/true

alias binfmt-204          binfmt_aout
alias binfmt-263          binfmt_aout
alias binfmt-264          binfmt_aout
alias binfmt-267          binfmt_aout
alias binfmt-0064         binfmt_aout
alias binfmt-0008         binfmt_aout

alias iso9660             isofs

# alias tty-ldisc-7       6pack
install tty-ldisc-7       /bin/true

# alias ax0               mkiss
install ax0               /bin/true
# alias sp0               6pack
install sp0               /bin/true
alias slip0               slip
alias sl0                 slip
alias slip1               slip
alias sl1                 slip

########################################################################
# the kernel 2.2 uses ppp.o as ppp driver,
# the kernel 2.4 uses ppp_generic.o
########################################################################

alias ppp0                ppp_generic
alias ppp1                ppp_generic

alias plip0               plip
alias plip1               plip

# Tunnel interfaces
alias sit0 ipv6
alias gre0 ip_gre
alias ipip0 ipip

alias xfrm-type-2-50    esp4
alias xfrm-type-2-51    ah4
alias xfrm-type-2-108   ipcomp
alias xfrm-type-10-50   esp6
alias xfrm-type-10-51   ah6
alias xfrm-type-10-108  ipcomp6

# Linux-ABI
install binfmt_misc /sbin/modprobe --ignore-install binfmt_misc && { mount -t binfmt_misc none /proc/sys/fs/binfmt_misc; }
remove binfmt_misc { umount /proc/sys/fs/binfmt_misc; } ; /sbin/modprobe -r --ignore-remove binfmt_misc

# NFS
alias nfs4 nfs

# rpc_pipefs
install rpc_pipefs /sbin/modprobe sunrpc

# we don'
t want ide-scsi handle CD drives [#242009]
options ide-scsi idescsi_nocd=1


# end of common part for modprobe.conf
# begin of i386 part for modprobe.conf

alias parport_lowlevel    parport_pc
# disable DMA for parallel port (bnc#180390)
options parport_pc dma=none
# options parport_pc io=0x378 irq=none
# If you have multiple parallel ports, specify them this way:
# options parport_pc io=0x378,0x278  irq=none,none

# Linux ACP modem (Mwave)
alias char-major-10-219 mwave
# options mwave dspirq=10 dspio=0x130 uartirq=3 uartio=0x2f8

# IBM thinkpad tpctl
# see /usr/share/doc/packages/tpctl/
alias char-major-10-170 thinkpad
# options thinkpad enable_smapi=0


# required for DRI support on SiS chips
options sisfb             mode=none mem=12288

# ata_piix can

论坛徽章:
0
13 [报告]
发表于 2009-06-01 22:09 |只看该作者
原帖由 jazeltq 于 2009-6-1 20:20 发表
我从新编译过内核,是不是我弄成builtin了?这个怎么看亚?驱动那一块那么多的网卡驱动

试试:
ethtool -i eth0

论坛徽章:
0
14 [报告]
发表于 2009-06-01 22:12 |只看该作者
这是输出
driver: forcedeth
version: 0.61
firmware-version:
bus-info: 0000:00:0a.0

论坛徽章:
0
15 [报告]
发表于 2009-06-01 22:15 |只看该作者

回复 #14 jazeltq 的帖子

嗯。那就是这个forcedeth模块。刚刚查了下,NVIDIA的确实是这个。

论坛徽章:
0
16 [报告]
发表于 2009-06-01 23:17 |只看该作者
差点看成了 FORCEDEATH

论坛徽章:
36
IT运维版块每日发帖之星
日期:2016-04-10 06:20:00IT运维版块每日发帖之星
日期:2016-04-16 06:20:0015-16赛季CBA联赛之广东
日期:2016-04-16 19:59:32IT运维版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-19 06:20:00每日论坛发贴之星
日期:2016-04-19 06:20:00IT运维版块每日发帖之星
日期:2016-04-25 06:20:00IT运维版块每日发帖之星
日期:2016-05-06 06:20:00IT运维版块每日发帖之星
日期:2016-05-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-13 06:20:00IT运维版块每日发帖之星
日期:2016-05-28 06:20:00每日论坛发贴之星
日期:2016-05-28 06:20:00
17 [报告]
发表于 2009-06-01 23:21 |只看该作者
原帖由 scutan 于 2009-6-1 22:15 发表
嗯。那就是这个forcedeth模块。刚刚查了下,NVIDIA的确实是这个。

lsmod中有这个模块。

论坛徽章:
36
IT运维版块每日发帖之星
日期:2016-04-10 06:20:00IT运维版块每日发帖之星
日期:2016-04-16 06:20:0015-16赛季CBA联赛之广东
日期:2016-04-16 19:59:32IT运维版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-19 06:20:00每日论坛发贴之星
日期:2016-04-19 06:20:00IT运维版块每日发帖之星
日期:2016-04-25 06:20:00IT运维版块每日发帖之星
日期:2016-05-06 06:20:00IT运维版块每日发帖之星
日期:2016-05-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-13 06:20:00IT运维版块每日发帖之星
日期:2016-05-28 06:20:00每日论坛发贴之星
日期:2016-05-28 06:20:00
18 [报告]
发表于 2009-06-01 23:21 |只看该作者
原帖由 scutan 于 2009-6-1 22:15 发表
嗯。那就是这个forcedeth模块。刚刚查了下,NVIDIA的确实是这个。

他这个modprobe.conf网卡那部分没怎么看明白是怎么配置的?

论坛徽章:
36
IT运维版块每日发帖之星
日期:2016-04-10 06:20:00IT运维版块每日发帖之星
日期:2016-04-16 06:20:0015-16赛季CBA联赛之广东
日期:2016-04-16 19:59:32IT运维版块每日发帖之星
日期:2016-04-18 06:20:00IT运维版块每日发帖之星
日期:2016-04-19 06:20:00每日论坛发贴之星
日期:2016-04-19 06:20:00IT运维版块每日发帖之星
日期:2016-04-25 06:20:00IT运维版块每日发帖之星
日期:2016-05-06 06:20:00IT运维版块每日发帖之星
日期:2016-05-08 06:20:00IT运维版块每日发帖之星
日期:2016-05-13 06:20:00IT运维版块每日发帖之星
日期:2016-05-28 06:20:00每日论坛发贴之星
日期:2016-05-28 06:20:00
19 [报告]
发表于 2009-06-02 15:13 |只看该作者
虚拟机下安装过vmtools,然后超户下执行ethtool 如下所示:
[root@localhost ping]# ethtool -i eth0
Cannot get driver information: Operation not supported


看来vmtools虚拟网卡之后,不支持这个工具了。

论坛徽章:
0
20 [报告]
发表于 2009-06-02 15:42 |只看该作者
原帖由 Godbach 于 2009-6-2 15:13 发表
虚拟机下安装过vmtools,然后超户下执行ethtool 如下所示:


看来vmtools虚拟网卡之后,不支持这个工具了。


和vmtool没关系, 关键是driver是否实现了ethtool的方法。 如果没实现,就会返回这个。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP