免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 633 | 回复: 4
打印 上一主题 下一主题

[求助]关于网卡的问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-24 01:01 |只看该作者 |倒序浏览
刚装的Linux,Redhat.Enterprise.Linux.AS.V4.0.UPDATE.4.X86_64-HOTiSO
但现在我把网络设置好了以后(因为路由器的ip是192.168.0.1,所以我把ip设为
192.168.0.5,mask为255.255.255.0,gateway为192.168.0.1,网卡是主板自带的,
NVIDIA nForce Networking Controller,linux为2.6的),
ping 192.168.0.1的时候出现Destination Host Unreachable,但是ping 192.168.0.5
是ok的,如果我把网络设置成dhcp的时候重启network服务的时候最后一行显示failure,这个是什么原因?
BTW,怎么样才能确认网卡驱动装好了?

论坛徽章:
5
IT运维版块每日发帖之星
日期:2015-08-06 06:20:00IT运维版块每日发帖之星
日期:2015-08-10 06:20:00IT运维版块每日发帖之星
日期:2015-08-23 06:20:00IT运维版块每日发帖之星
日期:2015-08-24 06:20:00IT运维版块每日发帖之星
日期:2015-11-12 06:20:00
2 [报告]
发表于 2006-12-24 09:03 |只看该作者
ifconfig

论坛徽章:
0
3 [报告]
发表于 2006-12-24 11:16 |只看该作者
网络设置成dhcp的时候重启network服务的时候最后一行显示failure
说明该机没有从DHCP服务器上获取到IP,你那网络有DHCP服务器吗?
按照你之前的设置应该没什么错,网线什么的都好着吗?网卡能正常使用吗?
楼主考虑下了。

论坛徽章:
0
4 [报告]
发表于 2006-12-25 16:37 |只看该作者
dmesg | grep eth
看看系统是否正确认出了网卡

还有,如果系统认出了网卡,那么
ifconfig -a 会显示所有认出的网卡

最好通过dmesg|less 慢慢查看,系统启动的时候是否正确认出网卡

论坛徽章:
0
5 [报告]
发表于 2006-12-25 23:12 |只看该作者
这是一些信息,大家帮忙看看
dmesg | grep eth

  1. divert: not allocating divert_blk for non-ethernet device lo
  2. forcedeth.c: Reverse Engineered nForce ethernet driver. Version 0.41.
  3. divert: allocating divert_blk for eth0
  4. eth0: forcedeth.c: subsystem: 010de:cb84 bound to 0000:00:08.0
  5. divert: not allocating divert_blk for non-ethernet device sit0
  6. eth0: no IPv6 routers present

复制代码

ifconfig

  1. eth0      Link encap:Ethernet  HWaddr 00:30:18:A7:0A:A6  
  2.           inet addr:192.168.0.5  Bcast:192.168.0.255  Mask:255.255.255.0
  3.           inet6 addr: fe80::230:18ff:fea7:aa6/64 Scope:Link
  4.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  5.           RX packets:0 errors:0 dropped:0 overruns:0 frame:0
  6.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  7.           collisions:0 txqueuelen:1000
  8.           RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
  9.           Interrupt:193

  10. lo        Link encap:Local Loopback  
  11.           inet addr:127.0.0.1  Mask:255.0.0.0
  12.           inet6 addr: ::1/128 Scope:Host
  13.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  14.           RX packets:1400 errors:0 dropped:0 overruns:0 frame:0
  15.           TX packets:1400 errors:0 dropped:0 overruns:0 carrier:0
  16.           collisions:0 txqueuelen:0
  17.           RX bytes:1439256 (1.3 MiB)  TX bytes:1439256 (1.3 MiB)
复制代码

ping -c5 192.168.0.5

  1. PING 192.168.0.5 (192.168.0.5) 56(84) bytes of data.
  2. 64 bytes from 192.168.0.5: icmp_seq=0 ttl=64 time=0.028 ms
  3. 64 bytes from 192.168.0.5: icmp_seq=1 ttl=64 time=0.032 ms
  4. 64 bytes from 192.168.0.5: icmp_seq=2 ttl=64 time=0.031 ms
  5. 64 bytes from 192.168.0.5: icmp_seq=3 ttl=64 time=0.014 ms
  6. 64 bytes from 192.168.0.5: icmp_seq=4 ttl=64 time=0.019 ms

  7. --- 192.168.0.5 ping statistics ---
  8. 5 packets transmitted, 5 received, 0% packet loss, time 3999ms
  9. rtt min/avg/max/mdev = 0.014/0.024/0.032/0.009 ms, pipe 2

复制代码

ping -c5 192.168.0.1

  1. PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
  2. From 192.168.0.5 icmp_seq=1 Destination Host Unreachable
  3. From 192.168.0.5 icmp_seq=2 Destination Host Unreachable
  4. From 192.168.0.5 icmp_seq=3 Destination Host Unreachable
  5. From 192.168.0.5 icmp_seq=4 Destination Host Unreachable

  6. --- 192.168.0.1 ping statistics ---
  7. 5 packets transmitted, 0 received, +4 errors, 100% packet loss, time 3999ms
  8. , pipe 4

复制代码
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP