الشرح
الرول
/interface ethernet
set [ find default-name=ether1 ] name=in1
set [ find default-name=ether2 ] name=in2
set [ find default-name=ether3 ] name=in3
set [ find default-name=ether4 ] name=in4
set [ find default-name=ether5 ] name=out
/interface pppoe-client
add disabled=no interface=in1 max-mru=1480 max-mtu=1480 name=pppoe-out1 \
password=01027258929 use-peer-dns=yes user="ahmed elaraby"
add disabled=no interface=in2 max-mru=1480 max-mtu=1480 name=pppoe-out2 \
password=0112723429 use-peer-dns=yes user="ahmed elaraby"
add add-default-route=yes disabled=no interface=in3 max-mru=1480 max-mtu=1480 \
name=pppoe-out3 password=01027258929 user="ahmed elaraby"
add add-default-route=yes disabled=no interface=in4 max-mru=1480 max-mtu=1480 \
name=pppoe-out4 password=01027258929 user="ahmed elaraby"
/interface wireless
set [ find default-name=wlan1 ] l2mtu=2290
/ip pool
add name=dhcp_pool1 ranges=192.168.0.2-192.168.0.254
add name=dhcp_pool2 ranges=10.0.0.1-10.0.0.4,10.0.0.6-10.0.0.254
/ip dhcp-server
add address-pool=dhcp_pool2 disabled=no interface=out name=dhcp1
/ppp profile
set [ find name=default ] name=default
set [ find name=default-encryption ] name=default-encryption
/ip address
add address=192.168.1.2/24 interface=in1 network=192.168.1.0
add address=192.168.2.2/24 interface=in2 network=192.168.2.0
add address=192.168.3.2/24 interface=in3 network=192.168.3.0
add address=192.168.4.2/24 interface=in4 network=192.168.4.0
add address=10.0.0.5/24 interface=out network=10.0.0.0
/ip dhcp-server network
add address=10.0.0.0/24 gateway=10.0.0.5
/ip dns
set allow-remote-requests=yes cache-size=5000KiB max-udp-packet-size=512 \
servers=8.8.8.8,8.8.4.4
/ip firewall mangle
add action=mark-connection chain=input comment="ahmed elaraby" hotspot=auth \
in-interface=in1 new-connection-mark=in1_conn
add action=mark-connection chain=input comment="ahmed elaraby" hotspot=auth \
in-interface=in2 new-connection-mark=in2_conn
add action=mark-connection chain=input comment="ahmed elaraby" hotspot=auth \
in-interface=in3 new-connection-mark=in3_conn
add action=mark-connection chain=input comment="ahmed elaraby" hotspot=auth \
in-interface=in4 new-connection-mark=in4_conn
add action=mark-routing chain=output comment="ahmed elaraby" connection-mark=\
in1_conn new-routing-mark=in1
add action=mark-routing chain=output comment="ahmed elaraby" connection-mark=\
in2_conn new-routing-mark=in2
add action=mark-routing chain=output comment="ahmed elaraby" connection-mark=\
in3_conn new-routing-mark=in3
add action=mark-routing chain=output comment="ahmed elaraby" connection-mark=\
in4_conn new-routing-mark=in4
add action=mark-connection chain=prerouting comment="ahmed elaraby" \
dst-address-type=!local hotspot=auth in-interface=out new-connection-mark=\
in1_conn per-connection-classifier=both-addresses-and-ports:4/0
add action=mark-connection chain=prerouting comment="ahmed elaraby" \
dst-address-type=!local hotspot=auth in-interface=out new-connection-mark=\
in2_conn per-connection-classifier=both-addresses-and-ports:4/1
add action=mark-connection chain=prerouting comment="ahmed elaraby" \
dst-address-type=!local hotspot=auth in-interface=out new-connection-mark=\
in3_conn per-connection-classifier=both-addresses-and-ports:4/2
add action=mark-connection chain=prerouting comment="ahmed elaraby" \
dst-address-type=!local hotspot=auth in-interface=out new-connection-mark=\
in4_conn per-connection-classifier=both-addresses-and-ports:4/3
add action=mark-routing chain=prerouting comment="ahmed elaraby" \
connection-mark=in1_conn hotspot=auth in-interface=out new-routing-mark=in1
add action=mark-routing chain=prerouting comment="ahmed elaraby" \
connection-mark=in2_conn hotspot=auth in-interface=out new-routing-mark=in2
add action=mark-routing chain=prerouting comment="ahmed elaraby" \
connection-mark=in3_conn hotspot=auth in-interface=out new-routing-mark=in3
add action=mark-routing chain=prerouting comment="ahmed elaraby" \
connection-mark=in4_conn hotspot=auth in-interface=out new-routing-mark=in4
/ip firewall nat
add action=masquerade chain=srcnat comment="ahmed elaraby" out-interface=in1
add action=masquerade chain=srcnat comment="ahmed elaraby" out-interface=in2
add action=masquerade chain=srcnat comment="ahmed elaraby" out-interface=in3
add action=masquerade chain=srcnat comment="ahmed elaraby" out-interface=in4
/ip route
add check-gateway=ping comment=bridge distance=1 gateway=pppoe-out1 \
routing-mark=in1
add check-gateway=ping comment=PCC distance=1 gateway=192.168.1.1 routing-mark=\
in1
add check-gateway=ping comment=bridge distance=1 gateway=pppoe-out2 \
routing-mark=in2
add check-gateway=ping comment=PCC distance=1 gateway=192.168.2.1 routing-mark=\
in2
add check-gateway=ping comment=bridge distance=1 gateway=pppoe-out3 \
routing-mark=in3
add check-gateway=ping comment=PCC distance=1 gateway=192.168.3.1 routing-mark=\
in3
add check-gateway=ping comment=bridge distance=1 gateway=pppoe-out4 \
routing-mark=in4
add check-gateway=ping comment=PCC distance=1 gateway=192.168.4.1 routing-mark=\
in4
add check-gateway=ping comment=PCC distance=1 gateway=\
192.168.3.1,192.168.1.1,192.168.2.1,192.168.4.1
add check-gateway=ping comment=" bridge" distance=1 gateway=\
pppoe-out1,pppoe-out3,pppoe-out2,pppoe-out4
/system routerboard settings
set protected-routerboot=disabled
/tool romon port
add disabled=no
0 التعليقات لموضوع "الدمج البريدج والعادى فى روتر بورد واحد "
الابتسامات الابتسامات