Declarative network configuration
Configure your router in YAML.
Interfaces, addresses, routes, DHCP, DNS and firewall policy in one configuration. Review a plan, apply changes and inspect the running router.
apiVersion: routerd.net/v1alpha1
kind: Router
metadata:
name: example
spec:
resources:
- apiVersion: net.routerd.net/v1alpha1
kind: Interface
metadata:
name: lan
spec:
ifname: ens18
managed: true
adminUp: true
- apiVersion: net.routerd.net/v1alpha1
kind: IPv4StaticAddress
metadata:
name: lan-address
spec:
interface: lan
address: 192.0.2.1/24Adapt the interface and address to your host before applying.
From configuration to operation
Choose a starting point, understand the resources, and check the result.
01
Install and configure
Install a release, choose a configuration and prepare management access.
Read the setup guide →02Understand each resource
Find YAML definitions, configuration fields and resource references.
Open the resource reference →03Start with an example
Use a complete configuration as a starting point for your own network.
Browse the YAML examples →Inspect before applying.
Validate the YAML, review the planned changes and apply the complete configuration. Then check status and real connectivity. Use --replace only with a complete router configuration.
routerd validate --config router.yaml
routerctl plan -f router.yaml --replace
routerctl apply -f router.yaml --replace
routerctl get status