Enabling advertise-pip on Cisco Nexus 9300
We recently had a case where we had some strange behaviour when moving a Cisco FTD to another KVM node. Suddenly it wouldn't route correctly to prefixes that where being routed on the Nexus platform.
Some research indicated that the routing went to towards the wrong member of the leaf-pair where it was silently dropped. In our BGP EVPN VXLAN setup it is necessary to advertise the leaf's ip instead of the virtual vpc ip for these routes. This can be achieved by enabling advertise-pip on the l2vpn bgp address family. Additionally we need to enable virtual-rmac on the leaf[1]. Configuration wise this is:
router bgp 64806
address-family l2vpn evpn
advertise-pip
!
interface nve 1
advertise virtual-rmac
Enabling this will make sure that L3 routes inside the EVPN are pointed towards the leafs instead of the virtual vpc pair ip.
We already had this enabled on 2 leaf pairs, but not on the other pairs that where also hosting KVM nodes, so we needed to enable this. Cisco is not really forthcoming about what the impact would be when we would enable this on the leaf pair. But we already had a few ideas what this might involve:
- vPC peer inconsistency triggers
- BGP routing inside L3 VRF's might see packetloss due to convergence
In theory this should not impact L2 over VXLAN, but it might impact potentially L2 over vPC port-channels if the inconsistency triggers.
We planned a maintenance window to test this and eventually implement on the remaining leafs.
The results where a bit as expected.
Configuring the above on the vPC primary will not impact anything on the primary. vPC Port-channels remain up, and we see a short nve1 restart but experienced no loss. However on the vPC secondary we will see the loopback for VXLAN go down, and all the port-channels will go down as a vPC inconsistency is triggered. Running the above commands on the secondary after will restore this behaviour.
Advised is to run the command as soon as possible after each other on vPC primary and secondary so that the port-channels will be recovering ASAP.
