MULTIPLE RUTEO

11 views
Skip to first unread message

M.C. Jorge Octavio Guzmán Sánchez

unread,
Sep 21, 2015, 3:52:57 PM9/21/15
to Lista OpebBSD

Buenas tardes, donde trabajo necesito implementar gateway multiple, tengo 4 salidas, originalmente pense que solo bastaria con que en el pf.conf especificase que tarjeta haria NAT a cual, 

--------------------

match out on rl0 from 192.168.10.0/24 nat-to rl0
match out on em3 from 192.168.13.0/24 nat-to em3
match out on em1 from 192.168.14.0/24 nat-to em1
match out on em0 from 192.168.15.0/24 nat-to em0

pass out all

-----------------------

pero no funciono, encontre que se pueden crear dominios de ruteo por lo que pienso que:

rdomain1 : bge0 –>nat–>rl0
rdomain2 : vlan13 –>nat–>em3
rdomain3 : vlan14 –>nat–>em1
rdomain4 : vlan15 –>nat–>em0

Y ademas deseo que la vlan 14 este atras de un squid 

propongo 
--------------hostname.bge0--------------
rdomain 1
inet 192.168.10.254 255.255.255.0
============================================================
--------------hostname.em0--------------
rdomain 4
dhcp
============================================================
--------------hostname.em1--------------
rdomain 3
dhcp
============================================================
--------------hostname.em2--------------
up descr VLAN_TRUNK group VLAN_TRUNK
============================================================
--------------hostname.em3--------------
rdomain 2
inet 177.234.0.98 255.255.255.252
============================================================
--------------hostname.rl0--------------
rdomain 1
dhcp
============================================================
--------------hostname.vlan12--------------
inet 192.168.12.254 255.255.255.0 NONE descr redmmto group mmto vlan 12 vlandev em2
============================================================
--------------hostname.vlan13--------------
rdomain 2
inet 192.168.13.254 255.255.255.0 NONE descr red13 group treco vlan 13 vlandev em2
============================================================
--------------hostname.vlan14--------------
rdomain 3
inet 192.168.14.254 255.255.255.0 NONE descr red14 group cator vlan 14 vlandev em2
============================================================
--------------hostname.vlan15--------------
rdomain 4
inet 192.168.15.254 255.255.255.0 NONE descr red15 group xxr vlan 15 vlandev em2
============================================================


--------------pf.conf--------------

match out on rl0 from 192.168.10.0/24 nat-to rl0 rtable 1
match out on em3 from 192.168.13.0/24 nat-to em3 rtable 2
match out on em1 from 192.168.14.0/24 nat-to em1 rtable 3
match out on em0 from 192.168.15.0/24 nat-to em0 rtable 4

pass out all rtable 1
pass out all rtable 2
pass out all rtable 3
pass out all rtable 4
============================================================


pero esto no funciona, alguien que me ayude...... gracias

Francisco Valladolid H.

unread,
Sep 21, 2015, 7:34:01 PM9/21/15
to openbsd...@googlegroups.com
Espero y te sirva esto, ECMP (Equal Cost Multi Path), es una forma de
Load Balancing para multiples Gateways.

http://www.openbsd.org/faq/pf/pools.html

Saludos.
> --
> Has recibido este mensaje porque estás suscrito al grupo "OpenBSD México" de
> Grupos de Google.
> Para anular la suscripción a este grupo y dejar de recibir sus mensajes,
> envía un correo electrónico a openbsd-mexic...@googlegroups.com.
> Para publicar en este grupo, envía un correo electrónico a
> openbsd...@googlegroups.com.
> Visita este grupo en http://groups.google.com/group/openbsd-mexico.
> Para acceder a más opciones, visita https://groups.google.com/d/optout.



--
Francisco Valladolid H.
-- http://blog.bsdguy.net - Jesus Christ follower.
Reply all
Reply to author
Forward
0 new messages