[FUG-BR] CARP - Alta disponibilidade de ips /30

Luiz Gustavo luizgustavo em luizgustavo.pro.br
Quinta Abril 12 13:35:45 BRT 2012


Você setou o ip 192.168.2.48/30 nas duas maquinas, de cara ai já vai dar conflito de ip, somente dê um up na interface via rc.conf

ifconfig_em1="up"

deixe que o freevrrpd atribue o ip na interface, a comunicação que ele faz com o outro lado é via broadcast

On Thu, 12 Apr 2012 13:15:17 -0300
Alisson <alissongoncalves em bsd.com.br> wrote:

> seguindo a orientação de voces... fiz algumas alterações e instalei o
> freevrrp para os /30
> 
> veja como ficou no rc.conf do MASTER
> 
> ipv4_addrs_em0="192.168.1.44/25"
> ipv4_addrs_em1="192.168.2.48/30"
> 
> /usr/local/etc/freevrrpd.conf
> 
> #MASTER
> [VRID]
> serverid = 1
> interface = em1
> priority = 101
> addr = 192.168.2.49/30
> password = vrid1
> 
> veja como ficou no rc.conf do SLAVE
> 
> ipv4_addrs_em0="192.168.1.45/25"
> ipv4_addrs_em1="192.168.2.48/30"
> 
> /usr/local/etc/freevrrpd.conf
> 
> #SLAVE
> [VRID]
> serverid = 1
> interface = em1
> priority = 100
> addr = 192.168.2.49/30
> password = vrid1
> 
> e veja o erro do messages
> 
> Apr 12 12:10:55 master freevrrpd[4490]: initializing threads and all VRID
> Apr 12 12:10:55 master freevrrpd[4490]: reading configuration file
> /usr/local/etc/freevrrpd.conf
> Apr 12 12:10:55 master freevrrpd[4490]: cannot create an eiface/ether
> netgraph interface: Address already in use
> Apr 12 12:10:55 master kernel: ngeth5: link state changed to UP
> Apr 12 12:10:55 master kernel: ngeth5: link state changed to DOWN
> Apr 12 12:10:55 master freevrrpd[4490]: ng_ether.ko is probably not loaded,
> use kldload ng_ether.ko before running freevrrpd
> Apr 12 12:10:55 master freevrrpd[4490]: cannot create a virtual interface
> via netgraph: Address already in use
> Apr 12 12:10:55 master freevrrpd[4490]: check that ng_socket, ng_ether,
> ng_eiface and ng_bridge are loaded
> 
> 
> 
> 
> 
> 
> 
> Em 11 de abril de 2012 10:27, Luiz Gustavo
> <luizgustavo em luizgustavo.pro.br>escreveu:
> 
> > On Wed, 11 Apr 2012 09:59:34 -0300
> > Alisson <alissongoncalves em bsd.com.br> wrote:
> >
> > > isso que eu temia...
> > >
> > > entao quer dizer que se voce entrega um /30 para fazer um ponto a ponto
> > > para um cliente
> > >
> > > voce tera que entregar um /29
> > >
> > > nao tem outro jeito no FreeBSD?
> > >
> >
> > [root em desktop] /usr/ports# cat net/freevrrpd/pkg-descr
> > freevrrpd is a VRRP (Virtual Router Redundancy Protocol) implementation
> > daemon under FreeBSD, NetBSD and OpenBSD.
> > This daemon has been rewritten from scratch and is not based on
> > existing projects.  In this second public release, you can find:
> >
> >       * A daemon RFC 2338 Compliant adapted on FreeBSD systems
> >       * Implementation of Virtual Adresses
> >       * Support for multiples VRID
> >       * Master announce state by sending multicast packets via BPF
> >       * Changing routes and IP in 3 seconds
> >       * Doing gratuitous ARP requests to clean the cache of all hosts
> >       * Election between different slave servers
> >       * Same host can be Slave and Master at the same time
> >       * Automatic Downgrade to Slave if a Master is up again
> >       * Anti-Address Conflict system
> >       * Multi-threaded vrrp daemon
> >       * Plain text password authentication
> >       * Using now only one BPF device for all VRID
> >       * Support netmask for Virtual IP addresses
> >       * Support for monitored circuit and dependances between VRIDs
> >       * Support for VLAN pseudo devices under *BSD
> >
> > --
> > ---
> > Luiz Gustavo Costa (Powered by BSD)
> > *+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
> > mundoUnix - Consultoria em Software Livre
> > http://www.mundounix.com.br
> > ICQ: 2890831 / MSN: contato em mundounix.com.br
> > Tel: 55 (21) 4063-7110 / 8194-1905 / (11) 4063-0407
> > Blog: http://www.luizgustavo.pro.br
> >


-- 
---
Luiz Gustavo Costa (Powered by BSD)
*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+*+
mundoUnix - Consultoria em Software Livre
http://www.mundounix.com.br
ICQ: 2890831 / MSN: contato em mundounix.com.br
Tel: 55 (21) 4063-7110 / 8194-1905 / (11) 4063-0407
Blog: http://www.luizgustavo.pro.br


Mais detalhes sobre a lista de discussão freebsd