Skip to content

Networking

Inspect the networks configured for a Jail:

Terminal window
doas sylve jails networks --ctid 101

Inside the interactive console:

jails networks 101

The table includes each network record’s ID, name, switch ID, switch type, DHCP state, and MAC address. The network record ID is separate from the Jail CTID and switch ID.

If no attachments exist, the command reports the Jail name and CTID rather than returning an empty table.

Use JSON for complete network records:

Terminal window
doas sylve jails networks --ctid 101 --json

Pass both the Jail CTID and the network record ID:

Terminal window
doas sylve jails rmnet --ctid 101 --net-id 7

The console uses positional identifiers:

jails rmnet 101 7

The current CLI can list and remove Jail network records. Adding or editing an attachment is not yet exposed in this command group, so use the web interface or HTTP API for those operations.

For interactive shells and non-interactive command execution, see Shell & Commands.