Modify hop punishment use batman-adv, batctl can not be modified hop_penalty

batman-adv write tq calculated when the need to use a variable hop_penalty, namely hop punishment. When forwarding OGM package will be multiplied by TQ hop_penalty, and if the receiving port is the interface if output is wifi, will go on a hop_penalty.

If batctl command installed, you can directly modify the command hop_penalty, but note that this modification is temporary modifications, will be restored after a system reboot. https://www.open-mesh.org/projects/batman-adv/wiki/Tweaking

But sometimes even after the batctl command also appears willing to be installed output batctl found no modifications hop_penalty related commands. This time we can go directly to the / sys / class / net / bat0 / modify hop_penalty mesh file directory, such as vim / sys / class / net / bat0 / mesh / hop_penalty.

 

Guess you like

Origin www.cnblogs.com/zornlink/p/11770792.html