ข้ามไปที่เนื้อหาหลัก

การทำ LoadBalance PCC 2 WAN (2 DHCP) to LAN and Failover



/ip firewall mangle
add action=accept chain=prerouting in-interface=ether1
add action=accept chain=prerouting in-interface=ether2
add action=mark-connection chain=prerouting dst-address-type=!local \
    new-connection-mark=wan1_conn passthrough=yes per-connection-classifier=\
    both-addresses-and-ports:3/0 src-address=192.168.2.0/24
add action=mark-connection chain=prerouting dst-address-type=!local \
    new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=\
    both-addresses-and-ports:3/1 src-address=192.168.2.0/24
add action=mark-connection chain=prerouting dst-address-type=!local \
    new-connection-mark=wan2_conn passthrough=yes per-connection-classifier=\
    both-addresses-and-ports:3/1 src-address=192.168.2.0/24
add action=mark-routing chain=prerouting connection-mark=wan1_conn \
    new-routing-mark=to_wan1 passthrough=yes src-address=192.168.2.0/24
add action=mark-routing chain=prerouting connection-mark=wan2_conn \
    new-routing-mark=to_wan2 passthrough=yes src-address=192.168.2.0/24
add action=mark-connection chain=prerouting dst-address-type=!local \

/ip firewall nat
add action=masquerade chain=srcnat dst-address-type=!local out-interface=\
    ether1
add action=masquerade chain=srcnat dst-address-type=!local out-interface=\
    ether2

/ip route
add check-gateway=ping distance=1 gateway=192.168.0.1 routing-mark=to_wan1
add check-gateway=ping distance=2 gateway=192.168.1.1 routing-mark=to_wan2
add check-gateway=ping distance=1 gateway=192.168.0.1
add check-gateway=ping distance=2 gateway=192.168.1.1

ความคิดเห็น

โพสต์ยอดนิยมจากบล็อกนี้

วิธีเคลียร์ซับหมึก Canon ip2770

สำหรับเครื่องปริ้นเตอร์ รุ่น ip2770 ที่มีอาการไฟส้มกระพริบ 8 ครั้ง และ เขียว 1 ครั้ง นั้นแสดงว่าเครื่องปริ้นซับหมีกเต็ม เรามีวิธีมาแนะนำกัน สำหรับขั้นตอนแรกต้องเข้า Services mode ip2770 ให้ได้ก่อนก่อนครับ จะมีมีวิธีการดังนี้

วิธีแก้ Canon MP287 ขึ้น E05

สำหรับวันนี้เรามีวิธีแนะนำเครื่องปริ้นเตอร์ Canon Pixma MP287 ขึ้น E05 อาการนี้เกิดจากตลับหมึกแต่อย่าพึ่งซื้อหัวใหม่นะ แต่เราหาวิธีแก้ได้แล้วครับสำหรับอาการ E05

วิธีแก้ Canon MX366 ซับหมึกเต็ม

ดาวน์โหลดโปรแกรมที่นี่ 1.ปิดเครื่องพริ้นเตอร์ รอจนไฟที่ปุ่ม Power ดับ  2. กดปุ่ม Power พร้อมกันกับปุ่ม Stop/ Reset 3. ปล่อยปุ่ม Stop/ Reset และกดไป 5 ครั้ง (ปุ่ม Power ยังไม่ปล่อยนะครับ)