Difference between revisions of "CLI - Configuration Mode"

Line 36: Line 36:
  
 
=== loghost ===
 
=== loghost ===
It is the configuration for Syslog to log remotely. We term such remote log server "loghost".If there is the same "loghost", it overwrites to the new one.
+
Please refer to the [[CLI - Log]] section.
 
 
<pre>
 
LYSH@MyHostName# configure
 
configure# loghost add -h
 
usage: loghost add [-h] <A.B.C.D|WORD> [<[1-65535]>] [<[WORD]>]
 
</pre>
 
 
 
To send all logs to the remote server whose address is 192.168.0.100 and port is the default Syslog port(514).
 
<pre>
 
configure# loghost add 192.168.0.100
 
</pre>
 
 
 
To send all logs to the remote server whose address is 192.168.0.100 and port is 1000.
 
<pre>
 
configure# loghost add 192.168.0.100 1000
 
</pre>
 
 
 
To send logs whose level is greater than or equal to "notice" to the remote server whose address is 192.168.0.100 and port is 1000.
 
<pre>
 
configure# loghost add 192.168.0.100 1000 notice
 
</pre>
 
 
 
To verify loghost, enter the <code>show loghost</code> in the user mode.
 
<pre>
 
LYSH@MyHostName# show loghost
 
*.notice @192.168.0.100:1000
 
</pre>
 
  
 
=== nameserver ===
 
=== nameserver ===

Revision as of 11:30, 30 April 2021

You can add, change, or delete configuration variables in the Configuration Mode. You can enter the configuration mode using the configure command. To exit from the configuration mode, enter the exit command.
If you enter the help command in the configuration mode, you can see all commands of the mode.

LYSH@MyHostName# configure
configure# help

database

Please refer to the CLI - Database section.

datetime

Please refer to the CLI - NTP and datetime section.

dhcpv4, dhcpv6

Please refer to the CLI - Services(daemons) section.

fail2ban

Please refer to the CLI - fail2ban section.

failover

Please refer to the CLI - System Failover section.

hostname

Please refer to the CLI - Hostname section.

ip

Please refer to the CLI - Networking section.

log

Please refer to the CLI - Log section.

logexp

Please refer to the CLI - Services(daemons) section.

loghost

Please refer to the CLI - Log section.

nameserver

Plese refer to the CLI - Networking section.

netplan

You can apply the network configuration immediately.

LYSH@MyHostName# configure
configure# netplan apply

ntp

Please refer to the CLI - NTP and datetime section.

rtlog

Please refer to the CLI - Services(daemons) section.

system

Please refer to the CLI - System.

timezone

You can configure the timezone of the device.

LYSH@MyHostName# configure
configure# tiemzone

ufw

It is the default firewall configuration tool. Please refer to the CLI - ufw section.

user

Please refer to the CLI - User and Session section.

References