مصطفى_يوسف
2013/09/24, 03:09 PM
بسم الله الرحمن الرحيم
اقدم لكم اليوم اجمل طريقه للدمج والطريقه من اجمل الطرق للدمج
طريقه ال nth بعد التعديلات البسيطه
لا يوجد بها اى مشاكل
السحب من الخطين بالتساوى واذا تم فصل روتر لن يشعر به المشترك
لان النت لايفصل عنه نهائيا فسيتم تحويله اتوماتيك الى الروتر الاخر
كل المطلوب منك تعمله هتغير ايبيهات الروترات الى :-
1- الروتر الاول 192.168.1.1
2- الروتر الثانى 192.168.2.1
3- الخروج للمشتركين 192.168.0.1
بالنسبه للميكروتك هتعمل خطوه واحده بس
هى انك هتسمى الكروت فى interface الى
الروتر الاول in1 // الروتر الثانى in2 //كرت الخروج out
اخر خطوه هتعملها هتاخد الاكواد كلها كوبى وتروح تفتح الميكروتك
new termenal
وتعمل بسط او لصق للاكواد
/ip address
add address=192.168.0.1/24 disabled=no interface=out network=192.168.0.0
/ip dns
set allow-remote-requests=no cache-max-ttl=1w cache-size=2048KiB \
max-udp-packet-size=4096 servers=8.8.8.8,8.8.4.4
/ip dhcp-client
add add-default-route=no disabled=no interface=in1 use-peer-dns=no \
use-peer-ntp=no
add add-default-route=no disabled=no interface=in2 use-peer-dns=no \
use-peer-ntp=no
/ip firewall mangle
add action=mark-connection chain=prerouting connection-state=new disabled=no \
new-connection-mark=lin1 nth=2,1 passthrough=yes src-address=\
192.168.0.0/24
add action=mark-routing chain=prerouting connection-mark=lin1 disabled=no \
new-routing-mark=lin1 passthrough=yes src-address=192.168.0.0/24
add action=mark-connection chain=prerouting connection-state=new disabled=no \
new-connection-mark=lin2 nth=2,2 passthrough=yes src-address=\
192.168.0.0/24
add action=mark-routing chain=prerouting connection-mark=lin2 disabled=no \
new-routing-mark=lin2 passthrough=yes src-address=192.168.0.0/24
/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=out
add action=masquerade chain=srcnat disabled=no src-address=192.168.0.0/24
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.2.1 \
routing-mark=lin1 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 \
routing-mark=lin2 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=30 \
target-scope=10
/ip dhcp-server
add address-pool=dhcp_pool1 authoritative=after-2sec-delay bootp-support=\
static disabled=no interface=out lease-time=3d name=dhcp1
/ip dhcp-server config
set store-leases-disk=5m
/ip dhcp-server network
add address=192.168.0.0/24 dhcp-option="" dns-server="" gateway=192.168.0.1 \
ntp-server="" wins-server=""
اقدم لكم اليوم اجمل طريقه للدمج والطريقه من اجمل الطرق للدمج
طريقه ال nth بعد التعديلات البسيطه
لا يوجد بها اى مشاكل
السحب من الخطين بالتساوى واذا تم فصل روتر لن يشعر به المشترك
لان النت لايفصل عنه نهائيا فسيتم تحويله اتوماتيك الى الروتر الاخر
كل المطلوب منك تعمله هتغير ايبيهات الروترات الى :-
1- الروتر الاول 192.168.1.1
2- الروتر الثانى 192.168.2.1
3- الخروج للمشتركين 192.168.0.1
بالنسبه للميكروتك هتعمل خطوه واحده بس
هى انك هتسمى الكروت فى interface الى
الروتر الاول in1 // الروتر الثانى in2 //كرت الخروج out
اخر خطوه هتعملها هتاخد الاكواد كلها كوبى وتروح تفتح الميكروتك
new termenal
وتعمل بسط او لصق للاكواد
/ip address
add address=192.168.0.1/24 disabled=no interface=out network=192.168.0.0
/ip dns
set allow-remote-requests=no cache-max-ttl=1w cache-size=2048KiB \
max-udp-packet-size=4096 servers=8.8.8.8,8.8.4.4
/ip dhcp-client
add add-default-route=no disabled=no interface=in1 use-peer-dns=no \
use-peer-ntp=no
add add-default-route=no disabled=no interface=in2 use-peer-dns=no \
use-peer-ntp=no
/ip firewall mangle
add action=mark-connection chain=prerouting connection-state=new disabled=no \
new-connection-mark=lin1 nth=2,1 passthrough=yes src-address=\
192.168.0.0/24
add action=mark-routing chain=prerouting connection-mark=lin1 disabled=no \
new-routing-mark=lin1 passthrough=yes src-address=192.168.0.0/24
add action=mark-connection chain=prerouting connection-state=new disabled=no \
new-connection-mark=lin2 nth=2,2 passthrough=yes src-address=\
192.168.0.0/24
add action=mark-routing chain=prerouting connection-mark=lin2 disabled=no \
new-routing-mark=lin2 passthrough=yes src-address=192.168.0.0/24
/ip firewall nat
add action=masquerade chain=srcnat disabled=no out-interface=out
add action=masquerade chain=srcnat disabled=no src-address=192.168.0.0/24
/ip route
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.2.1 \
routing-mark=lin1 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 \
routing-mark=lin2 scope=30 target-scope=10
add disabled=no distance=1 dst-address=0.0.0.0/0 gateway=192.168.1.1 scope=30 \
target-scope=10
/ip dhcp-server
add address-pool=dhcp_pool1 authoritative=after-2sec-delay bootp-support=\
static disabled=no interface=out lease-time=3d name=dhcp1
/ip dhcp-server config
set store-leases-disk=5m
/ip dhcp-server network
add address=192.168.0.0/24 dhcp-option="" dns-server="" gateway=192.168.0.1 \
ntp-server="" wins-server=""