拓扑图如下:
http://upload.bbs.csuboy.com/Mon_1004/126_6705_9b620f33a380b5e.gif[/img] http://upload.bbs.csuboy.com/Mon_1004/126_6705_ca804213f11f0d6.jpg[/img]下载 (32.49 KB)投资
2009-0.3-20 22:03 健康
我在router上把wan侧物理接口e.th0加入到了br0中 [b.rctl addif br0 eth0]教育
中间router的bridge配置.如下:--- 印刷
> brctl show
b.ridge name bridge id STP enabled int.erfaces.
br0 8000.00904cc004b1. no . wl0
. . eth1.2
. . eth1.3虚拟主机
. . eth1.4投资
. . eth1.5 乙肝
. . eth0--------------彩票
复制代码
中间router路由表如下:
> route show
Ker.nel IP routing table域名
Destination Gateway ... Genmask Flags Metric Ref Use Iface 电子
192.168..1.1 175.18.214.8 255.255..255.255 UGH . 0 0 0 eth0(广告)
175.18.214.0 . * 255.255.255..0. U 0 0 0 eth0 乙肝
192.168.1.0 * 255.255.255.0 U 0 . 0 0 br0.[成人用品]
default . 175.18.21.4.8 0.0.0.0 UG 0 0 0 et.h0 域名
复制代码
这时我从lan侧pc上.发起ping命令: 杀毒
ping 175.18..214.8 杀毒
ping包首先会到达router的ip层,r.outer的ip层发现目的i.p是175.18.214.8,会route这个包。router会先去查找路由表,根据.前面我贴出来的路由表信息,router会匹配到这一条:教育
175.1..8.214.0 * 255.255.255.0 U 0. 0 0 eth0 婚庆
那么ip层经过snat以后,就会把ping包传到eth0这.个物理接口,但我在wan侧PC上抓包,并没有抓到ping包过来。我又在router的ip层的ip_finish_output2()函数里.加入打印信息,router的ip层的的.确确.把ping包发出来了。所以我觉得router没有把ping包从L3扔到L2。服务器
我想问的是,router在这种特定配置下(wan口的物理eth0加入到了br0中),为什么L3.不会把pac.ket传到物理接口eth0?--- 印刷
我看了下kernel代码,也没有看到什么特殊.处理,不.知道是不是我哪里没有理解正确?[成人用品]
[ 本帖最后由 new_learne.r 于 2009-3-20 22:03 编.辑 ]学习