[prev in list] [next in list] [prev in thread] [next in thread]
List: openbsd-tech
Subject: [PATCH] renumber CARP virtual host ID range
From: Job Snijders <job () instituut ! net>
Date: 2014-05-08 13:33:03
Message-ID: 20140508133303.GB9366 () Eleanor ! local
[Download RAW message or body]
Hi all,
Following a discussion on the NANOG mailing regarding the overlap
between MAC addresses assigned to VRRP [1] and virtual host IDs as used
in the CARP protocol, it was suggested to use a range dedicated to CARP
[2]. Ytti assigned 74-66-30-FF-FE-00 .. 74-66-30-FF-FE-FF.
* Improve coexistence with other redundancy protocols
* Patch does not provide backwards compatibilty
Kind regards,
Job
[1]: http://www.iana.org/assignments/ethernet-numbers
[2]: http://mailman.nanog.org/pipermail/nanog/2014-May/066959.html
===================================================================
RCS file: /cvs/src/sys/netinet/ip_carp.c,v
retrieving revision 1.229
diff -u -r1.229 ip_carp.c
--- src/sys/netinet/ip_carp.c 30 Apr 2014 10:04:33 -0000 1.229
+++ src/sys/netinet/ip_carp.c 8 May 2014 13:18:50 -0000
@@ -1759,16 +1759,19 @@
carp_set_vhe_enaddr(struct carp_vhost_entry *vhe)
{
struct carp_softc *sc = vhe->parent_sc;
-
+
+ /* CARP MAC range donated by Saku Ytti
+ http://ytti.fi/.well-known/iru/obsd-carp.txt
+ */
if (vhe->vhid != 0 && sc->sc_carpdev) {
if (vhe->vhe_leader && sc->sc_balancing == CARP_BAL_IP)
- vhe->vhe_enaddr[0] = 1;
+ vhe->vhe_enaddr[0] = 0x75;
else
- vhe->vhe_enaddr[0] = 0;
- vhe->vhe_enaddr[1] = 0;
- vhe->vhe_enaddr[2] = 0x5e;
- vhe->vhe_enaddr[3] = 0;
- vhe->vhe_enaddr[4] = 1;
+ vhe->vhe_enaddr[0] = 0x74;
+ vhe->vhe_enaddr[1] = 0x66;
+ vhe->vhe_enaddr[2] = 0x30;
+ vhe->vhe_enaddr[3] = 0xff;
+ vhe->vhe_enaddr[4] = 0xfe;
vhe->vhe_enaddr[5] = vhe->vhid;
vhe->vhe_sdl.sdl_family = AF_LINK;
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic