LinuxSir.cn,穿越时空的Linuxsir!

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

网络不通,求救.

[复制链接]
发表于 2006-7-17 16:17:41 | 显示全部楼层 |阅读模式
[root@localhost etc]# ip addr
1: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
    link/ether 00:0e:a6:0a:92:11 brd ff:ff:ff:ff:ff:ff
    inet 10.10.10.85/24 brd 10.10.10.255 scope global eth0
    inet6 fe80::20e:a6ff:fe0a:9211/64 scope link
       valid_lft forever preferred_lft forever
3: sit0: <NOARP> mtu 1480 qdisc noop
    link/sit 0.0.0.0 brd 0.0.0.0
[root@localhost etc]#
******************************************************************************
[root@localhost etc]# ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0E:A6:0A:92:11
          inet addr:10.10.10.85  Bcast:10.10.10.255  Mask:255.255.255.0
          inet6 addr: fe80::20e:a6ff:fe0a:9211/64 Scopeink
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1487 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1061 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1148886 (1.0 MiB)  TX bytes:190655 (186.1 KiB)
          Interrupt:5 Base address:0x9800

lo        Link encapocal Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:2120 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2120 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2719731 (2.5 MiB)  TX bytes:2719731 (2.5 MiB)

sit0      Link encap:IPv6-in-IPv4
          NOARP  MTU:1480  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
***********************************************************************
启动时显示:Interface eth0 doesn't exist                              [WARN]
************************************************************************
发表于 2006-7-18 07:32:50 | 显示全部楼层
是什麽网卡?内核没有支持或者模块未加载?还是无线网卡没驱动?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-18 08:12:32 | 显示全部楼层
网卡:Silicon Intergrated System [SiS] sis900 PCI Fast Ethernet
估计是内核未加载,by the way,我在哪里看内核的配置?
3X
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-18 08:18:09 | 显示全部楼层
***********************************************************************
启动时显示:Interface eth0 doesn't exist [WARN]
************************************************************************
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-18 08:46:40 | 显示全部楼层
知道了,我在/mnt/lfs/var/log/kern.logz中查找sis900,没找到,
那就是内核没有把网卡驱动编译进内核。
呵呵。
回复 支持 反对

使用道具 举报

发表于 2006-7-18 21:26:53 | 显示全部楼层
sis900 is a common network device and is supported by linux kernel ages ago.

You should ensure your .config to include such support.

CONFIG_SIS900=m (or y)

It should be located at somewhere in network device support.
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-19 09:43:32 | 显示全部楼层
Post by d00m3d


You should ensure your .config to include such support.

CONFIG_SIS900=m (or y)

It should be located at somewhere in network device support.


I have recomplied the kernel,and this is my .config file digest:
CONFIG_SIS900=y
# CONFIG_EPIC100 is not set
# CONFIG_SUNDANCE is not set
# CONFIG_TLAN is not set
# CONFIG_VIA_RHINE is not set
# CONFIG_NET_POCKET is not set
so this means that my net have configged right.
3x sirs!
回复 支持 反对

使用道具 举报

发表于 2006-7-19 12:08:13 | 显示全部楼层
# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:0E:A6:0A:92:11
inet addr:10.10.10.85 Bcast:10.10.10.255 Mask:255.255.255.0
inet6 addr: fe80::20e:a6ff:fe0a:9211/64 Scopeink
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1487 errors:0 dropped:0 overruns:0 frame:0
TX packets:1061 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1148886 (1.0 MiB) TX bytes:190655 (186.1 KiB)
Interrupt:5 Base address:0x9800
有eth0,谁说没有呢。?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-7-19 17:02:52 | 显示全部楼层
看我这样解释合理不合理:
系统检测到了网卡,我自己也配置了网络,但是没有把网卡驱动编译进内核,所以网络失败。
回复 支持 反对

使用道具 举报

发表于 2006-7-19 17:10:23 | 显示全部楼层
Post by 信天游
看我这样解释合理不合理:
系统检测到了网卡,我自己也配置了网络,但是没有把网卡驱动编译进内核,所以网络失败。
这种情况似乎不大可能
我怀疑是你设置的IP地址不对,所以网络不通.
回复 支持 反对

使用道具 举报

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

本版积分规则

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