add docs to create static route

Signed-off-by: Marek Küthe <m.k@mk16.de>
This commit is contained in:
Marek Küthe 2023-01-07 20:45:40 +01:00
parent a22e2b6350
commit 902bc69ae6
No known key found for this signature in database
GPG Key ID: 7E869146699108C7
1 changed files with 13 additions and 0 deletions

View File

@ -106,3 +106,16 @@ The filter `redistribute local` filters routes which are imported by the kernel
The `install` filter filters routes that are installed into the kernel.
By default, all filters are set to `allow`. So all routes are accepted.
### Setting up the static routes
In order for babeld to know and propagate your own prefix, it must be statically defined. In bird you can do this with the `protocol static`. babeld takes its routing information from the kernel routing table. Therefore there must be a static route to its own prefix in the kernel routing table.
This can be created with the following command:
```
ip route add unreachable <OWNNET> proto static
```
This route does not survive a reboot (volatile).
You can delete it with the following command:
```
ip route del <OWNNET>
```