Hello, Terry,
I tried to understand how the MESH Mode works. in what case do we set the Mesh Mode to Gateway and Client? Any document for this point?
Also, in a simple mesh network with a single gateway, there is no real point in setting up the Mesh Gateway and Client modes.
These settings are really only useful if you are running a more complex mesh with multiple gateways.
It is probably better (and simpler) just to leave the Mesh Gateway setting to "Off" on all nodes.
Having them set will not in itself cause a problem, but it is just one more setting that has to be correct on every node.
This setting activates the batman-adv DHCP request intercept handling, which is the mechanism used to route data requests to the appropriate gateway on the mesh. For a simple mesh this is unnecessary, and it is one more setting that has to be correct on every node to avoid issues.
For example, if one node is not set to Client mode, then DHCP requests from devices connected to that node will not be handled correctly, which can lead to lots of debugging effort trying to work out what is wrong.
Best Regards
Edwin Chen