网卡的配置和相关检测

王朝other·作者佚名  2006-11-24
窄屏简体版  字體: |||超大  

一、网卡的配置

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 指的是网关地址。

(以上是给初学者学习配置网卡所用的,其实检查网关是否配置正确的方法还有很多,根据具体情况处理方式和步骤也不尽相同,只要认真总结,不断摸索相信问题总是能解决的。)

以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: # netconfig3. 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.n6. Enter the netmask for this interface (default 255.255.255.0)7. Enter the boardcast address for this interface default: n.n.n.n8. Do you want to relink to kernel now ? y9. Do you want this kernel to boot by default (y/n) y10. Do you want the kernel environment rebuilt (y/n) y11. Reboot unix # shutdown -y -g0

qiaont yusing@163.com

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航