]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
interfaces: default to use of a local administered MAC address for bonds
authorVincent Bernat <vincent@bernat.im>
Sat, 10 May 2014 15:32:10 +0000 (17:32 +0200)
committerVincent Bernat <vincent@bernat.im>
Sat, 10 May 2014 15:32:10 +0000 (17:32 +0200)
Since in the default configuration, some swicthes (Cisco on IOS 15.x)
will complain about MAC addresses flapping when using `configure system
bond-slave-src-mac-type fixed`, and some other switches (still Cisco)
will complain when using `configure system bond-slave-src-mac-type
fixed`, we change the default to `local`. This is not the safest option
but the probability of having a collision is quite low.

Usually, locally administered addresses are used for VM but they are
taken from a known prefix and we are unlikely to have a collision with
this prefix. On VM, we will fallback to a fixed address but hopefully,
the switch will be a virtual one which won't have a problem with the
fixed address.

NEWS
src/client/lldpcli.8.in
src/daemon/lldpd.c

diff --git a/NEWS b/NEWS
index 3cb894b06ae20e2101d35edca0702c880783021c..bfe394fc2c9a759d8fe2bb8aca9a6a8ce4d21352 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -7,7 +7,8 @@ lldpd (0.7.9)
       to get the previous locations, lldpd should be configured with
       `./configure --localstatedir=/var`.
   * Fixes:
-    + Fix `configure system bond-slave-src-mac-type local`
+    + Fix `configure system bond-slave-src-mac-type local`. Also use
+      it as default.
 
 lldpd (0.7.8)
   * Fixes:
index 5b964b056530c586ec0fa7283f9fd459d0166ce2..7933bab63ec3693ec4d341f002f2060273ca5053 100644 (file)
@@ -251,21 +251,21 @@ An arbitrary fixed value
 .Li ( 00:60:08:69:97:ef )
 .It Sy local
 Real mac with locally administered bit set. If the real mac already
-has the locally administered bit set, default to the fixed value.
+has the locally administered bit set, fallback to the fixed value.
 .El
 .Pp
 Default value for
 .Nm bond-slave-src-mac-type
 is
-.Nm fixed .
-Some switches may complain about flapping MAC addresses. In thise case, switch to either
-.Sy zero
-or
-.Sy local .
-Note that there is a slight change that the address generated by
+.Nm local .
+Some switches may complain when using one of the two other possible
+values (either because
+.Li 00:00:00:00:00:00
+is not a valid MAC or because the MAC address is flapping from one
+port to another). Using
 .Sy local
-can be found somewhere else in your network. This is why this is not
-the default value.
+might lead to a duplicate MAC address on the network (but this is
+quite unlikely).
 .Ed
 
 .Cd configure med fast-start
index 4276f4ee399332364e14a793ebda1f2b9208b707..116c02cf6c5699f4f0d9ee0cfeba8cd989f33a82 100644 (file)
@@ -1533,7 +1533,7 @@ lldpd_main(int argc, char *argv[], char *envp[])
        cfg->g_snmp_agentx = agentx;
 #endif /* USE_SNMP */
        cfg->g_config.c_bond_slave_src_mac_type = \
-           LLDP_BOND_SLAVE_SRC_MAC_TYPE_FIXED;
+           LLDP_BOND_SLAVE_SRC_MAC_TYPE_LOCALLY_ADMINISTERED;
 
        /* Get ioctl socket */
        log_debug("main", "get an ioctl socket");