winme 发表于 2003-7-13 12:09:11

装GENTOO RC4,网卡我编进内核了,怎么使用它?

以前我是作为模块弄的,
啊,不能上网啊,那就完了。。。
如何开机使用eth0啊?还有NETWORK服务?
IP以及GATEWAY如何设置?
各位帮忙了!

Kuye 发表于 2003-7-13 16:25:32

。。。。
说得有点莫名其妙。。。。

不过我到北京后改用 Redhat 也快半年了,gentoo 怎么设置网卡都忘记了。 :P
好像是=============
修改 /etc/conf.d/net 配置好网卡 (是这个文件吗?rh 下是 /etc/sysconfig/network)
然后 ln -s/etc/init.d/net.eth0 /etc/runlevels/default (gentoo 下好像是用 rc-update 添加服务吧?!)

winme 发表于 2003-7-13 16:37:58

/etc/conf.d/net 我设置了,IP网关等,然后就
#rc-update add net.eth0 default
这样不行?
启动的时候的出错信息
Init:Entering runlevel:3
* Starting metalog
* Bringing eth0 up...
SIOCSIFADDR:No Such device
eth0:unkonwn interface:No Suck device
* Failed to bring eth0 up
* ERROR Problem starting needed services
"netmount" was not started [!!]
*Starting vcron

大哥们啊,如何搞定啊?netmount 又如何启动?

Kuye 发表于 2003-7-13 16:47:04

* Bringing eth0 up...
SIOCSIFADDR:No Such device
eth0:unkonwn interface:No Such device <- Linux 认出你的网卡了吗? # dmesg | grep eth0
* Failed to bring eth0 up

-----------------
Oh ,我忘记了,网卡好像必须编译进内核,不能编译进模块(我以前也编译成模块过,结果也没办法用,别问我为什么。。。)

winme 发表于 2003-7-13 19:35:20

问题是我是把网卡编进内核的啊,所有有8139的选项我都打上了*

Kuye 发表于 2003-7-13 19:53:48

如果不是网卡编译有问题就用 ifconfig 手动设置 eth0,如果网卡是用 dhcp 解析就用 dhcpclient eth0。

winme 发表于 2003-7-13 21:37:52

我用dmesg | grep eth0
没有任何输出……
ifconfig 怎么配置?
我用ifconfig eth0,说没这个设备……
看来要重新遍过内核了……
到底是遍进内核还是做模块?

Kuye 发表于 2003-7-13 22:14:03

呀。。。

dmesg | grep eth0 没有输出说明 rtl8139 网卡没有编译进内核或者安装不正确。。。
要重新编译内核了,建议最好是编译进内核。

我也是 rtl8139 的网卡,正常的 dmesg 输出:

> dmesg | grep eth0
divert: allocating divert_blk for eth0
eth0: RealTek RTL8139 Fast Ethernet at 0xd0c6b000, 00:e0:4c:39:09:50, IRQ 11
eth0:Identified 8139 chip type 'RTL-8139C'
eth0: Setting half-duplex based on auto-negotiated partner ability 0000.

如果是编译成模块了就运行 insmod 8139too。

然后再用 ifconfig 设置 eth0 (如果是静态 IP 的话),动态 DHCP 解析用 dhcpclient eth0。
ifconfig eth0 (IP) netmask (netmask)
如: ifconfig eth0 192.168.1.1 netmask 255.255.255.0

winme 发表于 2003-7-14 14:24:06

唉,奇怪?我明明是把8139打的[*]啊,居然现在发现是模块^
OK,模块就模块吧,免得我重编内核了。
一切搞定!
在GENTOO下EMERGE的时候,居然没使用PROZILLA,一看,MAKE。CONF居然变成默认的了。怪!
页: [1]
查看完整版本: 装GENTOO RC4,网卡我编进内核了,怎么使用它?