الشرح
اسكربت الشرح
/interface ethernet
set [ find default-name=ether5 ] name=LOCL
set [ find default-name=ether1 ] name=WAN1
set [ find default-name=ether2 ] name=WAN2
set [ find default-name=ether3 ] name=WAN3
set [ find default-name=ether4 ] name=WAN4
/ip pool
add name=dhcp_pool1 ranges=10.0.0.1-10.0.0.4,10.0.0.6-10.0.0.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=LOCL name=dhcp1
/ip address
add address=10.0.0.5/24 interface=LOCL network=10.0.0.0
/ip dhcp-client
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
interface=WAN1 use-peer-dns=no use-peer-ntp=no
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
interface=WAN2 use-peer-dns=no use-peer-ntp=no
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
interface=WAN3 use-peer-dns=no use-peer-ntp=no
add default-route-distance=0 dhcp-options=hostname,clientid disabled=no \
interface=WAN4 use-peer-dns=no use-peer-ntp=no
/ip dhcp-server network
add address=10.0.0.0/24 gateway=10.0.0.5
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip firewall filter
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
disabled=yes
/ip firewall mangle
add action=mark-connection chain=prerouting connection-state=new \
new-connection-mark=LAN_1 nth=4,1 src-address=10.0.0.0/24
add action=mark-connection chain=prerouting connection-state=new \
new-connection-mark=LAN_2 nth=4,2 src-address=10.0.0.0/24
add action=mark-connection chain=prerouting connection-state=new \
new-connection-mark=LAN_3 nth=4,3 src-address=10.0.0.0/24
add action=mark-connection chain=prerouting connection-state=new \
new-connection-mark=LAN_4 nth=4,4 src-address=10.0.0.0/24
add action=mark-routing chain=prerouting connection-mark=LAN_1 \
new-routing-mark=LAN_1 src-address=10.0.0.0/24
add action=mark-routing chain=prerouting connection-mark=LAN_4 \
new-routing-mark=LAN_4 src-address=10.0.0.0/24
add action=mark-routing chain=prerouting connection-mark=LAN_3 \
new-routing-mark=LAN_3 src-address=10.0.0.0/24
add action=mark-routing chain=prerouting connection-mark=LAN_2 \
new-routing-mark=LAN_2 src-address=10.0.0.0/24
/ip firewall nat
add action=passthrough chain=unused-hs-chain comment="place hotspot rules here" \
disabled=yes
/ip route
add distance=1 gateway=192.168.1.1 routing-mark=LAN_1
add distance=1 gateway=192.168.2.1 routing-mark=LAN_2
add distance=1 gateway=192.168.3.1 routing-mark=LAN_3
add distance=1 gateway=192.168.4.1 routing-mark=LAN_4
/system routerboard settings
set cpu-frequency=850MHz protected-routerboot=disabled
/tool romon port
add
0 التعليقات لموضوع "بناء على طلب الاعضاء شرح الدمج nth فى اقل من 10 دقائق"
الابتسامات الابتسامات