Add route_protocol option

To be able to distinguish routes from several running l2tpns instances.
This commit is contained in:
Samuel Thibault 2025-03-29 13:03:39 +01:00
parent 44b01d70c6
commit b793850d2f
5 changed files with 37 additions and 18 deletions

View file

@ -232,6 +232,18 @@ otherwise the primary address of the machine.</p>
<dd>
<p>Address to send to clients as the default gateway.</p>
</dd>
<dt><code>route_protocol</code> (short)</dt>
<dd>
<p>Protocol number to record when adding a route (see
<code>/usr/share/iproute2/rt_protos</code>). This allows to separate
routes added by several l2tpns instances. The default is 42.</p>
</dd>
<dt><code>ipv6_prefix</code> (ipv6 address)</dt>
<dd>
<p>Enable negotiation of IPv6. This forms the the first 64 bits of the
client allocated address. The remaining 64 come from the allocated IPv4
address and 4 bytes of 0s.</p>
</dd>
<dt><code>send_garp</code> (boolean)</dt>
<dd>
<p>Determines whether or not to send a gratuitous ARP for the
@ -330,12 +342,6 @@ from the master.</p>
<p>Determines the minimum number of up to date slaves required before
the master will drop routes (default: 1).</p>
</dd>
<dt><code>ipv6_prefix</code> (ipv6 address)</dt>
<dd>
<p>Enable negotiation of IPv6. This forms the the first 64 bits of the
client allocated address. The remaining 64 come from the allocated IPv4
address and 4 bytes of 0s.</p>
</dd>
</dl>
<h3 id="config-startup-bgp">BGP</h3>
<p>BGP routing configuration is entered by the command: router bgp as