Linux:VyOS: Difference between revisions

From Cheatsheet
Jump to navigationJump to search
(Created page with "Category:Cheatsheet == Commandline == === Basics === <syntaxhighlight lang='bash'> # Enter configuration mode configure # Commit changed configuration to RAM commit # Discard uncommitted changes discard # Save committed changes save # Exit the configuration mode exit </syntaxhighlight> <pre> # Use ? to list available parameters for a command: vyos@vyos# set Possible completions: > cluster Clustering > container Container applications > firewall F...")
 
Line 37: Line 37:
=== Common ===
=== Common ===
<syntaxhighlight lang='bash'>
<syntaxhighlight lang='bash'>
# Configure a hostname for this router
set system host-name LinuxRouter
# Configure DNS servers
# Configure DNS servers
set system name-server 176.9.37.132
set system name-server 176.9.37.132

Revision as of 14:54, 7 September 2024


Commandline

Basics

# Enter configuration mode
configure

# Commit changed configuration to RAM
commit

# Discard uncommitted changes
discard

# Save committed changes
save

# Exit the configuration mode
exit
# Use ? to list available parameters for a command:
vyos@vyos# set
Possible completions:
 > cluster      Clustering
 > container    Container applications
 > firewall     Firewall
 > high-availability
                High availability settings
 > interfaces   Network interfaces
...
...

Configuration

Common

# Configure a hostname for this router
set system host-name LinuxRouter

# Configure DNS servers
set system name-server 176.9.37.132
set system name-server 195.10.195.195

SSH

Enable SSH by configuring a port to listen on
set service ssh port <port>

# Optionally set an IP to listen on
set service ssh listen-address 192.168.77.202