รบกวนถามหน่อยครับว่า
ถ้าไม่ต้องการทำ Loadbalance Internet Static IP 2 เส้น
แต่ต้องการทำแค่ static wan ip 1 เส้นจะต้องทำยังไงครับ
ขอบคุณครับ
เวลาเล่นเกม online จะมีปัญหาไหมครับ เรื่องการสลับ wan
ยังไม่เคยลองเลยครับ ถ้ามีปัญหากับพวกเกมส์ Online หรือพวก Internet Banking ให้ใช้เป็นแบบ NTH จะดีกว่าครับ
ยังไม่เคยลองเลยครับ ถ้ามีปัญหากับพวกเกมส์ Online หรือพวก Internet Banking ให้ใช้เป็นแบบ NTH จะดีกว่าครับ
[/quote]แล้วแบบ NTH มีที่ไม่ต้องทำ modem เป็น bridge ไหมครับ พอดีใช้ร่วมกับ TOT Winet ด้วย มันไม่สามารถทำให้เป็น bridge ได้
ขอบคุณครับ
พอทำได้ไหมครับ
ลองดูนะครับ ขา 1 PPPoE Client ส่วนขา 2 เป็น Static ครับ
/ ip firewall mangle
add chain=input in-interface=pppoe-out1 action=mark-connection new-connection-mark=wan1_conn
add chain=input in-interface=ether2 action=mark-connection new-connection-mark=wan2_conn
add chain=output connection-mark=wan1_conn action=mark-routing new-routing-mark=to_wan1
add chain=output connection-mark=wan2_conn action=mark-routing new-routing-mark=to_wan2
add chain=prerouting dst-address-type=!local hotspot=auth in-interface=bridge1 per-connection-classifier=both-addresses-and-ports:2/0 \
action=mark-connection new-connection-mark=wan1_conn passthrough=yes
add chain=prerouting dst-address-type=!local hotspot=auth in-interface=bridge1 per-connection-classifier=both-addresses-and-ports:2/1 \
action=mark-connection new-connection-mark=wan2_conn passthrough=yes
add chain=prerouting connection-mark=wan1_conn in-interface=bridge1 action=mark-routing new-routing-mark=to_wan1
add chain=prerouting connection-mark=wan2_conn in-interface=bridge1 action=mark-routing new-routing-mark=to_wan2
/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_wan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.2.1 routing-mark=to_wan2 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=pppoe-out1 action=masquerade
add chain=srcnat src-address=192.168.2.0/24 action=masquerade
ต้องการทำ Load balance Internet Static IP 3 เส้น รุ่น RB-450G ใช้ร่วมกับ Hotspot
- 3 WAN => Eth1,Eth2,Eth3
- 2 LAN => Eth4,Eth5
จะทำได้หรือเปล่า ถ้าทำได้ขอขั้นตอนการทำด้วยครับ
ทำไม Loadbalance ผมใช้สองเส้นแต่เข้าไปดูมันใช้เส้นเดียวตลอด ไม่เห็นมันโหลดพร้อมกัน แต่ถ้าดึงสายหนึ่งออกมันถึงจะใช้อีกสายหนึ่ง
ลองโหลดบิตที่มีคนปล่อยเยอะๆครับ
ลองโหลดแล้วคับ..วิ่งอยู่แต่เส้นเดียว 1.5 M ถ้าดึงสายออกถึงจะไปใช้อีกสายหนึ่งให้ แต่ถ้าเน็ตหลุดแบบไม่ถึงสายออก ไม่ยอมสลับให้เลย.
การทำ Loadbalance ลักษณะนี้ ถ้าเน็ต 2 เส้นความเร็วไม่เท่ากัน จะมีปัญหาอะไรหรือไม่ และความเร็วเน็ตของ 2 เส้นทั้ง Up และ Down จะรวมกันหรือไม่ครับ
ค่า Internet เท่าไหร่ครับ เดี๋ยวเขียน script ให้ครับ
ค่า Internet เท่าไหร่ครับ เดี๋ยวเขียน script ให้ครับ
[/quote]
เส้น Wan 1 = 50M / 10M
เส้น Wan 2 = 20M / 2M
ค่า Internet เท่าไหร่ครับ เดี๋ยวเขียน script ให้ครับ
[/quote]
เส้น Wan 1 = 50M / 10M
เส้น Wan 2 = 20M / 2M
[/quote]
ลองดูนะครับ มันคำนวนได้ไม่เป๊ะๆครับ ส่วนขา up ไม่มีผลเท่าไหร่ครับ
/ ip firewall mangle
add chain=input in-interface=pppoe-out1 action=mark-connection new-connection-mark=wan1_conn
add chain=input in-interface=pppoe-out2 action=mark-connection new-connection-mark=wan2_conn
add chain=output connection-mark=wan1_conn action=mark-routing new-routing-mark=to_wan1
add chain=output connection-mark=wan2_conn action=mark-routing new-routing-mark=to_wan2
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
no dst-address-type=!local hotspot=auth src-address=192.168.1.0/24 new-connection-mark=\
wan1_conn passthrough=yes per-connection-classifier=both-addresses:3/0
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
no dst-address-type=!local hotspot=auth src-address=192.168.1.0/24 new-connection-mark=\
wan1_conn passthrough=yes per-connection-classifier=both-addresses:3/1
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
no dst-address-type=!local hotspot=auth src-address=192.168.1.0/24 new-connection-mark=\
wan2_conn passthrough=yes per-connection-classifier=both-addresses:3/2
add chain=prerouting connection-mark=wan1_conn in-interface=bridge1 action=mark-routing new-routing-mark=to_wan1
add chain=prerouting connection-mark=wan2_conn in-interface=bridge1 action=mark-routing new-routing-mark=to_wan2
/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_wan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_wan2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 distance=2 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=pppoe-out1 action=masquerade
add chain=srcnat out-interface=pppoe-out2 action=masquerade
ค่า Internet เท่าไหร่ครับ เดี๋ยวเขียน script ให้ครับ
[/quote]
เส้น Wan 1 = 50M / 10M
เส้น Wan 2 = 20M / 2M
[/quote]
ลองดูนะครับ มันคำนวนได้ไม่เป๊ะๆครับ ส่วนขา up ไม่มีผลเท่าไหร่ครับ
/ ip firewall mangle
add chain=input in-interface=pppoe-out1 action=mark-connection new-connection-mark=wan1_conn
add chain=input in-interface=pppoe-out2 action=mark-connection new-connection-mark=wan2_conn
add chain=output connection-mark=wan1_conn action=mark-routing new-routing-mark=to_wan1
add chain=output connection-mark=wan2_conn action=mark-routing new-routing-mark=to_wan2
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
no dst-address-type=!local hotspot=auth src-address=192.168.1.0/24 new-connection-mark=\
wan1_conn passthrough=yes per-connection-classifier=both-addresses:3/0
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
no dst-address-type=!local hotspot=auth src-address=192.168.1.0/24 new-connection-mark=\
wan1_conn passthrough=yes per-connection-classifier=both-addresses:3/1
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
no dst-address-type=!local hotspot=auth src-address=192.168.1.0/24 new-connection-mark=\
wan2_conn passthrough=yes per-connection-classifier=both-addresses:3/2
add chain=prerouting connection-mark=wan1_conn in-interface=bridge1 action=mark-routing new-routing-mark=to_wan1
add chain=prerouting connection-mark=wan2_conn in-interface=bridge1 action=mark-routing new-routing-mark=to_wan2
/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_wan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_wan2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 distance=2 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=pppoe-out1 action=masquerade
add chain=srcnat out-interface=pppoe-out2 action=masquerade
[/quote]
ขอบคุณครับ
ถ้าเราต้องการให้ส่งเมล์ออก วิ่งผ่านเฉพาะขา Wan 1 สามารถทำได้ไหมครับ
70/10
15/1
ใช้ hotspot ร่วมด้วย
แบบ static ต้องเซตค่าอย่างไรบ้างครับหรือมีสคริปให้เลยก็ดีครับ ขอบคุณมากครับ
รบกวนหน่อยครับ
ถ้า Internet 2 Link
Wan 1 เป็น bridge mode Speed 100/10
Wan 2 เป็น Route mode speed 20/2
ต้องทำยังไงครับ
ค่า Internet เท่าไหร่ครับ เดี๋ยวเขียน script ให้ครับ
[/quote]
เส้น Wan 1 = 50M / 10M
เส้น Wan 2 = 20M / 2M
[/quote]
ลองดูนะครับ มันคำนวนได้ไม่เป๊ะๆครับ ส่วนขา up ไม่มีผลเท่าไหร่ครับ
/ ip firewall mangle
add chain=input in-interface=pppoe-out1 action=mark-connection new-connection-mark=wan1_conn
add chain=input in-interface=pppoe-out2 action=mark-connection new-connection-mark=wan2_conn
add chain=output connection-mark=wan1_conn action=mark-routing new-routing-mark=to_wan1
add chain=output connection-mark=wan2_conn action=mark-routing new-routing-mark=to_wan2
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
no dst-address-type=!local hotspot=auth src-address=192.168.1.0/24 new-connection-mark=\
wan1_conn passthrough=yes per-connection-classifier=both-addresses:3/0
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
no dst-address-type=!local hotspot=auth src-address=192.168.1.0/24 new-connection-mark=\
wan1_conn passthrough=yes per-connection-classifier=both-addresses:3/1
add action=mark-connection chain=prerouting connection-mark=no-mark disabled=\
no dst-address-type=!local hotspot=auth src-address=192.168.1.0/24 new-connection-mark=\
wan2_conn passthrough=yes per-connection-classifier=both-addresses:3/2
add chain=prerouting connection-mark=wan1_conn in-interface=bridge1 action=mark-routing new-routing-mark=to_wan1
add chain=prerouting connection-mark=wan2_conn in-interface=bridge1 action=mark-routing new-routing-mark=to_wan2
/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=to_wan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_wan2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=pppoe-out2 distance=2 check-gateway=ping
/ ip firewall nat
add chain=srcnat out-interface=pppoe-out1 action=masquerade
add chain=srcnat out-interface=pppoe-out2 action=masquerade
[/quote]
สอบถามเพิ่ม ถ้าเล้นใดเส้นนึงเป็น มี IP จริงที่ต้องใช้งานในนั้นด้วย จะต้องทำยังไงครับ Internet Fix IP 5 IP
Users found this pages searching for: