LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
12
返回列表 发新帖
楼主: jkmmmm

为什么有时候启动的时候,网络起不来?

[复制链接]
 楼主| 发表于 2008-2-21 11:27:24 | 显示全部楼层
怀疑是不是linux关闭的时候做了什么事!如果上次启动的是windwos就没事,如果上次启动的是linux就不行!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-24 12:30:00 | 显示全部楼层
昨天好了,今天又不行!!!,启动的时候仔细看了看,说是/etc/rc.d/network    invalid argument!

崩溃。
回复 支持 反对

使用道具 举报

发表于 2008-2-24 16:53:18 | 显示全部楼层
貌似我也有差不多的问题,不过是在rc.local中加入修改MAC的脚本,但是有时会执行有时不会执行。

郁闷的校园网绑定了MAC。。。
回复 支持 反对

使用道具 举报

发表于 2008-2-24 17:38:07 | 显示全部楼层
建议:

1. 让路由器自己拨号连网;
2. eth0="dhcp"
回复 支持 反对

使用道具 举报

 楼主| 发表于 2008-2-24 20:18:58 | 显示全部楼层
今天好好查了查,发现我的网卡是rtl8111B的,按说应该是r8168模块,可是arch自动编译加载的是r8169,用hwdetect --net也是r8169,然后我从rtl网站上下载了它们最新的驱动,可以编译不能成功啊?

make clean modules
make -C src/ clean
make[1]: Entering directory `/root/r8168-8.004.00/r8168-8.004.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers rset
make[1]: Leaving directory `/root/r8168-8.004.00/r8168-8.004.00/src'
make -C src/ modules
make[1]: Entering directory `/root/r8168-8.004.00/r8168-8.004.00/src'
make -C /lib/modules/2.6.24-ARCH/build SUBDIRS=/root/r8168-8.004.00/r8168-8.004.00/src modules
make[2]: Entering directory `/usr/src/linux-2.6.24-ARCH'
  CC [M]  /root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.o
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c: In function ‘rtl8168_init_board’:
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:2200: error: implicit declaration of function ‘SET_MODULE_OWNER’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c: In function ‘rtl8168_init_one’:
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:2401: error: ‘struct net_device’ has no member named ‘poll’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:2402: error: ‘struct net_device’ has no member named ‘weight’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c: In function ‘rtl8168_rx_interrupt’:
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3549: error: ‘struct net_device’ has no member named ‘quota’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3549: warning: type defaults to ‘int’ in declaration of ‘_y’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3549: error: ‘struct net_device’ has no member named ‘quota’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3549: warning: comparison of distinct pointer types lacks a cast
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c: In function ‘rtl8168_interrupt’:
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3745: error: too few arguments to function ‘netif_rx_schedule_prep’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3746: error: too few arguments to function ‘__netif_rx_schedule’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c: In function ‘rtl8168_poll’:
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3794: error: ‘struct net_device’ has no member named ‘quota’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3794: warning: type defaults to ‘int’ in declaration of ‘_y’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3794: error: ‘struct net_device’ has no member named ‘quota’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3802: error: ‘struct net_device’ has no member named ‘quota’
/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.c:3805: error: too few arguments to function ‘netif_rx_complete’
make[3]: *** [/root/r8168-8.004.00/r8168-8.004.00/src/r8168_n.o] Error 1
make[2]: *** [_module_/root/r8168-8.004.00/r8168-8.004.00/src] Error 2
make[2]: Leaving directory `/usr/src/linux-2.6.24-ARCH'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/r8168-8.004.00/r8168-8.004.00/src'
make: *** [modules] Error 2

对于这个编译不太明白,那位说说这是为什么?
回复 支持 反对

使用道具 举报

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

本版积分规则

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