نمایش پست تنها
قدیمی 2008-09-13, 12:01 AM   #1 (permalink)
a_ahmadi
(a_ahmadi)
Registered User
 
تاریخ عضویت: Feb 2006
نوشته ها: 109
Groans: 0
Groaned at 0 Times in 0 Posts
Thanks: 50
Thanked 21 Times in 20 Posts
مشکل ادغام 2 پهناي باند در ميکروتيک

سلام
من براي ادغام دو پهناي باند از کد زیر استفاده کردم ولی این روش در عمل از يک پهناي باند استفاده مي کند و از ادغام دو پهناي باند خبري نيست چرا؟
براي ادغام دو پهناي باند از عمل روتينگ هم استفاده کردم و باز اين روش هم فقط از يک پهناي باند استفاده مي کند
آيا کانفيگ زير ايراد دارد؟

اينترنت 1 ==> 192.168.100.1
اينترنت 2 ==> 192.168.200.1
خروجي ==> 192.168.1.1

کد:
 
/ ip address 
add address=192.168.1.1/24 network=192.168.1.0 broadcast=192.168.1.255 interface=ext comment="" \
    disabled=no 
add address=192.168.100.2/24 network=192.168.100.0 broadcast=192.168.100.255 interface=int1 \
    comment="" disabled=no 
add address=192.168.200.2/24 network=192.168.200.0 broadcast=192.168.200.255 interface=int2 \
    comment="" disabled=no

/ ip firewall mangle
add chain=prerouting in-interface=ext connection-state=new nth=1,1,0 \
    action=mark-connection new-connection-mark=odd passthrough=yes comment="" \
    disabled=no 
add chain=prerouting in-interface=ext connection-mark=odd action=mark-routing \
    new-routing-mark=odd passthrough=no comment="" disabled=no 
add chain=prerouting in-interface=ext connection-state=new nth=1,1,1 \
    action=mark-connection new-connection-mark=even passthrough=yes comment="" \
    disabled=no 
add chain=prerouting in-interface=ext connection-mark=even action=mark-routing \
    new-routing-mark=even passthrough=no comment="" disabled=no
 
/ ip firewall nat 
add chain=srcnat connection-mark=odd action=src-nat to-addresses=192.168.100.2 \
    to-ports=0-65535 comment="" disabled=no 
add chain=srcnat connection-mark=even action=src-nat to-addresses=192.168.200.2 \
    to-ports=0-65535 comment="" disabled=no 
/ ip route 
add dst-address=0.0.0.0/0 gateway=192.168.100.1 scope=255 target-scope=10 routing-mark=odd \
    comment="" disabled=no 
add dst-address=0.0.0.0/0 gateway=192.168.200.1 scope=255 target-scope=10 routing-mark=even \
    comment="" disabled=no 
add dst-address=0.0.0.0/0 gateway=192.168.200.1 scope=255 target-scope=10 comment="" \
    disabled=no
با تشکر
a_ahmadi آنلاین نیست.   پاسخ با نقل قول
تبلیغات

تبلیغات در Persian Networks