[原创]网卡的配置和相关检测

发表于:2007-06-08来源:作者:点击数: 标签:
上次答应哪位兄弟帮把有关网卡的详细配置给说说的,忘了, 这次给补上。请谅解。 一、网卡的配置 1用netconfig命令运行配置 2进入配置界面,其中有两个菜单选项1)Hardware2)Protocol 3选择1)Hardware,在其下拉菜单中选择AddnewLANadapter 4进入网卡选择界面(

上次答应哪位兄弟帮把有关网卡的详细配置给说说的,忘了,
这次给补上。请谅解。
一、网卡的配置
    1 用netconfig命令运行配置
    2 进入配置界面,其中有两个菜单选项 1)Hardware  2)Protocol
    3 选择 1)Hardware,在其下拉菜单中选择 Add new LAN adapter
    4 进入网卡选择界面(select network adapter to be added)
      在其中选择你所配置的网卡型号。用tab键将光标移至 [Continue]
      敲回车
  5 出现提示框 (Search for network adapter)  选择 [Yes] 敲回车
    6 接着出现 配置框 (Network Driver Configuration) 根据所配置
   的网卡类型不同,其中的选项亦有所不同,最常见的选项框有如下两种 
    (1)  PCI BUS_____________|V
             DEVICE_____________|V
           FUNCTION_____________|V     

       (2) I/O ADDRESS______________________|V
           INTERRUPT VECTOR_________________|V    
      根据你所配置网卡的具体情况,选择以上的数值。*一般情况下使用系统默认
   值便可以了。
  7 经过第6步后,出现增加网络协议提示框
      (select one networking product to be add to...)
              
          *    -sco ipx/spx
          *    -sco tcp/ip
      因为我们现在使用的大部分是tcp/ip协议,故而我们选择第二项tcp/ip
      然后[ add ]
    8 接着出现 ( SCO TCP/IP CONFIGURATION 选项框
     local host name__________| *此项填入本机要命名的名称
       ip address :  |__________| *此项填入本机分配的ip地址
        netmask:  |__________| *此项填入本机ip地址掩码
    broadcast adress: |__________| *此项由系统自动填入
       domain name__________| *填入所在域名(视具体情况,一般不用填)
        tcp connections:  |__________| *此项由系统自动填入
            pseudo ttys:  |__________| *此项由系统自动填入
      完成以上选项的填充,选择 [ok] .
     
    至此网卡配置完毕。屏幕重新回到初始配置界面。在此选择 1)hardware ---->exit
     退出配置程序,链接内核,重新启动系统。
  
二、验证网卡的配置是否正常
  1.用 hwconfig 命令列出硬件配置信息,看是否有有关网卡的信息,若没有则说明网
    卡未配置成功,或网卡存在硬件冲突而使系统启动后找不到网卡。*下面是我机器上
    3com(3c509)网卡配置信息。 
    name=e3E base=0x300 offset=0xF vec=10 dma=-3COM Etherlink III, unit=0
    2 .(如果机器连自己都不能ping通) 用 ifconfig -a 查看网卡端口是否激活,若显示down, 

       则用以下命令激活    
        #ifconfig net0 ipaddress netmask mask up
    3 .(如果网络不通)则用命令netstat -rn 查看系统是否正确配置了网关,若没有缺省网关
   则通过以下的方式可以增加
    #vi /etc/rc2.d/Srouter
             route add default x.x.x.x 1
             #x.x.x.x 指的是网关地址。
  (以上是给初学者学习配置网卡所用的,其实检查网关是否配置正确的方法还有很多,根据具体情况处理方式和步骤也不尽相同,只要认真总结,不断摸索相信问题总是能解决的。) 


 sdclearcase/" target="_blank" >ccf 回复于:2002-10-18 14:24:43
挺不错啊。!

 lcsong0978 回复于:2002-10-18 14:51:16
谢谢老大,以后有机会我会多贴一些的。

 leek 回复于:2002-10-18 20:44:28
经典

 qiaont 回复于:2002-10-24 16:09:03
我以8029补充一下:
1.  Installation Diskette in DOS format.
    Put RTL SCO UNIX Driver diskette to floppy A: and use doscp
    command to copy RTL SCO UNIX PCI Driver into UNIX's directories.

       # cd /
       # doscp A:/sco5/install  /install
       # chmod +x /install
       # ./install
         (put the VOL.000.000 to the /tmp directory)

1.1 Run custom to enter software manager procedure.
1.2 Select menu "Software"
1.3 Push the "Install new"
1.4 What host(machine) do you want to install from ? "from host machine"
1.5 Insert Media, and select media device -> "Media Images"
1.6 Enter the full path to the directory containing media Images.-> "/tmp"

2.     Use netconfig utility

       Avaiable options:

       # netconfig

3.  To add adapters, select "Add New Lan Adapter" from "Hardware".

4.  Add Protocol to select SCO TCP/IP.

5.  Enter the internet Address of this interface         n.n.n.n

6.  Enter the netmask for this interface                 (default 255.255.255.0)

7.  Enter the boardcast address for this interface       default: n.n.n.n

8.  Do you want to relink to kernel now ?               y

9.  Do you want this kernel to boot by default (y/n)    y

10. Do you want the kernel environment rebuilt (y/n)    y

11. Reboot unix

        # shutdown -y -g0
     
    qiaont  yusing@163.com 

 zyc12 回复于:2002-10-24 16:14:10
在补充一点:
PCI BUS_____________|V
DEVICE_____________|V
FUNCTION_____________|v
以上值的确定可以根据:hw -r pci | more

 tremble 回复于:2003-03-04 00:39:23
[quote:23ed3f245d="lcsong0978"]   
    至此网卡配置完毕。屏幕重新回到初始配置界面。在此选择 1)hardware ---->exit
     退出配置程序,链接内核,重新启动系统。
  
二、验证网卡的配置是否正常
  1.用 hwconfig 命令列出硬件配置..........[/quote:23ed3f245d]
可是我的网卡8029安装完驱动之后,添加Lan的时候根本就没有要求输入中断之类的东西。到我使用netstat -i 察看的时候net0下 Opkts 和 Oerrs项均为0。

 tremble 回复于:2003-03-04 00:41:07
[quote:bd9acdf79e="qiaont"]我以8029补充一下:
1.  Installation Diskette in DOS format.
    Put RTL SCO UNIX Driver diskette to floppy A: and use doscp
    command to copy RTL SCO UNIX PCI Driver into UNIX's directories.

      ..........[/quote:bd9acdf79e]
我的网卡也是RLK8029,我按照如此做了,可是我安装完驱动之后,添加Lan的时候根本就没有要求输入中断之类的东西。到我使用netstat -i 察看的时候net0下 Opkts 和 Oerrs项均为0。这是什么问题呢?能给解答吗?

 muzx 回复于:2003-03-04 09:07:08
好啊!
众人拾材火焰高!
顶一下!

 ansla 回复于:2003-11-17 08:28:02
谢谢,我正需要!!!

原文转自:http://www.ltesting.net