feature: Make nodes advertised targeted network routes to mesh.

Makes the nodes advertise using DHCP Options 121 and 249 routes to the mesh (10.0.0.0/8) and the reserved (172.16.0.0/12) address ranges.

This change allows directing systems to prefer the mesh node for mesh ranges unless another network rule is more specific (such as a directly connected network)
This is mostly useful where a PC may have multiple network connections active as it improves the desire for the packets to travel via the mesh network.

Currently the:

10.0.0.0/8 range is used by mesh nodes and dtdlinking of mesh nodes.
172.27.0.0/16 is used for default LAN network on NAT nodes.
172.33.0.0/16 is for ad-hoc tunnels

All others in the advertised range are reserved for future network use.
This commit is contained in:
Conrad Lara - KG6JEI 2015-03-27 11:30:52 -07:00
parent 097d62ae01
commit 0dbe83c61e
1 changed files with 3 additions and 0 deletions

View File

@ -4,6 +4,9 @@ config dhcp
option limit <dhcp_limit>
option leasetime 1h
option ignore <lan_dhcp>
list dhcp_option '121,10.0.0.0/8,<lan_ip>,172.16.0.0/12,<lan_ip>'
list dhcp_option '249,10.0.0.0/8,<lan_ip>,172.16.0.0/12,<lan_ip>'
config dhcp
option interface wan