Indice   FAQ  
Iscriviti  Login
Indice RouterOS RouterOS

Failover con PCC che funziona come Load Balancing

Tutto su questo sistema operativo linux based - Configurazioni, dubbi, problematiche &....

Failover con PCC che funziona come Load Balancing

Messaggioda simone.fil » mar 13 apr 2021, 12:32

Buongiorno a tutti.
Sto cercando di configurare la mia routerboard in modalità Failover con due WAN ed una LAN utilizzando il PCC seguendo una guida su internet. Sono due giorni che la provo e riprovo seguendola alla lettera, la Route List è identica a come dovrebbe essere (AS WAN1 con distance 1 e S WAN2 con distance 2, quando stacco la WAN1 la WAN2 diventa AS) ma sostanzialmente nella LAN esco con entrambe le connessioni aggregate, infatti, anche se nella route List la WAN2 viene contrassegnata come S quindi disattivata, monitorando il traffico funziona perfettamente insieme alla WAN1, tanto che nello speed test sulla LAN, vedo la somma di entrambe. Davvero non riesco a capire dove sbaglio. Posso chiedervi un aiuto?
Codice: Seleziona tutto
/interface ethernet
set [ find default-name=ether1 ] name="ether1 WAN1"
set [ find default-name=ether2 ] name="ether2 WAN2"
set [ find default-name=ether3 ] name="ether3 LAN"
/ip pool
add name=dhcp_pool0 ranges=192.168.1.100-192.168.1.200
/ip dhcp-server
add address-pool=dhcp_pool0 disabled=no interface="ether3 LAN" name=dhcp1
/ip address
add address=192.168.1.1/24 interface="ether3 LAN" network=192.168.1.0
/ip dhcp-client
add add-default-route=no disabled=no interface="ether1 WAN1"
add add-default-route=no disabled=no interface="ether2 WAN2"
/ip dhcp-server network
add address=192.168.1.0/24 dns-server=8.8.8.8,8.8.4.4 gateway=192.168.1.1
/ip dns
set servers=8.8.8.8,8.8.4.4
/ip firewall mangle
add action=mark-connection chain=input in-interface="ether1 WAN1" \
    new-connection-mark=WAN1 passthrough=yes
add action=mark-connection chain=input in-interface="ether2 WAN2" \
    new-connection-mark=WAN2 passthrough=yes
add action=mark-connection chain=prerouting dst-address-type=!local \
    in-interface="ether3 LAN" new-connection-mark=WAN1 passthrough=yes \
    per-connection-classifier=both-addresses:2/0
add action=mark-connection chain=prerouting dst-address-type=!local \
    in-interface="ether3 LAN" new-connection-mark=WAN2 passthrough=yes \
    per-connection-classifier=both-addresses:2/1
add action=mark-routing chain=prerouting connection-mark=WAN1 in-interface=\
    "ether3 LAN" new-routing-mark=to_WAN1 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2 in-interface=\
    "ether3 LAN" new-routing-mark=to_WAN2 passthrough=yes
/ip firewall nat
add action=masquerade chain=srcnat out-interface="ether1 WAN1"
add action=masquerade chain=srcnat out-interface="ether2 WAN2"
/ip route
add check-gateway=ping distance=1 gateway=192.168.3.75 routing-mark=to_WAN1
add check-gateway=ping distance=1 gateway=192.168.78.1 routing-mark=to_WAN2
add check-gateway=ping distance=1 gateway=192.168.3.75
[admin
@Mikro

Grazie mille a tutti :ave:
Simone
simone.fil
Mikrotik-User 10° Liv
Mikrotik-User 10° Liv
 
Messaggi: 12
Iscritto il: gio 30 mar 2017, 15:47
Uso routerOS dalla Versione: v5.x


Torna a RouterOS

Chi c’è in linea

Visitano il forum: Nessuno e 19 ospiti