coyote# ifconfig
br0 Link encap:EthernetHWaddr 00:E0:4C:61:14:F0
inet addr:192.168.10.251Bcast:192.168.10.255Mask:255.255.255.0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:618763 errors:0 dropped:0 overruns:0 frame:0
TX packets:112094 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:30867233 (29.4 MiB)TX bytes:14260756 (13.5 MiB)
eth0 Link encap:EthernetHWaddr 00:E0:4C:B0:10:5D
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:2376047 errors:0 dropped:0 overruns:0 frame:0
TX packets:3441819 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:784836125 (748.4 MiB)TX bytes:2065359356 (1.9 GiB)
Interrupt:9 Base address:0xdc00
eth1 Link encap:EthernetHWaddr 00:E0:4C:61:14:F0
UP BROADCAST RUNNING MULTICASTMTU:1500Metric:1
RX packets:3470181 errors:654 dropped:169 overruns:14 frame:0
TX packets:2383461 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2063826686 (1.9 GiB)TX bytes:787396648 (750.9 MiB)
Interrupt:11 Base address:0xf800
lo Link encap:Local Loopback
inet addr:127.0.0.1Mask:255.0.0.0
UP LOOPBACK RUNNINGMTU:16436Metric:1
RX packets:3 errors:0 dropped:0 overruns:0 frame:0
TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:251 (251.0 B)TX bytes:251 (251.0 B)
coyote#
偶现在用coyote来做网桥,过滤p2p流量...:P:Q 很简单啊.编译个支持桥接的内核,重新编译iptables,再添加一个桥接工具就行了.
在桥下,真切感受到napi(即轮询)驱动的好处.我用的是两张8139网卡,用标准的8139驱动时,当流量在9M左右时,系统的负载达到1.8.然而换了8139的napi驱动后,在大流量时系统的负载仍然保持在极低的水平,0.05左右.
页:
[1]