BONDOWOSO COMPUTER

Catatan Tentang Ilmu Komputer

Konsep LB PCC beda BW LineA = 4Mbps#LineB = 2Mbps = 2+2+2

Опубликовано 08 Mar 2019 в 8:24 am Автор: dianemon

/interface ethernet
set [ find default-name=ether1 ] name=”ether1 lineA”
set [ find default-name=ether2 ] name=”ether2 lineB”
set [ find default-name=ether5 ] name=”ether5 lokal”
/interface wireless
set [ find default-name=wlan1 ] ssid=MikroTik
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik

/ip address
add address=192.168.100.254/24 interface=”ether5 lokal” network=192.168.100.0
add address=192.168.6.1/24 interface=”ether1 lineA” network=192.168.6.0
add address=192.168.2.1/24 interface=”ether2 lineB” network=192.168.2.0

/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4

/ip firewall nat
add action=masquerade chain=srcnat out-interface=”ether1 lineA”
add action=masquerade chain=srcnat out-interface=”ether2 lineB”

/ip firewall mangle
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=”ether3 lokal” new-connection-mark=lineA passthrough=yes per-connection-classifier=src-address-and-port:3/0
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=”ether3 lokal” new-connection-mark=lineA passthrough=yes per-connection-classifier=src-address-and-port:3/1
add action=mark-connection chain=prerouting dst-address-type=!local in-interface=”ether3 lokal” new-connection-mark=lineB passthrough=yes per-connection-classifier=src-address-and-port:3/2
add action=mark-routing chain=prerouting connection-mark=seamless in-interface=”ether3 lokal” new-routing-mark=”ke lineA” passthrough=no
add action=mark-routing chain=prerouting connection-mark=seamless in-interface=”ether3 lokal” new-routing-mark=”ke lineA” passthrough=no
add action=mark-routing chain=prerouting connection-mark=indihome in-interface=”ether3 lokal” new-routing-mark=”ke lineB” passthrough=no

/ip route
add check-gateway=ping distance=1 gateway=192.168.6.254 routing-mark=”ke lineA”
add check-gateway=ping distance=1 gateway=192.168.6.254 routing-mark=”ke lineA”
add check-gateway=ping distance=2 gateway=192.168.2.254 routing-mark=”ke lineB”
add check-gateway=ping distance=1 gateway=192.168.6.254,192.168.2.254

Ваш отзыв

Навигация

Подписка

Рубрики

Архивы

Ссылки

Админ