The Nix-vector routing protocol must be added to a list of routing protocols. It is important that list routing is utilized.
Example:
Ipv4NixVectorHelper nixRouting; Ipv4StaticRoutingHelper staticRouting;
Ipv4ListRoutingHelper list; list.Add (staticRouting, 0); list.Add (nixRouting, 10);
InternetStackHelper stack; stack.SetRoutingHelper (list); stack.Install (allNodes);
ref:https://www.nsnam.org/docs/release/3.18/doxygen/group__nixvectorrouting.html