Disabling MAC Address Learning

 In certain fabric topologies, the MAC address learning function can be disabled in order to achieve better scalability, or because it is not strictly required (for example on point-to-point connections).

For these cases, starting from NetVisor OS release 6.0.0, it is possible to disable MAC address learning as part of the VXLAN configuration. For this purpose, a new configuration option is added, mac-learning | no-mac-learning, to the following commands:

  • tunnel-create
  • tunnel-modify
  • vtep-create
  • vtep-modify

In the above commands, mac-learning is the default setting. The tunnel-show and vtep-show commands are extended to display the learning state in a new column. For example:

CLI (network-admin@switch) > tunnel-create name tun1 scope local local-ip remote-ip vrouter-name vr1 no-mac-learning

CLI (network-admin@switch) > tunnel-show format name,local-ip,remote-ip,mac-learning,

name  local-ip  remote-ip mac-learning

----- -------- ---------- ------------

tun1     off

Then to re-enable MAC address learning, you can use:

CLI (network-admin@switch) > tunnel-modify name tun1 mac-learning

CLI (network-admin@switch) > tunnel-show format name,local-ip,remote-ip,mac-learning,

name  local-ip  remote-ip  mac-learning

----- -------- ---------- ------------

tun1     on

Similarly, in case of VTEP object creation to disable MAC address learning you can use:

CLI (network-admin@switch) > vtep-create name VTEP-01 location switch vrouter-name vr1 ip virtual-ip no-mac-learning

CLI (network-admin@switch) > vtep-show

scope  name    location vrouter-name    ip        virtual-ip  mac-learning

------ ------- -------- ------------ ----------- ----------- ------------

fabric VTEP-01  switch    vr1   off

To re-enable it:

CLI (network-admin@switch) > vtep-modify name VTEP-01 mac-learning

CLI (network-admin@switch) > vtep-show

scope  name    location vrouter-name   ip         virtual-ip  mac-learning

------ ------- -------- ------------ -----------  ----------- ------------

fabric VTEP-01  switch    vr1  on

Note: Disabling MAC address learning at the tunnel or VTEP level means that the learning function is disabled for all of the associated VNIs.