[FUG-BR] RES: quando vem a ultima versão do carp

Marcello Silva Coutinho marcello.coutinho em trf1.gov.br
Sexta Junho 19 16:54:27 BRT 2009


Luiz Gustavo,

Se você conseguir acionar um script quando o status do carp mudar, você pode subir um alias na usa interface wan ou monitorar a lan com o carp.
Neste caso, caso a lan caia/volte, você executa o script que configura/desconfigura o ip na wan do servidor de backup. 

Att,
Marcello Coutinho

-----Mensagem original-----
De: freebsd-bounces at fug.com.br [mailto:freebsd-bounces at fug.com.br] Em nome de Luiz Gustavo
Enviada em: sexta-feira, 19 de junho de 2009 11:17
Para: freebsd at fug.com.br
Assunto: [FUG-BR] quando vem a ultima versão do carp

Olá lista...

alguém tem noticia de como esta o processo de porting do carp na sua 
última versão no Openbsd ???

ou se existe algum patch para pegar a última versão.

a opção carpdev me faz uma falta quando eu só tenho um ip disponivel ! ...

sei que com freevrrpd quebra o galho, mas convenhamos que no carp a 
coisa fica mais nativa !

Abraços,

Luiz Gustavo

*CARP* <http://www.openbsd.org/cgi-bin/man.cgi?query=ifconfig&sektion=8#end>
     *ifconfig* /carp-interface/ [*advbase* /n/] [*advskew* /n/] [*balancing* /mode/]
     [*carpnodes* /vhid:advskew,vhid:advskew,.../] [*carpdev* /iface/]
     [[*-*]*carppeer* /peer_address/] [*pass* /passphrase/] [*state* /state/] [*vhid* /host-id/]

     The options are as follows:

     *advbase* /n/
             If the driver is a carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> pseudo-device, set the base advertise-
             ment interval to /n/ seconds.  This is an 8-bit number; the default
             value is 1 second.

     *advskew* /n/
             If the driver is a carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> pseudo-device, skew the advertisement
             interval by /n/.  This is an 8-bit number; the default value is 0.

     *balancing* /mode/
             If the driver is a carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> pseudo-device, set the load balancing
             mode to /mode/.  Valid modes are /arp/, /ip/, /ip-stealth/, and /ip-/
             /unicast/.

     *carpnodes* /vhid:advskew,vhid:advskew,.../
             If the driver is a carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> pseudo-device, create a load balancing
             group consisting of up to 32 nodes.  Each node is specified as a
             /vhid:advskew/ tuple in a comma separated list.

     *carpdev* /iface/
             If the driver is a carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> pseudo-device, attach it to /iface/.  If
             not specified, the kernel will attempt to select an interface
             with a subnet matching that of the carp interface.

     *carppeer* /peer_address/
             If the driver is a carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> pseudo-device, send the carp adver-
             tisements to a specified point-to-point peer or multicast group
             instead of sending the messages to the default carp multicast
             group.  The /peer_address/ is the IP address of the other host tak-
             ing part in the carp cluster.  With this option, carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> traffic
             can be protected using ipsec(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=ipsec&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> and it may be desired in networks
             that do not allow or have problems with IPv4 multicast traffic.

     *-carppeer*
             If the driver is a carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> pseudo-device, send the advertisements
             to the default carp multicast group.

     *pass* /passphrase/
             If the driver is a carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> pseudo-device, set the authentication
             key to /passphrase/.  There is no passphrase by default.

     *state* /state/
             Explicitly force the carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> pseudo-device to enter this state.
             Valid states are /init/, /backup/, and /master/.

     *vhid* /n/  If the driver is a carp(4) <http://www.openbsd.org/cgi-bin/man.cgi?query=carp&sektion=4&arch=&apropos=0&manpath=OpenBSD+Current> pseudo-device, set the virtual host ID
             to /n/.  Acceptable values are 1 to 255.

     Taken together, the *advbase* and *advskew* indicate how frequently, in sec-
     onds, the host will advertise the fact that it considers itself master of
     the virtual host.  The formula is *advbase* + (*advskew* / 256).  If the mas-
     ter does not advertise within three times this interval, this host will
     begin advertising as master.



-------------------------
Histórico: http://www.fug.com.br/historico/html/freebsd/
Sair da lista: https://www.fug.com.br/mailman/listinfo/freebsd


Mais detalhes sobre a lista de discussão freebsd