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

  • แก้ config RB450g OS4.11
    เริ่มโดย oldsnake
    Read 5,243 times
0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

 

 
คุณยอดครับผมใช้ RB450g OS4.11 ติดตั้งที่หอพักอยู่ อยากสอบถามดังนี้
1 เรื่องแก้config  ผมอยาก clear config เดิม โดยbackup ฐานข้อมูล user ใว้ สามารถทำอย่างไรได้บ้างครับ
2 ขอวิธีการset load balance 2 wan(3bb 16M+true 6M) หน่อยครับรู้สึกว่าที่ผมsetไว้ไม่ค่อยwork(ผมแนบconfigไว้ด้านล่าง)

/ ip route
add dst-address=0.0.0.0/0 gateway=pppoe-out1,pppoe-out1,pppoe-out2 check-gateway=ping

/ ip firewall nat
add chain=srcnat out-interface=pppoe-out1 action=masquerade
add chain=srcnat out-interface=pppoe-out2 action=masquerade

/ ip firewall mangle
add chain=input in-interface=pppoe-out1 action=mark-connection new-connection-mark=pppoe-out1_conn
add chain=input in-interface=pppoe-out2 action=mark-connection new-connection-mark=pppoe-out2_conn
add chain=output connection-mark=pppoe-out1_conn action=mark-routing new-routing-mark=to_wan1    
add chain=output connection-mark=pppoe-out2_conn 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
add dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=to_wan2

yod


ถ้าต้องการย้ายจาก 4 --> 5 ต้อง clear usermanager database ใหม่ครับ

ส่วนใน V4 ใน userman จะมี menu ให้ backup นะครับ หลังจาก backup มันจะไปโผล่ในช่อง file ใน winbox ครับ

เรื่องคู่มือ load balance เด๊่ยวขอเวลานิดนึงครับ ช่วงนี้มีคิวงานให้ทำเยอะมากเลยครับ  :-\

หรือส่งกลับมาให้ผมทำให้ใหม่เลยก็ได้ครับ

ผมจะใช้ os เดิมครับ แต่อยาก config load balance ใหม่ โดยจะขอ config จากคุณยอดเท่านั้นเองครับ  

yod
อันนี้ 2 wan ครับ

สร้าง pppoe-out1 และ pppoe-out2 ขึ้นมาก่อนครับ ส่วนตัวสีแดงเปลี่ยนเป็น ip ฝั่งขา lan ครับ



/ip firewall address-list add list=local address=192.168.1.0/24

/ip firewall mangle

add action=mark-connection chain=input comment="" disabled=yes in-interface=pppoe-out1 new-connection-mark=first_conn passthrough=yes
add action=mark-connection chain=input comment="" disabled=yes in-interface=pppoe-out2 new-connection-mark=second_conn passthrough=yes

add action=mark-routing chain=output comment="" connection-mark=first_conn disabled=yes new-routing-mark=first passthrough=no
add action=mark-routing chain=output comment="" connection-mark=second_conn disabled=yes new-routing-mark=second passthrough=no

add action=add-src-to-address-list address-list=first address-list-timeout=4h chain="mark new unseen" comment="NTH load balancing" disabled=no nth=2,1 src-address-type=!local
add action=add-src-to-address-list address-list=second address-list-timeout=4h chain="mark new unseen" comment="" disabled=no nth=2,2 src-address-type=!local

add action=add-src-to-address-list address-list=seen address-list-timeout=4h chain="mark new unseen" comment="" disabled=no src-address-type=!local
add action=jump chain="mark new unseen" comment="" disabled=no jump-target="mark connection"

add action=mark-connection chain="mark connection" comment="" disabled=no new-connection-mark=first_conn passthrough=yes src-address-list=first
add action=mark-connection chain="mark connection" comment="" disabled=no new-connection-mark=second_conn passthrough=yes src-address-list=second

add action=mark-routing chain="mark connection" comment="" connection-mark=first_conn disabled=no new-routing-mark=first passthrough=no
add action=mark-routing chain="mark connection" comment="" connection-mark=second_conn disabled=no new-routing-mark=second passthrough=no

add action=mark-routing chain=prerouting comment="" connection-mark=first_conn disabled=no new-routing-mark=first passthrough=no src-address-list=first
add action=mark-routing chain=prerouting comment="" connection-mark=second_conn disabled=no new-routing-mark=second passthrough=no src-address-list=second

add action=jump chain=prerouting comment="" connection-state=new disabled=no jump-target="mark connection" src-address-list=local
add action=jump chain=prerouting comment="" connection-state=new disabled=no jump-target="mark new unseen" src-address-list=local

/ip firewall nat
add action=masquerade chain=srcnat comment="" disabled=no out-interface=pppoe-out1
add action=masquerade chain=srcnat comment="" disabled=no out-interface=pppoe-out2

/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out1 routing-mark=first scope=255 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 routing-mark=second scope=255 target-scope=10

add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=pppoe-out2 scope=255 target-scope=10
add disabled=no distance=2 dst-address=0.0.0.0/0 gateway=pppoe-out1 scope=255 target-scope=10