Using the Command Line Interface Flashcards

1
Q

What are the two modes of vyos CLI?

A
operational mode ($)
configuration mode (#)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is operational mode used for?

A

perform operational system tasks and view system and service status

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is configuration mode used for?

A

allows for the modification of system configuration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How to get auto-complete for a command?

A

hit the tab key. For example typing sh followed by the [tab] key will complete to show. Pressing [tab] a second time will display the possible sub-commands of the show command.
Example showing possible show commands:

vyos@vyos:~$ show [tab]
Possible completions:
arp: Show Address Resolution Protocol (ARP) information
bridge Show bridging information
cluster Show clustering information
configuration Show running configuration
conntrack Show conntrack entries in the conntrack table
conntrack-sync
Show connection syncing information
date Show system date and time
dhcp Show Dynamic Host Configuration Protocol (DHCP) information
dhcpv6 Show status related to DHCPv6
disk Show status of disk device
dns Show Domain Name Server (DNS) information
file Show files for a particular image
firewall Show firewall information
flow-accounting
Show flow accounting statistics
hardware Show system hardware details
history show command history
host Show host information
incoming Show ethernet input-policy information
: q
vyos@vyos:~$

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How to enter configuration mode?

A

$ configure.

Note that the prompt changes from $ to #.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How to exit configuration mode?

A
# exit
Note that the prompt changes from # to $
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How to commit changes?

A
# commit
Note that once you enter on commit, the changes are  active.  BUT, if the router is rebooted, the changes are gone.  If want changes even after a reboot, need to run # save
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

How to save changes even after a router reboot

A

save

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How to show all configuration commands from operational mode?

A

$ show configuration commands
ex: vyos@vyos:~$ show configuration commands
set interfaces ethernet eth0 address ‘dhcp’
set interfaces ethernet eth0 hw-id ‘00:0c:29:44:3b:0f’
set interfaces loopback ‘lo’
set service ssh port ‘22’
set system config-management commit-revisions ‘20’
set system console device ttyS0 speed ‘9600’
set system login user vyos authentication encrypted-password ‘’
set system login user vyos level ‘admin’
set system ntp server ‘0.pool.ntp.org’
set system ntp server ‘1.pool.ntp.org’
set system ntp server ‘2.pool.ntp.org’
set system syslog global facility all level ‘notice’
set system syslog global facility protocols level ‘debug’
vyos@vyos:~$

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to exit configuration mode without applying changes

A
# exit discard
Note that configuration mode can not be exited while uncommitted changes exist.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In which file are all configurations stored?

A

config.boot

Note: This allows for easy template creation, backup, and replication of system configuration.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Configuration changes are mode primarily by two commands. What are they?

A

set and delete
Basically to view what is there, use Show
To add configuration, use set
To remove configuration, use delete

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Once done making configuration changes, what are the three main commands to run

A
# commit
# save
# exit
Note: Configuration mode can not be exited while uncommitted changes exist. To exit configuration mode without applying changes, the # exit discard command can be used.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly