title: VyOS breadcrumbs:
As VyOS is Debian-based, the Linux router notes are also highly related.
See Installation (VyOS).
vyos
and password vyos
.install image
to run the permanent installation wizard.
/opt/vyatta/etc/config.boot.default
default config file.An example of a full configuration. Except intuitive stuff I forgot to mention.
vyos
and password as set in the installation (or vyos
if using the live media).
set console keymap
configure
$
to #
.<host-name>.<domain-name>
should be an FQDN.set system host-name <hostname>
set system domain-name <domain-name>
set system name-server <ip-address>
(for each server)set system time-zone Europe/Oslo
(Norway)delete system ntp <server>
(for each server)set system ntp server ntp.justervesenet.no
(example)set system options ctrl-alt-del-action reboot
(or ignore
)set system login user <username> authentication plaintext-password "<password>"
(remember quotation marks if it contains spaces)delete system login user vyos
set protocols static route[6] <0.0.0.0/0|::/0> next-hop <next-hop>
(for IPv4 and IPv6)set protocols static route[6] <prefix> blackhole
(for IPv4 and IPv6)set service lldp interface all
set service ssh
set firewall source-validation strict
set all-ping enable
set broadcast-ping disable
set receive-redirects disable
set ipv6-receive-redirects disable
set ip-src-route disable
set ipv6-src-route disable
set log-martians disable
set send-redirects disable
set firewall state-policy established action accept
set firewall state-policy related action accept
set firewall state-policy invalid action drop
-4
and -6
to avoid conflict.ethtool -K <if> gro on
ethtool -K <if> gro on
ethtool -K <if> sg on
/config/scripts/vyos-postconfig-bootup.script
.commit
and save
.$
) after logging in. Enter "configuration mode" (#
) using the configure
command.?
to show alternatives and tab to auto-complete.run
to run operational mode commands in configuration mode.show log [tail]
show interfaces
show ip routes
and show ipv6 routes
show
commit
commit-confirm [comment <comment>] [minutes]
, then confirm
within X minutes when you've verified that the changes are working as intended. Not confirming in time will cause the system to reboot.save
Reboot the device and wait for the boot screen. In the boot screen, select the "lost password change (KVM)" option. It will boot to into a prompt asking you to set a new password. After setting a new password, the device will automatically reboot.
{% include footer.md %}