- 论坛徽章:
- 0
|
有一个桥br1由eth0和eth1组成, 通过l7filter统计http流量,br1上是有数据的,但是指定网卡(eth0)上没有数据,具体信息如下,怎么才能上eth0上有数据呢?
求指教!
-bash-3.2# ifconfig
br1 Link encap:Ethernet HWaddr 00:E0:4C:05:4C:90
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:36512 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:3240261 (3.0 MiB) TX bytes:0 (0.0 B)
eth0 Link encap:Ethernet HWaddr 00:E0:4C:05:4C:90
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:552503 errors:0 dropped:0 overruns:0 frame:0
TX packets:10842 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100000
RX bytes:78715897 (75.0 MiB) TX bytes:3503170 (3.3 MiB)
Interrupt:28 Base address:0x8000
eth1 Link encap:Ethernet HWaddr 00:E0:4C:05:4C:91
UP BROADCAST RUNNING PROMISC MTU:1500 Metric:1
RX packets:7787 errors:0 dropped:0 overruns:0 frame:0
TX packets:21620 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100000
RX bytes:1195935 (1.1 MiB) TX bytes:8972275 (8.5 MiB)
Interrupt:29 Base address:0xc000
-bash-3.2# brctl show
bridge name bridge id STP enabled interfaces
br1 8000.00e04c054c90 no eth0
eth1
-bash-3.2# iptables -t mangle -nvL
Chain PREROUTING (policy ACCEPT 246K packets, 24M bytes)
pkts bytes target prot opt in out source destination
0 0 all -- eth0 * 0.0.0.0/0 0.0.0.0/0 LAYER7 l7proto http
3771 2670K all -- br1 * 0.0.0.0/0 0.0.0.0/0 LAYER7 l7proto http
Chain POSTROUTING (policy ACCEPT 191K packets, 17M bytes)
pkts bytes target prot opt in out source destination
0 0 all -- * eth0 0.0.0.0/0 0.0.0.0/0 LAYER7 l7proto http
3771 2670K all -- * br1 0.0.0.0/0 0.0.0.0/0 LAYER7 l7proto http |
|