mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-21 22:17:53 +00:00
Improve network interface configuration doco
This commit is contained in:
parent
64699101b0
commit
534bf7a1a2
@ -275,27 +275,27 @@ interfaces and uses its `interfaces` configuration option to select which to
|
|||||||
ignore and which to use.
|
ignore and which to use.
|
||||||
|
|
||||||
For example, the following configuration will use any interface whose name
|
For example, the following configuration will use any interface whose name
|
||||||
starts with `eth` (eg, `eth0`, `eth1`) as a 230 MiB/s Ethernet on port 7333,
|
starts with `eth` (eg, `eth0`, `eth1`) on port 7333 and any interface whose
|
||||||
and any interface whose name starts with `wifi` or `wlan` but is not `wifi0` or
|
name starts with `wifi` or `wlan` but is not `wifi0` or `wlan0` as a [Wi-Fi][]
|
||||||
`wlan0` as a 1,000,000 B/s WiFi on the default port number:
|
on the default port number:
|
||||||
|
|
||||||
$ servald config set interfaces.0.match 'eth*' \
|
$ servald config set interfaces.0.match 'eth*' \
|
||||||
set interfaces.0.type ethernet \
|
set interfaces.0.type ethernet \
|
||||||
set interfaces.0.port 7333 \
|
set interfaces.0.port 7333 \
|
||||||
set interfaces.0.speed 230M \
|
|
||||||
set interfaces.1.match 'wifi0,wlan0' \
|
set interfaces.1.match 'wifi0,wlan0' \
|
||||||
set interfaces.1.exclude true \
|
set interfaces.1.exclude true \
|
||||||
set interfaces.2.match 'wifi*,wlan*' \
|
set interfaces.2.match 'wifi*,wlan*' \
|
||||||
set interfaces.2.type wifi \
|
set interfaces.2.type wifi
|
||||||
set interfaces.2.speed 1m
|
|
||||||
|
|
||||||
The following configuration is equivalent to the above example, but uses the
|
The following configuration is equivalent to the above example, but uses the
|
||||||
“legacy”, single-option syntax (see below):
|
“legacy”, single-option syntax (see below):
|
||||||
|
|
||||||
$ servald config set interfaces '+eth=ethernet:7333:230M,-wifi0,-wlan0,+wifi=wifi::1m,+wlan=wifi::1m'
|
$ servald config set interfaces \
|
||||||
|
'+eth=ethernet:7333,-wifi0,-wlan0,+wifi=wifi::1m,+wlan=wifi::1m'
|
||||||
|
|
||||||
The following two equivalent configurations use all available interfaces,
|
The following two equivalent configurations will use all available interfaces,
|
||||||
treating all as WiFi 1 MB/s (the default type and speed):
|
treating all as Wi-Fi (the default type) with a 400 µs inter-packet delay (the
|
||||||
|
default packet interval for Wi-Fi):
|
||||||
|
|
||||||
$ servald config set interfaces.0.match '*'
|
$ servald config set interfaces.0.match '*'
|
||||||
$ servald config set interfaces '+'
|
$ servald config set interfaces '+'
|
||||||
@ -365,10 +365,9 @@ unicast protocols immediately rather than waiting to detect that broadcast
|
|||||||
packets are not acknowledged.
|
packets are not acknowledged.
|
||||||
|
|
||||||
The `packet_interval` option controls the maximum rate at which packets are
|
The `packet_interval` option controls the maximum rate at which packets are
|
||||||
tramsmitted on the interface. It sets the *average* delay, in milliseconds,
|
tramsmitted on the interface. It sets the *average* delay in microseconds
|
||||||
between individual packets. Bursts of consecutive packets may be sent with no
|
between individual packets. This delay is only applied after a 5 ms burst of
|
||||||
delay up to a built-in maximum burst length that depends on the packet
|
consecutive packets with no delay.
|
||||||
interval.
|
|
||||||
|
|
||||||
The `mdp_tick_ms` option controls the time interval in milliseconds between
|
The `mdp_tick_ms` option controls the time interval in milliseconds between
|
||||||
MDB broadcast announcements on the interface. If set to zero, it disables MDP
|
MDB broadcast announcements on the interface. If set to zero, it disables MDP
|
||||||
@ -465,9 +464,8 @@ does not work on them. As a result the **servald** daemon main loop has
|
|||||||
slightly different behaviour and timing characteristics when a dummynet is in
|
slightly different behaviour and timing characteristics when a dummynet is in
|
||||||
use.
|
use.
|
||||||
|
|
||||||
If a dummy interface's PATH is not absolute (ie, does not start with `/`) then
|
If a dummy interface's `file` PATH is not absolute (ie, does not start with
|
||||||
the PATH is relative to the `server.dummy_interface_dir` config option if set,
|
`/`) then it is interpreted relative to the instance directory.
|
||||||
otherwise relative to the instance directory.
|
|
||||||
|
|
||||||
The following config options adorn a dummy interface with properties that real
|
The following config options adorn a dummy interface with properties that real
|
||||||
interfaces normally obtain directly from the operating system:
|
interfaces normally obtain directly from the operating system:
|
||||||
|
Loading…
Reference in New Issue
Block a user