Re: CARP on 9.0 (was no subject)
On Fri, Aug 26, 2011 at 10:00 PM, Johan Hendriks wrote: > SOLVED! > > Was a typo in /etc/sysctl.conf > Sorry for the noise > > and thanks for your time. > > regards > Johan > > Van: owner-freebsd-curr...@freebsd.org [owner-freebsd-curr...@freebsd.org] > namens Johan Hendriks [jo...@double-l.nl] > Verzonden: vrijdag 26 augustus 2011 20:22 > Aan: Brian Seklecki (Mobile); freebsd-questions@freebsd.org > CC: freebsd-curr...@freebsd.org > Onderwerp: RE: CARP on 9.0 (was no subject) > > >How about: > > >%sudo netstat -s carp > > >...on both machines. > > >A few years ago I submitted (or maybe it was Steve Polyack) a patch to add > >debugging to CARP, not sure if it ever got commited. > > >Need-more-Cisco'sih-Debugging. > > >~BAS > > > >On Fri, 26 Aug 2011, Patrick Lamaiziere wrote: > > >> Le Fri, 26 Aug 2011 15:26:28 +, > >> Johan Hendriks a ?crit : > >> > >>> I am trying to set up CARP under 9.0 > >> > >> ... > >> > >>> Also with a higer value like advskew 200 or 254 the role of the > >>> servers stays the same. > >> > >> Ok, there is something wrong so. > >> > >> Did you check that the sysctl net.inet.carp.suppress_preempt is equal > >> to zero ? If yes, I don't have any more idea. > >> > >> Regards. > > Hello > first off all thanks for your time. > > sysctl -a | grep carp on both machines give me the following output > > sysctl -a | grep carp > device carp > net.inet.ip.same_prefix_carp_only: 0 > net.inet.carp.allow: 1 > net.inet.carp.preempt: 0 > net.inet.carp.log: 2 > net.inet.carp.arpbalance: 0 > net.inet.carp.suppress_preempt: 0 > > > netstat -s on the master > > carp: >260 packets received (IPv4) >0 packets received (IPv6) >0 packets discarded for wrong TTL >0 packets shorter than header >0 discarded for bad checksums >0 discarded packets with a bad version >0 discarded because packet too short >0 discarded for bad authentication >0 discarded for bad vhid >0 discarded because of a bad address list >11430 packets sent (IPv4) >0 packets sent (IPv6) >0 send failed due to mbuf memory error > > netstat -s on the slave > > carp: >11735 packets received (IPv4) >0 packets received (IPv6) >0 packets discarded for wrong TTL >0 packets shorter than header >0 discarded for bad checksums >0 discarded packets with a bad version >0 discarded because packet too short >0 discarded for bad authentication >0 discarded for bad vhid >0 discarded because of a bad address list >448 packets sent (IPv4) >0 packets sent (IPv6) >0 send failed due to mbuf memory error > > tcpdump -i bge0 on slave > > 20:10:48.868200 IP 192.168.50.40 > vrrp.mcast.net: VRRPv2, Advertisement, > vrid 1, prio 50, authtype none, intvl 1s, length 36 > > Here the advskew is set to 50, on the slave it is 20. > So the slave should be the master. > if i raise the advskew to 254, i see the change in the capture. > > Both machines are fresh install with nothing changed on them so far just a > fresh build from a csup this morning. > And installed bash as the shell.. > > for freebsd-current@ the /etc/rc.conf file again > Master > ifconfig_bge0="inet 192.168.50.40 netmask 255.255.255.0" > defaultrouter="192.168.50.150" > # CARP > cloned_interfaces="carp0" > ifconfig_carp0="vhid 1 advskew 10 pass letmepass 192.168.50.45 netmask > 255.255.255.0" > > On the slave i have the following in /etc/rc.conf > ifconfig_bge0="inet 192.168.50.41 netmask 255.255.255.0" > defaultrouter="192.168.50.150" > # CARP > cloned_interfaces="carp0" > ifconfig_carp0="vhid 1 advskew 20 pass letmepass 192.168.50.45 netmask > 255.255.255.0" > > regards, > Johan > > > > ___ > freebsd-curr...@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" > ___ > freebsd-curr...@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscr...@freebsd.org" > ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: CARP on 9.0 (was no subject)
>Le Fri, 26 Aug 2011 18:22:37 +, >Johan Hendriks a écrit : >> net.inet.carp.preempt: 0 >You said it was equal to 1 on both machines. It should be at 1. Luckely i used the slave for that. :D I need to work on my copy paste techniques. The master had indeed net.inet.carp.preempt=1 in the sysctl file. The slave however was mangled to inet.inet.carp.preempt=1 in the sysctl file I proberbly het the i twice in vi before the paste. I will sit in the corner and write myself 1000 lines. I will not fall in the copy/paste trap as all GUI users!!! I will not fall in the copy/paste trap as all GUI users!!! I will ... And i will not use copy/paste for that :D Thanks again for your time. It works as advertised now. Thanks again. Regards Johan Hendriks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: CARP on 9.0 (was no subject)
Le Fri, 26 Aug 2011 18:22:37 +, Johan Hendriks a écrit : > net.inet.carp.preempt: 0 You said it was equal to 1 on both machines. It should be at 1. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
RE: CARP on 9.0 (was no subject)
>How about: >%sudo netstat -s carp >...on both machines. >A few years ago I submitted (or maybe it was Steve Polyack) a patch to add >debugging to CARP, not sure if it ever got commited. >Need-more-Cisco'sih-Debugging. >~BAS >On Fri, 26 Aug 2011, Patrick Lamaiziere wrote: >> Le Fri, 26 Aug 2011 15:26:28 +, >> Johan Hendriks a ?crit : >> >>> I am trying to set up CARP under 9.0 >> >> ... >> >>> Also with a higer value like advskew 200 or 254 the role of the >>> servers stays the same. >> >> Ok, there is something wrong so. >> >> Did you check that the sysctl net.inet.carp.suppress_preempt is equal >> to zero ? If yes, I don't have any more idea. >> >> Regards. Hello first off all thanks for your time. sysctl -a | grep carp on both machines give me the following output sysctl -a | grep carp device carp net.inet.ip.same_prefix_carp_only: 0 net.inet.carp.allow: 1 net.inet.carp.preempt: 0 net.inet.carp.log: 2 net.inet.carp.arpbalance: 0 net.inet.carp.suppress_preempt: 0 netstat -s on the master carp: 260 packets received (IPv4) 0 packets received (IPv6) 0 packets discarded for wrong TTL 0 packets shorter than header 0 discarded for bad checksums 0 discarded packets with a bad version 0 discarded because packet too short 0 discarded for bad authentication 0 discarded for bad vhid 0 discarded because of a bad address list 11430 packets sent (IPv4) 0 packets sent (IPv6) 0 send failed due to mbuf memory error netstat -s on the slave carp: 11735 packets received (IPv4) 0 packets received (IPv6) 0 packets discarded for wrong TTL 0 packets shorter than header 0 discarded for bad checksums 0 discarded packets with a bad version 0 discarded because packet too short 0 discarded for bad authentication 0 discarded for bad vhid 0 discarded because of a bad address list 448 packets sent (IPv4) 0 packets sent (IPv6) 0 send failed due to mbuf memory error tcpdump -i bge0 on slave 20:10:48.868200 IP 192.168.50.40 > vrrp.mcast.net: VRRPv2, Advertisement, vrid 1, prio 50, authtype none, intvl 1s, length 36 Here the advskew is set to 50, on the slave it is 20. So the slave should be the master. if i raise the advskew to 254, i see the change in the capture. Both machines are fresh install with nothing changed on them so far just a fresh build from a csup this morning. And installed bash as the shell.. for freebsd-current@ the /etc/rc.conf file again Master ifconfig_bge0="inet 192.168.50.40 netmask 255.255.255.0" defaultrouter="192.168.50.150" # CARP cloned_interfaces="carp0" ifconfig_carp0="vhid 1 advskew 10 pass letmepass 192.168.50.45 netmask 255.255.255.0" On the slave i have the following in /etc/rc.conf ifconfig_bge0="inet 192.168.50.41 netmask 255.255.255.0" defaultrouter="192.168.50.150" # CARP cloned_interfaces="carp0" ifconfig_carp0="vhid 1 advskew 20 pass letmepass 192.168.50.45 netmask 255.255.255.0" regards, Johan ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: CARP on 9.0 (was no subject)
How about: %sudo netstat -s carp ...on both machines. A few years ago I submitted (or maybe it was Steve Polyack) a patch to add debugging to CARP, not sure if it ever got commited. Need-more-Cisco'sih-Debugging. ~BAS On Fri, 26 Aug 2011, Patrick Lamaiziere wrote: Le Fri, 26 Aug 2011 15:26:28 +, Johan Hendriks a ?crit : I am trying to set up CARP under 9.0 ... Also with a higer value like advskew 200 or 254 the role of the servers stays the same. Ok, there is something wrong so. Did you check that the sysctl net.inet.carp.suppress_preempt is equal to zero ? If yes, I don't have any more idea. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: CARP on 9.0 (was no subject)
Le Fri, 26 Aug 2011 15:26:28 +, Johan Hendriks a écrit : > I am trying to set up CARP under 9.0 ... > Also with a higer value like advskew 200 or 254 the role of the > servers stays the same. Ok, there is something wrong so. Did you check that the sysctl net.inet.carp.suppress_preempt is equal to zero ? If yes, I don't have any more idea. Regards. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
CARP on 9.0 (was no subject)
I am trying to set up CARP under 9.0 I want to know if my assumptions are right. The master is the server with the lowest advskew, and has the state MASTER, as where the slave will be in state BACKUP. If the master fails, the slave will be promoted to MASTER. If the master comes backup, the Master wil be Master again, and the slave falls back to BACKUP. At least this is what i think should be the case. I now set up 2 FreeBSD 9.0 Beta1 machines. One master, and one slave. /etc/rc.conf on the master ifconfig_bge0="inet 192.168.50.40 netmask 255.255.255.0" defaultrouter="192.168.50.150" # CARP cloned_interfaces="carp0" ifconfig_carp0="vhid 1 advskew 10 pass letmepass 192.168.50.45 netmask 255.255.255.0" On the slave i have the following in /etc/rc.conf ifconfig_bge0="inet 192.168.50.41 netmask 255.255.255.0" defaultrouter="192.168.50.150" # CARP cloned_interfaces="carp0" ifconfig_carp0="vhid 1 advskew 20 pass letmepass 192.168.50.45 netmask 255.255.255.0" And on bothe machines i set net.inet.carp.preempt=1 In my assumption, if i raise the advskew value on the master, i could let them flip role’s So doing ifconfig carp0 advskew 30 on the master should change roles. However it does not happen Ifconfig on the master carp0: flags=49 metric 0 mtu 1500 inet 192.168.50.45 netmask 0xff00 nd6 options=29 carp: MASTER vhid 1 advbase 1 advskew 30 Ifconfig on the slave carp0: flags=49 metric 0 mtu 1500 inet 192.168.50.45 netmask 0xff00 nd6 options=29 carp: BACKUP vhid 1 advbase 1 advskew 20 So even with the higher advskew value the master stays master. Am i doing something wrong. Also with a higer value like advskew 200 or 254 the role of the servers stays the same. Regards, Johan Hendriks ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"