Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

LAN Range Configuration

The default LAN subnet is 172.20.30.0/24 with the gateway at 172.20.30.1. To change this, use the config:lan-range mise task, which updates all configuration files in a single command.

Usage

mise run config:lan-range \
  --gateway-cidr 10.50.0.1/24 \
  --dhcp-start 10.50.0.10 \
  --dhcp-end 10.50.0.254

What it Updates

The task modifies four files to keep the LAN configuration consistent:

FileWhat Changes
modules/networking.nixeth1 static Address
modules/lan-gateway.nixdnsmasq dhcp-range, gateway DHCP option (3), NTP DHCP option (42), chrony allow subnet
scripts/os-verification.shExpected eth1 IP in health checks

After Changing

Rebuild:

mise run check
mise run build

Constraints

  • Only /24 subnets are currently supported
  • DHCP start and end addresses must be within the specified subnet
  • The gateway address (first part of --gateway-cidr) is used as the static IP for eth1