{{define "content"}} {{with .Data}} {{$e := .Errors}}
Interfaces
{{range $i, $d := .Devices}}{{end}}
InterfaceMAC addressNameKindUsed as
{{if $d.Kernel}}{{$d.Kernel}}{{else}}{{$d.Name}}{{end}} {{if $d.MAC}}{{$d.MAC}}{{end}} {{if eq $d.Kind "VLAN"}} {{else}} {{if and $d.Kernel (ne $d.Kernel $d.Name)}}after the next reboot{{end}} {{end}} {{with index $e (printf "name[%d]" $i)}}{{.}}{{end}} {{$d.Kind}}{{if $d.Role}}{{$d.Role}}{{else}}unused{{end}} {{if $d.Removable}}{{end}}

A name is what Linux calls the interface: wan or lan instead of enp2s0, dmz instead of lan.1002. Cards are found by their MAC address. Linux cannot rename an interface that is in use: after you save and apply, the router starts using the new names at its next reboot. Clear a name to go back to the default.

Add a VLAN (a tagged network on one of the interfaces); it is then offered below.

System {{with index $e "hostName"}}{{.}}{{end}} {{with index $e "domain"}}{{.}}{{end}}

Optional. The router answers for it, publishes DHCP reservations in it, and clients get it as their search domain, so nas finds nas.home.example.org.

Uplink (WAN) {{with index $e "wan.interface"}}{{.}}{{end}}

PPPoE only:

{{with index $e "wan.pppoe.username"}}{{.}}{{end}} {{with index $e "wan.pppoe.password"}}{{.}}{{end}}
LANs {{with index $e "lans"}}

{{.}}

{{end}} {{range $i, $l := .Form.LANs}} {{range $f := list "name" "interface" "address" "prefix" "poolStart" "poolEnd"}}{{with index $e (printf "lans[%d].%s" $i $f)}}{{end}}{{end}} {{end}}
NameInterfaceAddressPrefixInternet accessIPv6DHCPPool startPool endRemove
{{if $l.Name}}{{end}}
{{$f}}: {{.}}

Fill in the last row to add a LAN. Other LAN settings (zones, a fixed IPv6 address) are kept; edit them under Advanced.

{{end}} {{end}}