LinuxSir.cn,穿越时空的Linuxsir!

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

不能联上网络,请帮忙给查一下。

[复制链接]
发表于 2006-11-6 10:55:28 | 显示全部楼层 |阅读模式
今天开始还行,但系统更新重启以后就不行了。
下面是一些运行信息,帮忙给查一下,
  1. wolfkin:~# uname -a
  2. Linux wolfkin 2.6.16-2-686 #1 Fri Aug 18 19:01:49 UTC 2006 i686 GNU/Linux
  3. wolfkin:~# ifconfig
  4. lo        Link encap:Local Loopback
  5.           inet addr:127.0.0.1  Mask:255.0.0.0
  6.           inet6 addr: ::1/128 Scope:Host
  7.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  8.           RX packets:1477 errors:0 dropped:0 overruns:0 frame:0
  9.           TX packets:1477 errors:0 dropped:0 overruns:0 carrier:0
  10.           collisions:0 txqueuelen:0
  11.           RX bytes:219344 (214.2 KiB)  TX bytes:219344 (214.2 KiB)
  12. wolfkin:~# ifup eth0
  13. Internet Software Consortium DHCP Client 2.0pl5
  14. Copyright 1995, 1996, 1997, 1998, 1999 The Internet Software Consortium.
  15. All rights reserved.
  16. Please contribute if you find this software useful.
  17. For info, please visit [url]http://www.isc.org/dhcp-contrib.html[/url]
  18. sit0: unknown hardware address type 776
  19. sit0: unknown hardware address type 776
  20. Listening on LPF/eth0/00:50:8d:60:6a:3a
  21. Sending on   LPF/eth0/00:50:8d:60:6a:3a
  22. Sending on   Socket/fallback/fallback-net
  23. DHCPREQUEST on eth0 to 255.255.255.255 port 67
  24. DHCPACK from 192.168.1.62
  25. bound to 192.168.1.130 -- renewal in 43200 seconds.
  26. wolfkin:~# ifconfig
  27. eth0      Link encap:Ethernet  HWaddr 00:50:8D:60:6A:3A
  28.           inet addr:192.168.1.130  Bcast:192.168.1.255  Mask:255.255.255.0
  29.           inet6 addr: fe80::250:8dff:fe60:6a3a/64 Scope:Link
  30.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  31.           RX packets:2503 errors:0 dropped:0 overruns:0 frame:0
  32.           TX packets:816 errors:0 dropped:0 overruns:0 carrier:0
  33.           collisions:0 txqueuelen:1000
  34.           RX bytes:241077 (235.4 KiB)  TX bytes:55059 (53.7 KiB)
  35.           Interrupt:11 Base address:0xc000
  36. lo        Link encap:Local Loopback
  37.           inet addr:127.0.0.1  Mask:255.0.0.0
  38.           inet6 addr: ::1/128 Scope:Host
  39.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  40.           RX packets:1490 errors:0 dropped:0 overruns:0 frame:0
  41.           TX packets:1490 errors:0 dropped:0 overruns:0 carrier:0
  42.           collisions:0 txqueuelen:0
  43.           RX bytes:220052 (214.8 KiB)  TX bytes:220052 (214.8 KiB)
  44. wolfkin:~# ping 192.168.1.62
  45. PING 192.168.1.62 (192.168.1.62) 56(84) bytes of data.
  46. From 192.168.1.130 icmp_seq=1 Destination Host Unreachable
  47. From 192.168.1.130 icmp_seq=2 Destination Host Unreachable
  48. From 192.168.1.130 icmp_seq=3 Destination Host Unreachable
  49. --- 192.168.1.62 ping statistics ---
  50. 4 packets transmitted, 0 received, +3 errors, 100% packet loss, time 3008ms
  51. , pipe 3
  52. wolfkin:~# ping 192.168.1.1
  53. PING 192.168.1.1 (192.168.1.1) 56(84) bytes of data.
  54. From 192.168.1.130 icmp_seq=3 Destination Host Unreachable
  55. From 192.168.1.130 icmp_seq=6 Destination Host Unreachable
  56. From 192.168.1.130 icmp_seq=7 Destination Host Unreachable
  57. --- 192.168.1.1 ping statistics ---
  58. 7 packets transmitted, 0 received, +3 errors, 100% packet loss, time 6001ms
  59. , pipe 2
  60. wolfkin:~# iptables -L
  61. Chain INPUT (policy ACCEPT)
  62. target     prot opt source               destination
  63. Chain FORWARD (policy ACCEPT)
  64. target     prot opt source               destination
  65. Chain OUTPUT (policy ACCEPT)
  66. target     prot opt source               destination
  67. wolfkin:~# route
  68. Kernel IP routing table
  69. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  70. 192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
  71. 192.168.1.0     *               255.255.255.0   U     0      0        0 br0
  72. default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
复制代码
发表于 2006-11-6 11:13:09 | 显示全部楼层
ip route
看看有什么输出?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-6 11:16:37 | 显示全部楼层
请问用什么命令?
我对网络不熟。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-6 12:07:59 | 显示全部楼层
机器信息如下,
  1. wolfkin:~# uname -a
  2. Linux wolfkin 2.6.16-2-686 #1 Fri Aug 18 19:01:49 UTC 2006 i686 GNU/Linux
复制代码

路由信息如下,
  1. wolfkin:~# iptables -L
  2. Chain INPUT (policy ACCEPT)
  3. target     prot opt source               destination
  4. Chain FORWARD (policy ACCEPT)
  5. target     prot opt source               destination
  6. Chain OUTPUT (policy ACCEPT)
  7. target     prot opt source               destination
  8. wolfkin:~# route
  9. Kernel IP routing table
  10. Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
  11. 192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
  12. 192.168.1.0     *               255.255.255.0   U     0      0        0 br0
  13. default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0
复制代码

麻烦帮忙给看看。
回复 支持 反对

使用道具 举报

发表于 2006-11-6 12:19:57 | 显示全部楼层
route表似乎有问题。怎么会有br0?而ifconfig又没有呢?


ifdown br0

试试看。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-6 12:51:43 | 显示全部楼层
br0是我给qemu虚拟机用的虚拟网卡。
即使把它停掉也联不上网络。
回复 支持 反对

使用道具 举报

发表于 2006-11-6 14:03:06 | 显示全部楼层
ping 192.168.1.130可以吗?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-6 14:05:16 | 显示全部楼层
ping 192.168.1.130
可以啊!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-6 14:26:21 | 显示全部楼层
竟然莫名其妙地好了,
怪!
回复 支持 反对

使用道具 举报

 楼主| 发表于 2006-11-6 14:27:08 | 显示全部楼层
谢谢各位了!
回复 支持 反对

使用道具 举报

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

本版积分规则

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