免费注册 查看新帖 |

Chinaunix

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

linux下ping不通网关 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-01-17 10:24 |只看该作者 |倒序浏览
FC4下不能上网,请高手帮忙分析一下,小弟我感激不敬.



在终端运行命令显示结果如下,供大家参考.

route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 * 255.255.255.0 U 0 0 0 eth0
169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
default 192.168.0.1 0.0.0.0 UG 0 0 0 eth0


ifconfig

eth0 Link encap:Ethernet HWaddr 00:C0:9F:97:B7F
inet addr:192.168.0.151 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::2c0:9fff:fe97:b7df/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:46 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)
Interrupt:3 Base address:0x1800

lo Link encap:Local 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:1875 errors:0 dropped:0 overruns:0 frame:0
TX packets:1875 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2329816 (2.2 MiB) TX bytes:2329816 (2.2 MiB)




iptable -L -n -v

Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 RH-Firewall-1-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0

Chain INPUT (policy ACCEPT 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
1342 1776K RH-Firewall-1-INPUT all -- * * 0.0.0.0/0 0.0.0.0/0

Chain OUTPUT (policy ACCEPT 1359 packets, 1778K bytes)
pkts bytes target prot opt in out source destination

Chain RH-Firewall-1-INPUT (2 references)
pkts bytes target prot opt in out source destination
1331 1775K ACCEPT all -- lo * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT icmp -- * * 0.0.0.0/0 0.0.0.0/0 icmp type 255
0 0 ACCEPT esp -- * * 0.0.0.0/0 0.0.0.0/0
0 0 ACCEPT ah -- * * 0.0.0.0/0 0.0.0.0/0
11 1119 ACCEPT udp -- * * 0.0.0.0/0 224.0.0.251 udp dpt:5353
0 0 ACCEPT udp -- * * 0.0.0.0/0 0.0.0.0/0 udp dpt:631
0 0 ACCEPT all -- * * 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:80
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:21
0 0 ACCEPT tcp -- * * 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:25
0 0 REJECT all -- * * 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited


请高手帮忙分析一下,什么问题,还需要显示什么,请跟我说!谢谢!

论坛徽章:
0
2 [报告]
发表于 2006-01-17 10:30 |只看该作者
iptables -F FORWARD
service iptables save
chkconfig iptables on

try again ?

论坛徽章:
0
3 [报告]
发表于 2006-01-17 10:32 |只看该作者
谢谢,我等会看一下

论坛徽章:
0
4 [报告]
发表于 2006-01-17 13:33 |只看该作者
我试还是ping不出去

论坛徽章:
0
5 [报告]
发表于 2006-01-17 13:41 |只看该作者
service iptables stop
这样一定可以

论坛徽章:
0
6 [报告]
发表于 2006-01-17 14:53 |只看该作者
感谢楼上的朋友热心帮助,可依旧还是不行!
#dmesg | grep eth0
结果如下:
NETDEV WATCHDOG:eth0 transmit timed out
eth0 :Transmit timeout,status 00000000 00000260
...........

论坛徽章:
0
7 [报告]
发表于 2006-01-17 15:03 |只看该作者
# lspci -v
关于网卡的信息
....
00:04.0 Ethernet controller:Silicon Integrated Systems [SIS] SIS900 PCI Fast Etgernet (rev 91)
               Subsystem :Acer Incorporate [ALl]:Unknown device 0083
               Flags :bus master,medium devsel ,latency 173 ,IRQ 3
               I/O ports at 1800 [size=256]
               Memory at e2003000(32-bit ,non-prefetchable) [size=4k]
Capabilities:[40] Power Management version 2
....

论坛徽章:
0
8 [报告]
发表于 2006-01-17 15:03 |只看该作者
发布以上信息!供大家参考!

论坛徽章:
0
9 [报告]
发表于 2006-01-17 15:05 |只看该作者
看来不仅防火墙有问题,网卡或者驱动程序还有问题
换成 Realtek-8139 网卡应该就没事了

论坛徽章:
0
10 [报告]
发表于 2006-01-17 15:18 |只看该作者
是网卡驱动有问题吗?为什么我能ping 通自己啊?!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP