Merge pull request 'babeld local configuration interface' (#27) from mark22k/docs:babeld_interface into master

Reviewed-on: https://codeberg.org/CRXN/docs/pulls/27
This commit is contained in:
Marek Küthe 2023-01-11 07:39:16 +00:00
commit 92b2dcf4b5
1 changed files with 24 additions and 0 deletions

View File

@ -174,6 +174,28 @@ With the command `dump` you can display the current status:
```
dump
```
This should produce an output according to the following scheme:
```
add interface <interface> up true ipv6 <link-local>
```
The configured interfaces are displayed here. Here `<interface>` is the interface name and `<link-local>` is the own IPv6 link-local address.
```
add neighbour <nid> address <link-local> if <interface> reach ffff ureach 0000 rxcost <rxcost> txcost <txcost> cost <cost>
```
The babel neighbors are displayed here. Here `<nid>` is the router ID of the neighbor. `<link-local>` is the link-local address of the peer and `<interface>` is the interface over which the peer is connected. `<rxcost>` describes the amount of cost it takes to send data from the peer to us. These costs are set by us manually or automatically by babeld.
`<txcost>` describes the amount of cost it takes to send data to the peer. This value is set by the peer.
Information on how costs are calculated can be found in [RFC8966 3.4.3](https://www.rfc-editor.org/rfc/rfc8966#cost-computation) and [RFC8966 Appendix A](https://www.rfc-editor.org/rfc/rfc8966#name-cost-and-metric-computation).
```
add xroute <ownnet>-::/0 prefix <ownnet> from ::/0 metric 0
```
The networks that originate from us are displayed here. This should only be our own network. Here `<ownnet>` is the network we originate.
```
add route <nid> prefix <prefix> from ::/0 installed <installed> id <id> metric <rxcost> refmetric <neighbor> via <nexthop> if <interface>
```
The routes learned from the babel neighbors are displayed here. Here `<nid>` is the router ID of the neighbor and `<prefix>` is the prefix learned about the neighbor. `<installed>` is either `yes` or `no`. If `yes` the route was exported to the kernel, if `no` it was not. `<rxcost>` shows the cost of consuming to reach the prefix via this route. `<neighbor>` shows the cost our neighbor needs to reach the prefix. `<nexthop>` shows the nexthop, which is normally the IPv6 link-local address of our neighbor. `<interface>` shows the interface this route goes through. `<id>` is a unique ID to a route. The route keeps its ID until it is flushed.
## Further links
@ -183,5 +205,7 @@ dump
- [babeld FAQ](https://www.irif.fr/~jch/software/babel/faq.html)
- [babeld mailling list](https://alioth-lists.debian.net/pipermail/babel-users/)
- [babeld source code](https://github.com/jech/babeld)
- [RFC8966](https://www.rfc-editor.org/rfc/rfc8966)
- [Babel configuration by Réseau Libre](https://wiki.reseaulibre.ca/documentation/babel/)
- [Babel in Freifunk Franken (German)](https://wiki.freifunk-franken.de/w/Freifunk-Gateway_aufsetzen/babeld)