LinuxSir.cn,穿越时空的Linuxsir!

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

linux路由问题

[复制链接]
发表于 2005-9-11 20:22:00 | 显示全部楼层 |阅读模式
网络配置及路由表信息如下,现在linux主机两侧的1.0网段和0.0网段的机器不能互访,在linux上可以ping通任何一方。1.0和0.0网段内的机器也可以ping通linux路由器。

[root@yang root]# more /proc/sys/net/ipv4/ip_forward
1

[root@yang root]# ifconfig
eth0 Link encap:Ethernet HWaddr 10:E0:8C:51:93:EB
inet addr:192.168.1.1 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5204 errors:0 dropped:0 overruns:0 frame:0
TX packets:3365 errors:0 dropped:0 overruns:0 carrier:0
collisions:8 txqueuelen:100
RX bytes:455014 (444.3 Kb) TX bytes:409798 (400.1 Kb)
Interrupt:10 Base address:0x3000

eth1 Link encap:Ethernet HWaddr 00:E0:4C:42:0C:3A
inet addr:192.168.1.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1208 errors:0 dropped:0 overruns:0 frame:0
TX packets:1087 errors:0 dropped:0 overruns:0 carrier:0
collisions:3 txqueuelen:100
RX bytes:111944 (109.3 Kb) TX bytes:138147 (134.9 Kb)
Interrupt:11 Base address:0x5000

eth2 Link encap:Ethernet HWaddr 00:E0:4C:B0:17:6A
inet addr:192.168.0.224 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:572 errors:0 dropped:0 overruns:0 frame:0
TX packets:253 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:70377 (68.7 Kb) TX bytes:22601 (22.0 Kb)
Interrupt:11 Base address:0x7000

lo Link encapocal Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:84 errors:0 dropped:0 overruns:0 frame:0
TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:6882 (6.7 Kb) TX bytes:6882 (6.7 Kb)



[root@yang root]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
192.168.0.0 * 255.255.255.0 U 0 0 0 eth2
169.254.0.0 * 255.255.0.0 U 0 0 0 eth2
127.0.0.0 * 255.0.0.0 U 0 0 0 lo
default 192.168.0.2 0.0.0.0 UG 0 0 0 eth2
发表于 2005-9-11 23:25:37 | 显示全部楼层
检查iptables规则,看是否将FORWARD链缺省DROP了,或者有什么其他规则。
回复 支持 反对

使用道具 举报

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

本版积分规则

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