测试:
开启流量控制TC:
# ./tc_last.sh start
有限制的IP:192.168.138.131
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:DA:56:1C
inet addr:192.168.138.131 Bcast:192.168.138.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1811422 errors:0 dropped:0 overruns:0 frame:0
TX packets:1083449 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:943250761 (899.5 MiB) TX bytes:87045802 (83.0 MiB)
# wget http://ftp13.enet.com.cn:88/pub/multimedia/video/uvs9_trial_e_rtm.rar
--2013-08-08 17:44:01-- http://ftp13.enet.com.cn:88/pub/multimedia/video/uvs9_trial_e_rtm.rar
Resolving ftp13.enet.com.cn... 122.224.6.16
Connecting to ftp13.enet.com.cn|122.224.6.16|:88... connected.
HTTP request sent, awaiting response... 200 OK
Length: 180175741 (172M) [application/octet-stream]
Saving to: `uvs9_trial_e_rtm.rar.17
无限制IP:192.168.138.99
# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:0C:29:88:EC:85
inet addr:192.168.138.99 Bcast:192.168.138.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:88578 errors:0 dropped:0 overruns:0 frame:0
TX packets:43771 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:19401052 (18.5 MiB) TX bytes:6876868 (6.5 MiB)
# wget http://ftp13.enet.com.cn:88/pub/multimedia/video/uvs9_trial_e_rtm.rar
--2013-07-16 22:57:10-- http://ftp13.enet.com.cn:88/pub/multimedia/video/uvs9_trial_e_rtm.rar
Resolving ftp13.enet.com.cn... 122.224.6.16
Connecting to ftp13.enet.com.cn|122.224.6.16|:88... connected.
HTTP request sent, awaiting response... 200 OK
Length: 180175741 (172M) [application/octet-stream]
Saving to: `uvs9_trial_e_rtm.rar.2
效果还是很显著的,就是和设置的流量范围有偏差,有待继续研究!
