Indice   FAQ  
Iscriviti  Login
Indice RouterOS RouterOS

Utenti PPPoE su più WAN

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

Utenti PPPoE su più WAN

Messaggioda rosario » gio 21 gen 2016, 18:02

Salve a tutti ho 2 connessioni una che ha un ip (es. 10.0.0.2) e l'altra (es.192.168.1.1). Ho 60 clienti connessi in PPPoE (con due profili, un profilo assegna un pool(192.178.1.2-192.178.16.1) e l altro (192.179.1.2-192.179.16.1). Io dovrei fare uscire quelli del pool 1 sulla ethernet 1 e quelli del pool2 su ethernet 8. Sul mk è configurata sola la eth1 se configuro anche la 8 non navigano più. Grazie mille.
rosario
Mikrotik-User 10° Liv
Mikrotik-User 10° Liv
 
Messaggi: 45
Iscritto il: sab 28 mar 2015, 17:56

Re: Utenti PPPoE su più WAN

Messaggioda xanio » sab 23 gen 2016, 19:41

Ciao, usa un paio di regole di mangle con mark-connection e routing-mark e guarda poi come di funziona ;) prova a sperimentare e se non riesci vediamo a che punto sei con la connessione e dove sbagli ;)

Good Job.
---
MTCNA - MTCRE
Avatar utente
xanio
Staff rosIT
Staff rosIT
 
Messaggi: 1054
Iscritto il: lun 31 ott 2011, 18:15
Località: Sicilia
Uso routerOS dalla Versione: v4.x
Certificazioni Mikrotik: MTCNA - MTCRE
Altre certificazioni: Milestone - Yeastar - Cambium
Preferred Training Centre: Grifonline

Re: Utenti PPPoE su più WAN

Messaggioda rosario » sab 23 gen 2016, 19:57

Ho fatto 200 prove. Non riesco. Potresti gentilmente illustrami come fare?
rosario
Mikrotik-User 10° Liv
Mikrotik-User 10° Liv
 
Messaggi: 45
Iscritto il: sab 28 mar 2015, 17:56

Re: Utenti PPPoE su più WAN

Messaggioda xanio » dom 24 gen 2016, 12:23

Vediamo una tua configurazione, e cerchiamo di correggerla ;)
---
MTCNA - MTCRE
Avatar utente
xanio
Staff rosIT
Staff rosIT
 
Messaggi: 1054
Iscritto il: lun 31 ott 2011, 18:15
Località: Sicilia
Uso routerOS dalla Versione: v4.x
Certificazioni Mikrotik: MTCNA - MTCRE
Altre certificazioni: Milestone - Yeastar - Cambium
Preferred Training Centre: Grifonline

Re: Utenti PPPoE su più WAN

Messaggioda rosario » sab 30 gen 2016, 19:15

Codice: Seleziona tutto
/ip address
add address=10.0.0.198/24 network=10.0.0.0 broadcast=10.0.0.2 interface=ether1
add address=192.168.1.2/24 network=192.168.1.0 broadcast=192.168.1.1 interface=ether5
/ip route
add dst-address=0.0.0.0/0 gateway=10.0.0.2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.1.1 routing-mark=to_WAN2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.0.0.2 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=192.168.1.1 distance=2 check-gateway=ping
/ip firewall mangle
add action=mark-connection chain=input comment="Telecom" disabled=no in-interface=ether1 new-connection-mark=Telecom passthrough=yes
add action=mark-connection chain=input comment="Telecom2" disabled=no in-interface=ether5 new-connection-mark=Telecom2 passthrough=yes
add action=mark-routing chain=output connection-mark=Telecom new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=Telecom2 new-routing-mark=to_WAN2
/ip firewall nat
add chain=srcnat out-interface=ether1 action=masquerade
add chain=srcnat out-interface=ether5 action=masquerade
add action=mark-connection chain=input comment="Telecom" disabled=no in-interface=ether1 new-connection-mark=Telecom passthrough=yes
add action=mark-connection chain=input comment="Linkem" disabled=no in-interface=ether5 new-connection-mark=Linkem passthrough=yes
add action=mark-routing chain=output connection-mark=Telecom new-routing-mark=to_WAN1
add action=mark-routing chain=output connection-mark=Linkem new-routing-mark=to_WAN2


Mi sono fermato qui
rosario
Mikrotik-User 10° Liv
Mikrotik-User 10° Liv
 
Messaggi: 45
Iscritto il: sab 28 mar 2015, 17:56

Re: Utenti PPPoE su più WAN

Messaggioda ppraz » dom 31 gen 2016, 12:19

Le regole di "routing mark" le stai applicando su base di un pre-esistente connection mark.
Ignora il connection mark e usa il routing-mark su base "source-address"
Quindi marcherai

src-address 192.178.1.2-192.178.16.1 to_WAN1
src-address 192.179.1.2-192.179.16.1 to_WAN2

Nella routing table hai un default gw e un gateway per il caso di routing-mark = to_WAN2
Non vedo una route nel caso di routing-mark = to_WAN1
ppraz
Staff rosIT
Staff rosIT
 
Messaggi: 997
Iscritto il: sab 12 mar 2011, 14:13
Uso routerOS dalla Versione: v3.x

Re: Utenti PPPoE su più WAN

Messaggioda rosario » mer 3 feb 2016, 16:33

puoi scrivermi quella configurazione corretta. Grazie mille
rosario
Mikrotik-User 10° Liv
Mikrotik-User 10° Liv
 
Messaggi: 45
Iscritto il: sab 28 mar 2015, 17:56

Re: Utenti PPPoE su più WAN

Messaggioda ppraz » ven 5 feb 2016, 14:43

rosario ha scritto:puoi scrivermi quella configurazione corretta. Grazie mille


se non ti sporchi le mani da solo godi solo a metà :eheh: :eheh: :eheh:
ppraz
Staff rosIT
Staff rosIT
 
Messaggi: 997
Iscritto il: sab 12 mar 2011, 14:13
Uso routerOS dalla Versione: v3.x

Re: Utenti PPPoE su più WAN

Messaggioda rosario » dom 25 dic 2016, 8:50

Altro che godere ahahaha è un anno che sto combattendo... ahahahah
Oggi è Natale dobbiamo essere tutti più buoni.
Grazie :eheh:
rosario
Mikrotik-User 10° Liv
Mikrotik-User 10° Liv
 
Messaggi: 45
Iscritto il: sab 28 mar 2015, 17:56



Torna a RouterOS

Chi c’è in linea

Visitano il forum: Nessuno e 2 ospiti