موضوع اليوم عن كيفية دمج 10 خطوط انترنت على فتحة لان واحد فقط
كيسة كمبيوتر بكارتين لان فقط تقدر تعمل بيهم دمج 10 خطوط انترنت + التوزيع بشكل كويس جدا
وطبعا نحل مشكلة ان السرعة دوما بتيجى من اول خط لان اول خط هو نفسه كل الخطوط
والان تحميل الرولات المستخدمة فى العملية
/interface bridge
add admin-mac=00:00:00:00:00:00 ageing-time=5m arp=enabled auto-mac=yes \
disabled=no forward-delay=15s l2mtu=65535 max-message-age=20s mtu=1500 \
name=bridge1 priority=0x8000 protocol-mode=none transmit-hold-count=6
/interface ethernet
set 0 arp=enabled auto-negotiation=yes cable-settings=default \
disable-running-check=yes disabled=no full-duplex=yes mac-address=\
00:30:05:91:88:E6 mtu=1500 name=WAN1 speed=100Mbps
set 1 arp=enabled auto-negotiation=yes cable-settings=default \
disable-running-check=yes disabled=no full-duplex=yes mac-address=\
00:04:75:B2:38:74 mtu=1500 name=Local speed=100Mbps
/interface vlan
add arp=enabled disabled=no interface=WAN1 mtu=1500 name=WAN2 \
use-service-tag=no vlan-id=1
add arp=enabled disabled=no interface=WAN1 mtu=1500 name=WAN3 \
use-service-tag=no vlan-id=2
add arp=enabled disabled=no interface=WAN1 mtu=1500 name=WAN4 \
use-service-tag=no vlan-id=3
add arp=enabled disabled=no interface=WAN1 mtu=1500 name=WAN5 \
use-service-tag=no vlan-id=4
add arp=enabled disabled=no interface=WAN1 mtu=1500 name=WAN6 \
use-service-tag=no vlan-id=5
add arp=enabled disabled=no interface=WAN1 mtu=1500 name=WAN7 \
use-service-tag=no vlan-id=6
add arp=enabled disabled=no interface=WAN1 mtu=1500 name=WAN8 \
use-service-tag=no vlan-id=7
add arp=enabled disabled=no interface=WAN1 mtu=1500 name=WAN9 \
use-service-tag=no vlan-id=8
add arp=enabled disabled=no interface=WAN1 mtu=1500 name=WAN10 \
use-service-tag=no vlan-id=9
/interface bridge port
add bridge=bridge1 disabled=no edge=auto external-fdb=auto horizon=none \
interface=WAN1 path-cost=10 point-to-point=auto priority=0x80
add bridge=bridge1 disabled=no edge=auto external-fdb=auto horizon=none \
interface=WAN2 path-cost=10 point-to-point=auto priority=0x80
add bridge=bridge1 disabled=no edge=auto external-fdb=auto horizon=none \
interface=WAN3 path-cost=10 point-to-point=auto priority=0x80
add bridge=bridge1 disabled=no edge=auto external-fdb=auto horizon=none \
interface=WAN4 path-cost=10 point-to-point=auto priority=0x80
add bridge=bridge1 disabled=no edge=auto external-fdb=auto horizon=none \
interface=WAN5 path-cost=10 point-to-point=auto priority=0x80
add bridge=bridge1 disabled=no edge=auto external-fdb=auto horizon=none \
interface=WAN6 path-cost=10 point-to-point=auto priority=0x80
add bridge=bridge1 disabled=no edge=auto external-fdb=auto horizon=none \
interface=WAN7 path-cost=10 point-to-point=auto priority=0x80
add bridge=bridge1 disabled=no edge=auto external-fdb=auto horizon=none \
interface=WAN8 path-cost=10 point-to-point=auto priority=0x80
add bridge=bridge1 disabled=no edge=auto external-fdb=auto horizon=none \
interface=WAN9 path-cost=10 point-to-point=auto priority=0x80
add bridge=bridge1 disabled=no edge=auto external-fdb=auto horizon=none \
interface=WAN10 path-cost=10 point-to-point=auto priority=0x80
/ip address
add address=192.168.1.22/24 disabled=no interface=WAN1 network=192.168.1.0
add address=192.168.2.22/24 disabled=no interface=WAN2 network=192.168.2.0
add address=192.168.3.22/24 disabled=no interface=WAN3 network=192.168.3.0
add address=192.168.4.22/24 disabled=no interface=WAN4 network=192.168.4.0
add address=192.168.5.22/24 disabled=no interface=WAN5 network=192.168.5.0
add address=192.168.6.22/24 disabled=no interface=WAN6 network=192.168.6.0
add address=192.168.7.22/24 disabled=no interface=WAN7 network=192.168.7.0
add address=10.0.0.2/22 disabled=no interface=Local network=10.0.0.0
add address=192.168.9.22/24 disabled=no interface=WAN8 network=192.168.9.0
add address=192.168.11.22/24 disabled=no interface=WAN9 network=192.168.11.0
add address=192.168.12.44/24 disabled=no interface=WAN10 network=192.168.12.0
/ip firewall mangle
add action=accept chain=prerouting disabled=no dst-address=192.168.1.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.2.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.3.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.4.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.5.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.6.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.7.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.9.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.11.0/24
add action=accept chain=prerouting disabled=no dst-address=192.168.12.0/24
add action=mark-connection chain=input disabled=no in-interface=bridge1 \
new-connection-mark=WAN1_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=bridge1 \
new-connection-mark=WAN2_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=bridge1 \
new-connection-mark=WAN3_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=bridge1 \
new-connection-mark=WAN4_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=bridge1 \
new-connection-mark=WAN5_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=bridge1 \
new-connection-mark=WAN6_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=bridge1 \
new-connection-mark=WAN7_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=bridge1 \
new-connection-mark=WAN8_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=bridge1 \
new-connection-mark=WAN9_conn passthrough=yes
add action=mark-connection chain=input disabled=no in-interface=bridge1 \
new-connection-mark=WAN10_conn passthrough=yes
add action=mark-routing chain=output connection-mark=WAN1_conn disabled=no \
hotspot=auth new-routing-mark=WAN1 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN2_conn disabled=no \
hotspot=auth new-routing-mark=WAN2 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN3_conn disabled=no \
hotspot=auth new-routing-mark=WAN3 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN4_conn disabled=no \
hotspot=auth new-routing-mark=WAN4 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN5_conn disabled=no \
hotspot=auth new-routing-mark=WAN5 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN6_conn disabled=no \
hotspot=auth new-routing-mark=WAN6 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN7_conn disabled=no \
hotspot=auth new-routing-mark=WAN7 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN8_conn disabled=no \
hotspot=auth new-routing-mark=WAN8 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN9_conn disabled=no \
hotspot=auth new-routing-mark=WAN9 passthrough=yes
add action=mark-routing chain=output connection-mark=WAN10_conn disabled=no \
hotspot=auth new-routing-mark=WAN10 passthrough=yes
add action=mark-connection chain=prerouting disabled=no dst-address-type=\
!local in-interface=Local new-connection-mark=WAN1_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:10/0
add action=mark-connection chain=prerouting disabled=no dst-address-type=\
!local in-interface=Local new-connection-mark=WAN2_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:10/1
add action=mark-connection chain=prerouting disabled=no dst-address-type=\
!local in-interface=Local new-connection-mark=WAN3_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:10/2
add action=mark-connection chain=prerouting disabled=no dst-address-type=\
!local in-interface=Local new-connection-mark=WAN4_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:10/3
add action=mark-connection chain=prerouting disabled=no dst-address-type=\
!local in-interface=Local new-connection-mark=WAN5_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:10/4
add action=mark-connection chain=prerouting disabled=no dst-address-type=\
!local in-interface=Local new-connection-mark=WAN6_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:10/5
add action=mark-connection chain=prerouting disabled=no dst-address-type=\
!local in-interface=Local new-connection-mark=WAN7_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:10/6
add action=mark-connection chain=prerouting disabled=no dst-address-type=\
!local in-interface=Local new-connection-mark=WAN8_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:10/7
add action=mark-connection chain=prerouting disabled=no dst-address-type=\
!local in-interface=Local new-connection-mark=WAN9_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:10/8
add action=mark-connection chain=prerouting disabled=no dst-address-type=\
!local in-interface=Local new-connection-mark=WAN10_conn passthrough=yes \
per-connection-classifier=both-addresses-and-ports:10/9
add action=mark-routing chain=prerouting connection-mark=WAN1_conn disabled=\
no in-interface=Local new-routing-mark=WAN1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2_conn disabled=\
no in-interface=Local new-routing-mark=WAN2 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN3_conn disabled=\
no in-interface=Local new-routing-mark=WAN3 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN4_conn disabled=\
no in-interface=Local new-routing-mark=WAN4 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN5_conn disabled=\
no in-interface=Local new-routing-mark=WAN5 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN6_conn disabled=\
no in-interface=Local new-routing-mark=WAN6 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN7_conn disabled=\
no in-interface=Local new-routing-mark=WAN7 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN8_conn disabled=\
no in-interface=Local new-routing-mark=WAN8 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN9_conn disabled=\
no in-interface=Local new-routing-mark=WAN9 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN10_conn disabled=\
no in-interface=Local new-routing-mark=WAN10 passthrough=yes
add action=mark-connection chain=prerouting comment="play video shady" \
disabled=no layer7-protocol="youtube playing" new-connection-mark=\
youtplay passthrough=yes protocol=tcp
add action=mark-packet chain=postrouting connection-mark=youtplay disabled=no \
new-packet-mark=youtplay passthrough=no protocol=tcp
add action=mark-connection chain=prerouting comment="Browsing shady" \
disabled=no layer7-protocol=Browsing new-connection-mark=Browsing \
passthrough=yes protocol=tcp
add action=mark-packet chain=prerouting connection-mark=Browsing disabled=no \
new-packet-mark=Browsing passthrough=no protocol=tcp
add action=mark-connection chain=prerouting comment=photos disabled=no \
layer7-protocol=photos new-connection-mark=photo passthrough=yes \
protocol=tcp
add action=mark-packet chain=prerouting disabled=no layer7-protocol=photos \
new-packet-mark=photos passthrough=no protocol=tcp
/ip route
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.1.1 routing-mark=WAN1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.2.1 routing-mark=WAN2 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.3.1 routing-mark=WAN3 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.4.1 routing-mark=WAN4 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.5.1 routing-mark=WAN5 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.6.1 routing-mark=WAN6 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.7.1 routing-mark=WAN7 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.9.1 routing-mark=WAN8 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.11.1 routing-mark=WAN9 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.12.1 routing-mark=WAN10 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=1 dst-address=0.0.0.0/0 gateway=\
192.168.1.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=2 dst-address=0.0.0.0/0 gateway=\
192.168.2.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=3 dst-address=0.0.0.0/0 gateway=\
192.168.3.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=4 dst-address=0.0.0.0/0 gateway=\
192.168.4.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=5 dst-address=0.0.0.0/0 gateway=\
192.168.5.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=6 dst-address=0.0.0.0/0 gateway=\
192.168.6.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=7 dst-address=0.0.0.0/0 gateway=\
192.168.7.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=8 dst-address=0.0.0.0/0 gateway=\
192.168.9.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=9 dst-address=0.0.0.0/0 gateway=\
192.168.11.1 scope=30 target-scope=10
add check-gateway=ping disabled=no distance=10 dst-address=0.0.0.0/0 gateway=\
192.168.12.1 scope=30 target-scope=10
/ip firewall nat
add action=masquerade chain=srcnat disabled=no
بيانات الخطوط192.168.1.1192.168.2.1192.168.3.1192.168.4.1192.168.5.1192.168.6.1192.168.7.1192.168.9.1192.168.11.1192.168.12.1تحياتى لكمشادى سوفت
عن Unknown
0 التعليقات:
إرسال تعليق