Skip to content

How to check all configuration on VyOS

To check all configuration on VyOS 2025 rolling release, you can use these commands:

In Operational Mode

View the entire running configuration:

show configuration

View configuration as set commands:

show configuration commands

This displays the configuration in a format that can be copied and pasted as commands.

View configuration in JSON format:

show configuration json

View configuration with default values:

show configuration all

In Configuration Mode

Enter configuration mode first:

configure

Then use:

show

This displays the entire configuration tree.

Show specific sections:

show interfaces
show protocols
show service
show system

Additional Useful Commands

Compare saved vs running config:

compare saved

Show configuration differences:

compare

Save configuration to a file:

save /config/backup.txt

The most common command you’ll use is simply show configuration in operational mode, which gives you a clean, hierarchical view of your entire system configuration.

Ah, my apologies! That syntax doesn’t work in VyOS. Here are the correct ways to save your configuration to a file:

In Operational Mode (exit config mode first)

Save to a custom location:

save /config/backup.txt

Or use standard output redirection:

show configuration commands > /config/backup.txt

To Export Configuration

From operational mode:

show configuration commands | cat > /config/backup.txt

Or simply:

show configuration commands | tee /config/backup.txt

The Standard Save Command

The basic save command (without arguments) saves to the default location:

save

This saves to /config/config.boot

Save with a custom filename in /config:

save backup-filename

This saves to /config/backup-filename.boot

The issue with your command was that the save command in VyOS configuration mode is specifically for saving the configuration to the boot file, not for redirecting piped output. Use standard shell redirection (> or | tee) instead when you want to save command output to a file.

Published inUncategorized

Be First to Comment

Leave a Reply