Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Sep 2011 09:56:55 -0700
From:      Freddie Cash <fjwcash@gmail.com>
To:        etherforet <etherforet@gmail.com>
Cc:        ports@freebsd.org, srn@k66.ru
Subject:   Re: freevrrpd
Message-ID:  <CAOjFWZ6udg8Hqh4R0gLU7A5mEiJJmG5o2vPruSs-NTjEPsxuFQ@mail.gmail.com>
In-Reply-To: <CA%2Bb=yhTCMoYej-h081uXgaujGynVV-voePOz-BTPaZd0Lo-y4g@mail.gmail.com>
References:  <redirect-543012606@k66.ru> <CA%2Bb=yhTCMoYej-h081uXgaujGynVV-voePOz-BTPaZd0Lo-y4g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Yes, the interface needs an IP configured on it, and both boxes need to be
on the same subnet.

However, the "real" IP doesn't have to be a routable IP, nor does it even
have to be in the same subnet as the virtual IP.

The "real" IP is just used for sending out the VRRP broadcasts and pings and
whatnot to determine which host is up, which is master, when a host fails,
etc.

On a test box, I've assigned all of the "real" IPs into 172.20.xxx.0/24
subnets (non-routable, RFC1918 addresses), where xxx is the same as the vlan
tag for the interface (it's a vlan routing box).  And then the
"virtual"/shared IPs are live, routable IPs.

So far, everything is working correctly.

It's really no different from the 0.9 setup.



On Fri, Sep 16, 2011 at 3:49 AM, etherforet <etherforet@gmail.com> wrote:

> Hi,all.
>
> for OLD FreeVRRPd 0.9x,settings example.
> --
>  box1: / etc / rc.conf
>  ifconfig_em0 = "inet 192.168.0.2 netmask 255.255.255.0"
>
>  box1: / usr / local / etc / freevrrpd.conf
>  [VRID]
>  serverid = 1
>  interface = em0
>  carriertimeout = 10
>  spanningtreelatency = 0
>  priority = 200
>  addr = 192.168.0.1/24
>  monitoredcircuits = yes
>  MCClearErrorsCount = 3600
>  masterscript = / usr / local / bin / master_script.sh
>  backupscript = / usr / local / bin / backup_script.sh
>  password = vrid1
>
>  -
>
>  box2: / etc / rc.conf
>  ifconfig_em0 = "inet 192.168.0.3 netmask 255.255.255.0"
>
>  box2: / usr / local / etc / freevrrpd.conf
>  [VRID]
>  serverid = 1
>  interface = em0
>  carriertimeout = 10
>  spanningtreelatency = 0
>  priority = 100
>  addr = 192.168.0.1/24
>  monitoredcircuits = yes
>  MCClearErrorsCount = 3600
>  masterscript = / usr / local / bin / master_script.sh
>  backupscript = / usr / local / bin / backup_script.sh
>  password = vrid1
>
> --
>  Can be set for the segment were the same.
>
> However, NEWer FreeVRRPd 1.0 is A real IP and you need to set up to
> another segment.
> # bug?
>
>  For example,
>  IP assigned to the real card of real IP
>  / etc / rc.conf
>  ifconfig_em0 = "inet 192.168.0.1 netmask 255.255.255.0"
>
>  Virtual IP assigned to the virtual card (assign ngether0: or n
>  / usr / local / etc / freevrrpd.conf
>  [VRID]
>  serverid = 1
>  interface = em0
>  carriertimeout = 10
>  spanningtreelatency = 0
>  priority = 200
>  addr = 192.168.1.1/24
>  monitoredcircuits = yes
>  MCClearErrorsCount = 3600
>  masterscript = / usr / local / bin / master_script.sh
>  backupscript = / usr / local / bin / backup_script.sh
>  password = vrid1
>
>  Needs to be set like this.
>  When using a local router is not a problem, would be a little trouble
> setting the scene for small segment of GLOBAL edge router.
> # I need 0.9x ;)
>
> 2011/8/26  <srn@k66.ru>:
> > Hello, my name is Mihail Suhorosov, Im from Russia and I use you port for
> > FreeBSD freevrrpd.(My BSD version is 8.2)
> >
> > I have some problem. I can't start this programm. My config is:
> > [VRID]
> > serverid = 1
> > interface = re0
> > priority = 255
> > addr = 10.50.40.8/32
> > #masterscript = /usr/local/bin/master_script.sh
> > #backupscript = /usr/local/bin/backup_script.sh
> > #password = vrid1
> >
> > After start I see in log:
> > Aug 26 17:31:52 tim freevrrpd[1687]: launching daemon in background mode
> > Aug 26 17:31:52 tim freevrrpd[1688]: initializing threads and all VRID
> > Aug 26 17:31:52 tim freevrrpd[1688]: reading configuration file
> > /usr/local/etc/freevrrpd.conf
> > Aug 26 17:31:52 tim freevrrpd[1688]: cannot create a bridge device: No
> such
> > file or directory
> > Aug 26 17:31:52 tim freevrrpd[1688]: aborting...
> >
> > So i think it cant connetct to interface. But why i dont know....
> > In my netcard i have alias 10.50.40.8
> >
> > Please help my))
> >
> > Bets whishes,
> >  Suhorosov Mihail.
> > _______________________________________________
> > freebsd-ports@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
> >
> _______________________________________________
> freebsd-ports@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-ports
> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org"
>



-- 
Freddie Cash
fjwcash@gmail.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAOjFWZ6udg8Hqh4R0gLU7A5mEiJJmG5o2vPruSs-NTjEPsxuFQ>