Skip to content

feat(appliance): show egress MAC on the console banner#532

Merged
aaronsb merged 1 commit into
mainfrom
feat/console-egress-mac
Jun 16, 2026
Merged

feat(appliance): show egress MAC on the console banner#532
aaronsb merged 1 commit into
mainfrom
feat/console-egress-mac

Conversation

@aaronsb

@aaronsb aaronsb commented Jun 16, 2026

Copy link
Copy Markdown
Owner

What

Add the egress interface's MAC address to the console-TUI banner, next to Web UI / Host mgmt / Hostname.

Why

To pin the appliance to a stable LAN IP you set a DHCP reservation, which needs the NIC's MAC. Surfacing it on the console (no SSH, no ip link hunting) makes that a self-service step — and the reservation is the prerequisite for a public DNS A-record + TLS hostname (ADR-105). Came straight out of dogfooding the zero-config appliance boot: the first thing you want after it grabs a DHCP lease is its MAC, to pin it.

How

egress_iface() / egress_mac() helpers (mirroring primary_ip()ip route get 1.1.1.1, then /sys/class/net/<if>/address); one banner line. Degrades to (unknown) if offline.

The console banner already lists Web UI / Host mgmt / Hostname; add the egress
interface's MAC so an operator can set a DHCP reservation (pin the appliance to
a stable IP) straight from the console — no SSH, no hunting through 'ip link'.
That reservation is the prerequisite for a public DNS A-record + TLS hostname
(ADR-105). Adds egress_iface()/egress_mac() helpers mirroring primary_ip().
@aaronsb aaronsb merged commit 1bcd0bb into main Jun 16, 2026
6 checks passed
@aaronsb aaronsb deleted the feat/console-egress-mac branch June 16, 2026 19:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant