اعلانات تلقائية

تعديل

خخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخخ

links

السبت، 22 أكتوبر 2011

شرح طريقة دمج اكثر من خط بكل سهوله في المايكروتك وتريح الروترات تماما

بسم الله الرحمن الرحيم

دمج الخطوط له اكتر من طريقه والحمد لله نقدر نقول جربناهم كلهم وافضل طريقه اثبتت كفاءه فى سحب الداونللود بسرعه رهيبه وكمان سرعه التصفح هى

الطريقه التى اشار لها المهندس المحترم الاخ حازم عامر( ربنا يوفقه )
وهى طريقه ال nth ل دمج الخطوط

لاحظنا فى الفتره الاخيره بعض الاعضاء بتقابلهم مشاكل فى تنفيذ الطريقه خصوصا تغيير الايبهات للروترات ووضعها ف الاسكربت وتطبيقها على السيرفر
بس فى الشرح ده ان شاء الله ف مكسبين
1/ هنريح الروترات تماما وعمرها ما هتهنج
2/ مش هتشغل بالك بوضع ايبهات الروترات ف السيرفر وممكن تغير راوتر مكان التانى عادى خالص
الطريقه جربتها وشغال بيها ع 3.30 وما اشتغلتش بيها على 2.9.27

الشرح بالصور ان شاء الله وامشى مع الخطوات خطوه خطوه

1- عمل الروترات على المود bridge
وانت بتعمل كونفجرشن للروتر خليه بريدج بدل pppoe
2- طبعا هتكون منزل نسخه 3.30 ومركب كروت الان بتاعتك وكل راوتر توصله ب كارت .طبعا عدد الكروت يفوق عدد الروترات ب رقم يعنى لو هتدمج 3 خطوط يبقى محتاج 4 كروت لان ..3 كروت للروترات وكرت ل خروج النت


3- تغير اسماء كروت سيرفرك عشان تعرف تتعامل مع السيرفر

4- نبدا بعمل اول راوتر ف المايكروتك ب طريقه البريدج

والصوره تشرح الطريقه



5- تختار كارت الوان بتاعك الى راكب عليه الرواتر وتبدا تكتب اليوزر نيم والباسورد بتوع الشركه النت

6-كده تتاكد ان المايكروتك عمل كونكت بالراوتر وبالشركه واخد اى بى كمان


7- نفس الطريقه تطبقها لعدد الخطوط الى هتدمجها زى الشرح الى فات بالظبط
8-نبدا ندخل اسكربت الدمج ونغير فيه
وده اسكربت دمج خطين طبعا ب nth

كود PHP:
ip address 
add address
=1.1.1.1/24/24 network=1.1.1.0 broadcast=1.1.1.255 interface=lan comment="" disabled=no
ip firewall mangle 
add chain
=prerouting in-interface=lan connection-state=new nth=2,1 action=mark-connection new-connection-mark=conn1 passthrough=yes comment="" disabled=no
add chain
=prerouting in-interface=lan connection-mark=conn1 action=mark-routing new-routing-mark=conn1 passthrough=no comment="" disabled=no
add chain
=prerouting in-interface=lan connection-state=new  action=mark-connection new-connection-mark=conn2 passthrough=yes comment="" disabled=no
add chain
=prerouting in-interface=lan connection-mark=conn2 action=mark-routing new-routing-mark=conn2 passthrough=no comment="" disabled=no

ip firewall nat
add chain
=srcnat connection-mark=conn1 action=masquerade out-interface=wan1 comment="" disabled=no
add chain
=srcnat connection-mark=conn2 action=masquerade out-interface=wan2 comment="" disabled=no

ip route 
add dst
-address=0.0.0.0/0 gateway=10.0.0.138 scope=255 target-scope=10 routing-mark=conn1 comment="" disabled=no
add dst
-address=0.0.0.0/0 gateway=192.168.16.1 scope=255 target-scope=10 routing-mark=conn2 comment="" disabled=no 
وده اسكربت دمج 3 خطوط
كود PHP:
ip address 
add address
=192.168.0.1/24 network=192.168.0.0 broadcast=192.168.0.255 interface=lan comment="" disabled=no
ip firewall mangle 
add chain
=prerouting in-interface=lan connection-state=new nth=3,1 action=mark-connection new-connection-mark=conn1 passthrough=yes comment="" disabled=no
add chain
=prerouting in-interface=lan connection-mark=conn1 action=mark-routing new-routing-mark=conn1 passthrough=no comment="" disabled=no
add chain
=prerouting in-interface=lan connection-state=new nth=2,1 action=mark-connection new-connection-mark=conn2 passthrough=yes comment="" disabled=no
add chain
=prerouting in-interface=lan connection-mark=conn2 action=mark-routing new-routing-mark=conn2 passthrough=no comment="" disabled=no
add chain
=prerouting in-interface=lan connection-state=new nth=1,1 action=mark-connection new-connection-mark=conn3 passthrough=yes comment="" disabled=no
add chain
=prerouting in-interface=lan connection-mark=conn3 action=mark-routing new-routing-mark=conn3 passthrough=no comment="" disabled=no

ip firewall nat 
add chain
=srcnat connection-mark=conn1 action=masquerade out-interface=wan1 comment="" disabled=no
add chain
=srcnat connection-mark=conn2 action=masquerade out-interface=wan2 comment="" disabled=no
add chain
=srcnat connection-mark=conn3 action=masquerade out-interface=wan3 comment="" disabled=no


ip route 
add dst
-address=0.0.0.0/0 gateway=10.111.0.1 scope=255 target-scope=10 routing-mark=conn1 comment="" disabled=no
add dst
-address=0.0.0.0/0 gateway=10.112.0.1 scope=255 target-scope=10 routing-mark=conn2 comment="" disabled=no
add dst
-address=0.0.0.0/0 gateway=10.113.0.1 scope=255 target-scope=10 routing-mark=conn3 comment="" disabled=no 
بعد ما نزلت الاسكربت نبدا نغير فيه عشان يسحب نت م البردجات بتاعتنا

ندخل ip firewall nat ونغير زى الصوره

ودى صوره المانجل بس مش هنغير فيها الرولات الى تحت رولات البريدجات ودى اوتوماتيك


النقطه الى جايه مهمه وهى تغيير رولات ال route
هتجيى ع كل روت ل كل راوتر وتغيره ل البررديج بتاعته عشان مش هيبقى فيه راوتر اصلا هيبقى الى موجود البريدج بتاعتنا
ودى الصوره


هتغير الروت ل كل رول م ال 3 رولات وهنا انا دامج 3 خطوط وعندى 3 روت غيرتهم


طبعا هتغير اسماء الكروت وتخلى كارت الخروج lan

اما الروترات مش مهمه معانا بس تبقى عارفهم تحط الد ان اس بتاع شركتك او اى دى ان اس وتفعل dhcp او تحط ايبهات مانوال لكارت الان

ودى الشكل النهائى ل دمج 3 خطوط وهنركز ع حرف ال R جنب البريدجات عشان ده اهم حاجه منه بتعرف النت شغال ع الراوتر ولا لاء والدمج شغال ولا لاء



طبعا ف الاخر الاستفاده ان المايكروتك هيبقى هو الراوتر بتاعنا وكمان هو الدمج ومافيش تهنيج بقه ولا الكلام ده
يارب اكون قدرت افيد والناس تمشى صح مع الشرح لو هتطبقها انا شغال بيها م فتره طويله جدا وف الوقت ده بوفر ع نفسى سواء الراوتر اسبيد تاتش او اى نوع ساعتها كل الراوترات زى بعض عشان بتعامل مع اقوى راوتر ف العالم وهو المايكروتك

اللى هيبقى عنده مشكله يتابع معايا



نقلا عن الديفيدي الموضوع الاصلي من هنا

http://dvd4arab.maktoob.com/showthre...post1078830412

0 التعليقات:

إرسال تعليق

Twitter Delicious Facebook Digg Stumbleupon Favorites More