|
|
大家好!!!
我现在遇到一个问题, 麻烦大家帮忙诊断一下:
=========================================================
我有2台电脑
第一台(1号机): fc3
------------------------------------
eth0: 通过adsl拨号上网, 动态ip,
eth1: 给定了192.168.0.1, 掩码 255.255.255.0, 网关设置为空
默认防火墙打开, 但把 eth1 作为"信任" 的设备
这是ifconfig:
------------------
eth1 Link encap:Ethernet HWaddr 00:05:5D:67:E3:32
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::205:5dff:fe67:e332/64 Scope ink
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:692 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 b) TX bytes:31676 (30.9 KiB)
Interrupt:11 Base address:0x4e00
这是 route -n
------------------
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
xxx.xxx.xxx.xxx 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 xxx.xxx.xxx.xxx 0.0.0.0 UG 0 0 0 ppp0
第二台(1号机): win98se;
------------------------------------
pc card 网卡: 给定了192.168.0.2, 掩码 255.255.255.0, 网关 192.168.0.1
没有防火墙
ipconfig 的输出:
------------------
Windows 98 IP Configuration
0 Ethernet adapter :
IP Address. . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . :
1 Ethernet adapter :
IP Address. . . . . . . . . : 0.0.0.0
Subnet Mask . . . . . . . . : 0.0.0.0
Default Gateway . . . . . . :
2 Ethernet adapter :
IP Address. . . . . . . . . : 192.168.0.2
Subnet Mask . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . : 192.168.0.1
route print 的输出:
------------------
Active Routes:
Network Address Netmask Gateway Address Interface Metric
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.2 1
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.2 192.168.0.2 1
192.168.0.2 255.255.255.255 127.0.0.1 127.0.0.1 1
192.168.0.255 255.255.255.255 192.168.0.2 192.168.0.2 1
224.0.0.0 224.0.0.0 192.168.0.2 192.168.0.2 1
255.255.255.255 255.255.255.255 192.168.0.2 0.0.0.0 1
=========================================================
问题: 2 台机器之间 ping 不出任何结果...
fc3 ping win98se (192.168.0.2)
ping 的输出:
From 192.168.0.1 icmp_seq=0 Destination Host Unreachable
...
下面是在 ping 的时候用tcpdump -i eth1 得到的输出:
eth1: Promiscuous mode enabled.
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth1, link-type EN10MB (Ethernet), capture size 96 bytes
11:19:17.827331 arp who-has 192.168.0.2 tell 192.168.0.1
...
1 packets captured
1 packets received by filter
0 packets dropped by kernel
Table: nat
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
MASQUERADE all -- 0.0.0.0/0 0.0.0.0/0
下面是在"系统配置"->"服务"里面看到的iptables规则:
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Table: filter
Chain INPUT (policy ACCEPT)
target prot opt source destination
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpts:0:1023
DROP udp -- 0.0.0.0/0 0.0.0.0/0 udp dpts:0:1023
DROP tcp -- 0.0.0.0/0 0.0.0.0/0 tcp flags:0x16/0x02
DROP icmp -- 0.0.0.0/0 0.0.0.0/0 icmp type 8
Chain FORWARD (policy DROP)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain RH-Firewall-1-INPUT (0 references)
target prot opt source destination
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0
ACCEPT all -- 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
ACCEPT esp -- 0.0.0.0/0 0.0.0.0/0
ACCEPT ah -- 0.0.0.0/0 0.0.0.0/0
ACCEPT udp -- 0.0.0.0/0 224.0.0.251 udp dpt:5353
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 udp dpt:631
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited
从win98se ping fc3
ping 的输出:
Request timed out
...
我对网络只有一些基本的概念, 昨天晚上和一个老外在freenode上聊的时候他告诉我说是iptables/firewall 中 icmp 的那几段拒绝了ping 的服务; 但我试过设置eth1 为信任的设备/关掉iptables, 似乎没有用
我现在没有什么头绪,, 希望大家给点建议, 谢谢
ps:
网卡上的2个灯, 在eth1 上亮了1个, 而且从fc3 ping的时候会闪
在 eth0(adsl)上1亮1闪(有时)
pc card 上的灯2个, 全亮, 但不闪
那些都是什么意思呢??? |
|