ZyXEL Communications ZyWALL 1000 Benutzerhandbuch
Chapter 45 File Manager
ZyWALL USG 1000 User’s Guide
616
While configuration files and shell scripts have the same syntax, the ZyWALL applies
configuration files differently than it runs shell scripts. This is explained below.
configuration files differently than it runs shell scripts. This is explained below.
You have to run the example in
command is run in Privilege mode. If you remove the first command, you have to run the
example as a configuration file because the rest of the commands are executed in
Configuration mode.
example as a configuration file because the rest of the commands are executed in
Configuration mode.
45.1.1 Comments in Configuration Files or Shell Scripts
In a configuration file or shell script, use “#” or “!” as the first character of a command line to
have the ZyWALL treat the line as a comment.
Your configuration files or shell scripts can use “exit” or a command line consisting of a single
“!” to have the ZyWALL exit sub command mode.
have the ZyWALL treat the line as a comment.
Your configuration files or shell scripts can use “exit” or a command line consisting of a single
“!” to have the ZyWALL exit sub command mode.
"
“exit” or “!'” must follow sub commands if it is to make the ZyWALL exit sub
command mode.
command mode.
Line 3 in the following example exits sub command mode.
Lines 1 and 3 in the following example are comments and line 4 exits sub command mode.
Table 215 Configuration Files and Shell Scripts in the ZyWALL
Configuration Files (.conf)
Shell Scripts (.zysh)
•
Resets to default configuration.
•
Goes into CLI Configuration mode.
•
Runs the commands in the configuration file.
•
Goes into CLI Privilege mode.
•
Runs the commands in the shell script.
interface ge1
ip address dhcp
!
ip address dhcp
!
!
interface ge1
# this interface is a DHCP client
!
interface ge1
# this interface is a DHCP client
!