Table 215 Configuration Files And Shell Scripts In The Zywall - ZyXEL Communications Unified Security Gateway ZyWALL 300 User Manual

Unified security gateway
Hide thumbs Also See for Unified Security Gateway ZyWALL 300:
Table of Contents

Advertisement

Chapter 45 File Manager
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.

Table 215 Configuration Files and Shell Scripts in the ZyWALL

Configuration Files (.conf)
Resets to default configuration.
Goes into CLI Configuration mode.
Runs the commands in the configuration file.
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.
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.
"exit" or "!'" must follow sub commands if it is to make the ZyWALL exit sub
command mode.
Line 3 in the following example exits sub command mode.
interface ge1
ip address dhcp
!
Lines 1 and 3 in the following example are comments and line 4 exits sub command mode.
!
interface ge1
# this interface is a DHCP client
!
616
Shell Scripts (.zysh)
Goes into CLI Privilege mode.
Runs the commands in the shell script.
Figure 457 on page 615
as a shell script because the first
ZyWALL USG 300 User's Guide

Advertisement

Table of Contents
loading

Table of Contents