Reference
static-networking feature
What it doesPermalink to What it does#
Static addresses, routes and name servers on one interface, set once the firewall is up.
Use itPermalink to Use it#
Import it from (vessel system features networking). This part of a system configuration uses it:
Example: feature-static-networking-example
(import (vessel system)
(vessel system features networking))
;; A fixed address on eth0. Routes are (destination . gateway) pairs.
(system-configuration
features:
(cons (static-networking-feature interface: "eth0"
addresses: '("192.0.2.10/24")
routes: '(("default" . "192.0.2.1"))
name-servers: '("192.0.2.1"))
%base-features))
Verified
A real system.sgl also sets the fields this example leaves out: the host name, kernel, boot loader and file systems. Every time the manual is built, it composes this configuration with Vessel's code and checks what the feature receives.
OptionsPermalink to Options#
Pass these keyword fields directly to the feature type. The optional name: keyword sets the instance name; a copy keeps it unless changed.
Option | Default | Type | Description |
|---|---|---|---|
| required | not available | not available |
|
| not available | not available |
|
| not available | not available |
|
| not available | not available |
What it addsPermalink to What it adds#
Its declared extensions target these feature types:
What it receivesPermalink to What it receives#
Nothing. Other feature types don't send it items.