เมื่อกี้่ PM ไปแล้วนะครับ ถามว่า
แล้วถ้าผมมี เน็ต 3BB เชื่อมต่อแบบ PPPoe 3 เส้น
แล้วมี เน็ต TOT-Winet 1 เส้น ควรเขียนสคริปยังไงครับ
รบกวน เพื่อนสมาชิกช่วยดู สคริปให้หน่อยครับ ว่าเกิดปัญหาตรงไหน
net 3bb 10 M / TOT FTTX 20 ทำ โหลดบาลานซ์ แบบ PCC
มีปัญหาตรง ไม่รวมเน็ต แต่เป็น BACKUP กันอยู่ครับ เวลาใช้งานจะออก เส้นใดเส้นนึ่งเส้นเดียว(http://www.uppic.org/image-3049_527C9DF6.jpg) (http://www.uppic.org/share-3049_527C9DF6.html)
/ip pool
add name=dhcp_pool1 ranges=192.168.10.2-192.168.10.50
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=bridge1 name=dhcp1
/interface bridge port
add bridge=bridge1 interface=ether3
add bridge=bridge1 interface=ether4
/ip address
add address=192.168.1.2/24 interface=ether1 network=192.168.1.0
add address=192.168.2.2/24 interface=ether2 network=192.168.2.0
add address=192.168.10.1/24 interface=ether3 network=192.168.10.0
/ip dhcp-server network
add address=192.168.10.0/24 gateway=192.168.10.1
/ip dns
set allow-remote-requests=yes servers=192.168.10.1,8.8.8.8,8.8.4.4
/ip dns static
add address=192.168.10.1 name=router
/ip firewall mangle
add action=mark-connection chain=input in-interface=pppoe-out1 \
new-connection-mark=ether1_conn
add action=mark-connection chain=input in-interface=pppoe-out2 \
new-connection-mark=ether2_conn
add action=mark-routing chain=output connection-mark=ether1_conn \
new-routing-mark=to_ether1
add action=mark-routing chain=output connection-mark=ether2_conn \
new-routing-mark=to_ether2
add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=bridge1 new-connection-mark=ether1_conn \
per-connection-classifier=both-addresses-and-ports:2/0
add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=bridge1 new-connection-mark=ether1_conn \
per-connection-classifier=both-addresses-and-ports:2/1
add action=mark-connection chain=prerouting dst-address-type=!local \
in-interface=bridge1 new-connection-mark=ether2_conn \
per-connection-classifier=both-addresses-and-ports:2/2
add action=mark-routing chain=prerouting connection-mark=ether1_conn \
in-interface=bridge1 new-routing-mark=to_ether1
add action=mark-routing chain=prerouting in-interface=bridge1 \
new-routing-mark=to_ether2
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out1
add action=masquerade chain=srcnat out-interface=pppoe-out2 to-addresses=\
0.0.0.0
add action=dst-nat chain=dstnat dst-port=800 in-interface=pppoe-out1 \
protocol=tcp to-addresses=192.168.10.150 to-ports=800
add action=dst-nat chain=dstnat dst-port=800 in-interface=pppoe-out2 \
protocol=tcp to-addresses=192.168.10.150 to-ports=800
add action=dst-nat chain=dstnat dst-port=900 in-interface=pppoe-out1 \
protocol=tcp to-addresses=192.168.10.125 to-ports=90
add action=dst-nat chain=dstnat dst-port=5920 in-interface=pppoe-out1 \
protocol=tcp to-addresses=192.168.10.125 to-ports=5920
add action=dst-nat chain=dstnat dst-port=5921 in-interface=pppoe-out1 \
protocol=tcp to-addresses=192.168.10.125 to-ports=5921
add action=dst-nat chain=dstnat dst-port=5921 in-interface=pppoe-out1 \
protocol=udp to-addresses=192.168.10.125 to-ports=5921
/ip firewall service-port
set tftp disabled=yes
set irc disabled=yes
set h323 disabled=yes
set sip disabled=yes
set pptp disabled=yes
/ip route
add check-gateway=ping distance=1 gateway=pppoe-out1 routing-mark=to_ether1
add check-gateway=ping distance=1 gateway=pppoe-out2 routing-mark=to_ether2
add check-gateway=ping distance=1 gateway=pppoe-out1
add check-gateway=ping distance=2 gateway=pppoe-out2
/ip service
set telnet disabled=yes
set ftp disabled=yes
set www port=81
set ssh disabled=yes
set api disabled=yes
set api-ssl disabled=yes
/system clock
set time-zone-name=Asia/Bangkok
/system ntp client
set enabled=yes mode=unicast primary-ntp=203.185.69.60 secondary-ntp=\
118.175.67.83
/system scheduler
add interval=10m name=dynDNS on-event="/system script run dynDns\r\
\n" policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
start-time=startup
และขอคำแนะนำหรือชี้ ทางเรื่อง LOOPBACK ในวงแลน ด้วย ddns ครับ
เพื่อไว้เช็คว่า อุปกรณ์ที่เป็น บริดโหมด หรือ พวกกล้อง DVR เราออนไลน์ได้หรือยังครับ
Users found this pages searching for: