LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1346|回复: 14

网络配置问题[已解决]+Intel945内核配置

[复制链接]
发表于 2006-12-27 15:39:26 | 显示全部楼层 |阅读模式
最近想在一台新机器上装gentoo,但到网络这一步老是出问题,启动提示:

  1. ……
  2. 202.114.26.194
  3. 202.114.26.194 already taken on eth0
  4. ERROR:Problem starting needed service net.eth0
  5.            netmount was not started
复制代码

网 卡是Brodcom Netlink(TM) Gibabit Ethernet,驱动选了
Ethernet (1000 Mbit)  --->  
   <M> Broadcom Tigon3 support

应该没错,因为加入该项后编译内核后看到了模块tg3.ko,该模块再livecd启动时看到它被加载了。
其它的配置我是按2006安装手册上来的。
其它信息:

  1. # cat /etc/conf.d/net
  2. config_eth0=( "202.114.26.194 netmask 255.255.255.0 brd 202.114.26.255" )
  3. routes_eth0=( "default gw 202.114.26.193" )
复制代码


网卡驱动模块在启动时也加载了。

不知这是什么问题?
发表于 2006-12-27 16:48:08 | 显示全部楼层
应该不是问题。
建议在系统启动完成以后,检查你希望自动mount的nfs分区是否都已经正常挂接。如果一切正常,就没有问题。
报错只是因为在系统第一次试图挂接网络文件系统分区时,网卡还没有启动完成造成的。在网卡启动以后,系统应该会自动再次做挂接尝试。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-27 18:11:08 | 显示全部楼层
Post by laonainai

建议在系统启动完成以后,检查你希望自动mount的nfs分区是否都已经正常挂接。

我的fstab
/dev/sda1        /              ext3    defaults,noatime        0 1
/dev/sda2       /mnt/other      ext3    defaults                1 2
none              /proc          proc    defaults 0 0
none              /dev/shm       tmpfs   nodev,nosuid,noexec     0 0
/dev/sda3        none           swap    sw                      0 0
启动并没有提示分区挂载出错。不知你说的检查这样是否可以?
回复 支持 反对

使用道具 举报

发表于 2006-12-27 20:39:15 | 显示全部楼层
Post by wcw

config_eth0=( "202.114.26.194 netmask 255.255.255.0 brd 202.114.26.255" )
routes_eth0=( "default gw 202.114.26.193" )

改为下边试试
routes_eth0=("default [color="SeaGreen"]via 202.114.26.193“)
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-27 23:00:49 | 显示全部楼层
Post by jingqiu
改为下边试试
routes_eth0=("default [color="SeaGreen"]via 202.114.26.193“)

还是不行。这是以前的写法吧,貌似后来都用gw了
回复 支持 反对

使用道具 举报

发表于 2006-12-28 08:50:04 | 显示全部楼层
在/etc/modules.autoload.d/kernel-2.6文件中添加一行写上tg3
  1. 7dehao ~ # cat /etc/modules.autoload.d/kernel-2.6
  2. # /etc/modules.autoload.d/kernel-2.6:  kernel modules to load when system boots.
  3. #
  4. # Note that this file is for 2.6 kernels.
  5. #
  6. # Add the names of modules that you'd like to load when the system
  7. # starts into this file, one per line.  Comments begin with # and
  8. # are ignored.  Read man modules.autoload for additional details.
  9. # For example:
  10. # aic7xxx
  11. nvidia
  12. tg3
  13. pcspkr
复制代码
在/etc/conf.d/net文件中
  1. config_eth0=( "192.168.1.6 netmask 255.255.255.0 broadcast 192.168.1.255" )
  2. routes_eth0=(
  3.         "default gw 192.168.1.1"
  4. )
复制代码
192.168.1.6为本地ip,192.168.1.1为网管路由。
#rc-update add net.eth0 default
#/etc/init.d/net.eth0 restart
看看。

楼主的哪个202.114.26.193是你的机器的路由地址?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-28 10:11:57 | 显示全部楼层
Post by 7dehao
在/etc/modules.autoload.d/kernel-2.6文件中添加一行写上tg3

  1. 7dehao ~ # cat /etc/modules.autoload.d/kernel-2.6
  2. # /etc/modules.autoload.d/kernel-2.6:  kernel modules to load when system boots.
  3. #
  4. # Note that this file is for 2.6 kernels.
  5. #
  6. # Add the names of modules that you'd like to load when the system
  7. # starts into this file, one per line.  Comments begin with # and
  8. # are ignored.  Read man modules.autoload for additional details.

  9. # For example:
  10. # aic7xxx
  11. nvidia
  12. tg3
  13. pcspkr
复制代码

在/etc/conf.d/net文件中

  1. config_eth0=( "192.168.1.6 netmask 255.255.255.0 broadcast 192.168.1.255" )
  2. routes_eth0=(
  3.         "default gw 192.168.1.1"
  4. )
复制代码

192.168.1.6为本地ip,192.168.1.1为网管路由。
#rc-update add net.eth0 default
#/etc/init.d/net.eth0 restart
看看。

楼主的哪个202.114.26.193是你的机器的路由地址?


上面说的文件都已经加了的,rc-update -s 也看到了net.eth0在default里面。
用#/etc/init.d/net.eth0 restart也跟前面启动出错时的提示一样。
那个路由确实是我Lan里面的,至少我在这台机器上的ubuntu里还有另外一天windows机器可以用。
还发现通过ifconfig eth0 ip配置后,可以ping通Lan里面的其它机器,像202.114.26.196
然后在202.114.26.196的机器上现在也能ping通这台机器。
但是平lan外面的机器全部都是unknow host……
回复 支持 反对

使用道具 举报

发表于 2006-12-28 15:58:27 | 显示全部楼层
在default下有一个netmount服务,删掉看看。
回复 支持 反对

使用道具 举报

发表于 2006-12-28 16:09:19 | 显示全部楼层
是不是和net.lo出现依赖问题?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-12-28 20:31:12 | 显示全部楼层
Post by 7dehao
在default下有一个netmount服务,删掉看看。

It's still all the same
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表