Unified Security Gateway User's Guide
Chapter 45 File Manager
ZyWALL USG 300 User’s Guide
617
Lines 1 and 2 are comments. Line 5 exits sub command mode.
45.1.2 Errors in Configuration Files or Shell Scripts
When you apply a configuration file or run a shell script, the ZyWALL processes the file line-
by-line. The ZyWALL checks the first line and applies the line if no errors are detected. Then
it continues with the next line. If the ZyWALL finds an error, it stops applying the
configuration file or shell script and generates a log.
You can change the way a configuration file or shell script is applied. Include
setenv stop-
on-error off
in the configuration file or shell script. The ZyWALL ignores any errors in
the configuration file or shell script and applies all of the valid commands. The ZyWALL still
generates a log for any errors.
45.1.3 ZyWALL Configuration File Details
You can store multiple configuration files on the ZyWALL. You can also have the ZyWALL
use a different configuration file without the ZyWALL restarting.
• When you first receive the ZyWALL, it uses the system-default.conf configuration file of
default settings.
• When you change the configuration, the ZyWALL creates a startup-config.conf file of
the current configuration.
• The ZyWALL checks the startup-config.conf file for errors when it restarts. If there is an
error in the startup-config.conf file, the ZyWALL copies the startup-config.conf
configuration file to the startup-config-bad.conf configuration file and tries the existing
lastgood.conf configuration file.
• When the ZyWALL reboots, if the startup-config.conf file passes the error check, the
ZyWALL keeps a copy of the startup-config.conf file as the lastgood.conf configuration
file for you as a back up file. If you upload and apply a configuration file with an error,
you can apply lastgood.conf to return to a valid configuration.
45.1.4 Configuration File Flow at Restart
If there is not a startup-config.conf when you restart the ZyWALL (whether through a
management interface or by physically turning the power off and back on), the ZyWALL uses
the system-default.conf configuration file with the ZyWALL’s default settings.
If there is a startup-config.conf, the ZyWALL checks it for errors and applies it. If there are
no errors, the ZyWALL uses it and copies it to the lastgood.conf configuration file. If there is
an error, the ZyWALL generates a log and copies the startup-config.conf configuration file to
the startup-config-bad.conf configuration file and tries the existing lastgood.conf
configuration file. If there isn’t a lastgood.conf configuration file or it also has an error, the
ZyWALL applies the system-default.conf configuration file.
! this is from Joe
# on 2006/06/05
interface ge1
ip address dhcp
!