VyOS: an engineer's command line
Day 0 — install. VyOS installs from its own ISO: write it to USB, boot the
live system, log in, run install image and answer its questions, then
reboot. LTS images are available to "Subscribers, contributors, non-profits,
emergency services, academic institutions"; anyone else installs a rolling or
Stream image. VyOS 1.5 has no web interface. Its release names the CLI, an
API, scripting, Terraform, Ansible and cloud-init as the ways to manage it,
and the local GUI and multi-router controller VyOS announced in 2021 have not
shipped. The IPoE server runs on VyOS's kernel data plane, because VyOS
refuses it on VPP interfaces (Round 2), so there are no hugepages, NIC binding
or CPU pinning to do. For an engineer who knows the CLI, VyOS's day 0 is as
short as Quantum's.
Day 1 — configure in the CLI. Everything is a set command in
configuration mode, then commit and save. VyOS's documented local-mode
example is ten commands: an access address, the IPoE interface and its VLAN
range, authentication mode local, a pool, a default pool, a gateway, and one
line per subscriber naming an interface and a MAC, with an optional VLAN and
download and upload rate. There is no plan object: a rate is typed on each
subscriber's line (Round Y). There is no bulk import beyond scripting the CLI
or its API.
Day 2 — every subscriber change is a commit. VyOS's documentation is
explicit: "Most configuration changes cannot be applied at runtime," and
"Every commit that changes the service ipoe-server configuration restarts
the server, which terminates all active IPoE sessions." In local mode the
subscriber base is that configuration, so adding a customer, changing a rate
or removing a MAC ends every session on the box. An ISP has to batch
subscriber changes into maintenance windows, or accept a box-wide drop with
each one (Round 2).
RADIUS mode moves the subscriber base off the box, so subscriber changes no
longer need a commit. But the provisioning tool, the plan mapping, the CoA
client that pushes a change to a live session, and the monitoring of that
chain are all the ISP's to build and run (Round X). In RADIUS mode, the
operator's console is whatever the ISP builds.
Diagnose. show ipoe-server sessions lists live sessions with their
interface, user name, address, MAC, rate limit, state, uptime and byte counts;
show ipoe-server statistics and show log ipoe-server add the server's
counters and log; reset ipoe-server session ends one session. Policer drops
are counted only in the tc statistics of the session's kernel interface
(Round 2). Rates, trends and packet captures come from the shell.
Delegate. VyOS has no user roles. Its documentation states that the
default user and "newly created user accounts, possess full system
configuration privileges," with sudo rights to run commands as root. The
operator level that once existed was removed as insecure in 2018. A
RADIUS-backed login either grants configuration rights (shell:priv-lvl=15)
or withholds them — users without it "cannot perform configuration tasks" —
and there is no level in between. API keys are the same: "Every key has the
same, full permissions on the system." A help-desk user who needs to look up
one customer gets either full control of the router or no useful access.
VyOS keeps commit comments and revisions, but has no audit view of who looked
at or changed which subscriber.
Watch. VyOS ships agents and exporters rather than dashboards: Telegraf to
InfluxDB, Prometheus, Splunk, Azure Data Explorer or Loki; Prometheus node,
FRR and blackbox exporters; a Zabbix agent; SNMP; NetFlow and IPFIX; and remote
syslog over TLS. The monitoring system, its dashboards and its alert rules are
the ISP's.
What VyOS gets right: configuration safety and lifecycle. This is VyOS's
strongest area, and it is real.
compareshows a pending change against the running, saved or any earlier
revision, andcommit commentrecords why it was made.commit-confirmapplies a change on probation. If it is not confirmed in
time (10 minutes by default), the system reverts, by default by rebooting to
the saved configuration.- 100 configuration revisions are kept on the box, and
commit-archivepushes
every commit to SCP, SFTP, HTTP(S), FTP, TFTP or git.rollbackto a
revision exists, though it "currently requires reboot." - Upgrades are image-based.
add system imageinstalls a new image beside the
old one and offers to carry the running configuration across; each image
keeps its own copy. Going back isset system image default-bootand a
reboot, and an automatic revert on a failed upgrade is available as an
option. - Automation is mature: an HTTP API and GraphQL, a VyOS-maintained Ansible
collection, and support for NAPALM, Netmiko, Salt and cloud-init. An
engineering team that runs routers as code can manage a fleet of VyOS boxes.
These protect an engineer's changes to the router. They do not change what a
subscriber change costs: a confirmed, archived commit to service ipoe-server
still restarts the IPoE server.