Originally posted by nirvanaaa
View Post
ผมมือใหม่ mt จากที่ผมอ่านนะ คือ pcc เนี่ย มันจะกระจายโหลดแบบ array เริ่มจาก 0 1 2 3 ถ้าเรามี 3 wan ก็จะได้ ตามตัวอย่างนี้
Code:
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:1/0 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:1/1 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:1/2 action=mark-connection new-connection-mark=WAN3_conn passthrough=yes
ต่อไปมาดูในส่วนของ weight mt อ่านจากเวปนี้
http://aacable.wordpress.com/2011/08...mplete-script/
wan 1,2,3 เส้นละ 4 mb แต่ wan 4 8 mb ดังนั้นต้องมีการบังคับให้ใช้ทราฟฟิกใน wan 4 เพิ่มขึ้นเป็น 100 % จากโค้ดที่เขาเขียนจะเห็นว่า
Code:
add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/0 action=mark-connection new-connection-mark=WAN1_conn passthrough=yes add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/1 action=mark-connection new-connection-mark=WAN2_conn passthrough=yes add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/2 action=mark-connection new-connection-mark=WAN3_conn passthrough=yes add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/3 action=mark-connection new-connection-mark=WAN4_conn passthrough=yes add chain=prerouting dst-address-type=!local in-interface=Local per-connection-classifier=both-addresses-and-ports:4/4 action=mark-connection new-connection-mark=WAN4_conn passthrough=yes
อ่านของพี่ WiFi4you กะได้ ง่ายดี
http://www.wifi4you.com/Amp/Multiwan-Ratio.html
ลองดู raito กับความเร็วจะเห็นว่ามันสัมพันธ์กันครับ
ปล. ถ้าผมเข้าใจตรงไหนผิดพลาดรบกวนแย้งด้วยนะครับ ขอบคุณครับ
Comment