Welcome to Sysnet Board คู่มือ การใช้งานอุปกรณ์ Network. Please log in or sign up.
สมาชิกทั้งหมด
17,595
กระทู้ทั้งหมด
10,026
หัวข้อทั้งหมด
4,711

  • มีปัญหา Loadbalance 2 Wan แบบ PPPoE Client, DHCP Client
    เริ่มโดย aladin36
    Read 8,038 times
0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

 

 
ผมทำตามสคลิปนี้ครับ Loadbalance 2 Wan แบบ PPPoE 30/15 Client, DHCP Client 100/50 มีปัญหาตรงที่ 1. เวลาใช้ 2 เส้น เน็ตอืดมากเข้าหน้าเว็บ ได้บ้างไม่ได้บ้าง 2. เวลาเน็ตอีกเส้นดับใช้เวลาประมาณ 5 นาที ถึงจะวิ่งอีกเส้น แต่วิ่งได้เร็ว ครับ ต้องมีอะไรหรือแก้อะไรเพิ้มครับ

/ip firewall mangle

add action=accept chain=prerouting disabled=no in-interface=pppoe-out1
add action=accept chain=prerouting disabled=no in-interface=ether2

add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=wan1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/0 src-address=192.168.2.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:2/1 src-address=192.168.2.0/24

add action=mark-routing chain=prerouting connection-mark=wan1_conn disabled=no new-routing-mark=to_wan1 passthrough=yes src-address=192.168.2.0/24
add action=mark-routing chain=prerouting connection-mark=wan2_conn disabled=no new-routing-mark=to_wan2 passthrough=yes src-address=192.168.2.0/24

/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=pppoe-out1 src-address=192.168.2.0/24
add action=masquerade chain=srcnat disabled=no out-interface=ether2 src-address=192.168.2.0/24

/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_wan1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ether2 routing-mark=to_wan2 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=ether2 scope=30 target-scope=10

yod
ไม่ได้แตะ loadbalance บน mikrotik นานมากแล้วครับ

ลองแก้ตามนี้ครับ

add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=wan1_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/0 src-address=192.168.2.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/1 src-address=192.168.2.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/2 src-address=192.168.2.0/24
add action=mark-connection chain=prerouting disabled=no dst-address-type=!local new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=both-addresses-and-ports:4/3 src-address=192.168.2.0/24

ของผมมี 2เส้น
wan1 100mbps distance 1
wan2 4 mbps มือถือผ่าน lan distance 100   

ตั้งใจทำ backup
ตั้งพอใช้งาน มันหน่วงๆตอนแรกทุกที คือ ตอนแรกจะช้าตลอดพอสักพักจะเร็ว เหมือนมันกำลังเช็คก่อนทุกครั้งทำให้เสียเวลามาก ตอนนี้เลยต้อง Disable เส้น wan2 ไปก่อนเพื่อให้ใช้งานปกติ

ไม่ทราบทำไงให้มันเร็วเหมือน wan1 เส้นเดียวได้บ้าง โดยไม่ต้องไป Disable wan2

ขอบคุณครับ

yod


หน่วงๆนี้คือตอนเปิด browser เข้า web หรือเปล่าครับ ลองเปลี่ยน dns เป็น 8.8.8.8 ดูครับ