Chapter 39 File Manager

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

!

Lines 1 and 2 are comments. Line 5 exits sub command mode.

!this is from Joe

# on 2006/06/05 interface ge1 ip address dhcp

39.2.2Errors 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.

39.2.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.confconfiguration file of default settings.

When you change the configuration, the ZyWALL creates a startup-config.conffile of the current configuration.

The ZyWALL checks the startup-config.conffile for errors when it restarts. If there is an error in the startup-config.conffile, the ZyWALL copies the startup-config.confconfiguration file to the startup-config-bad.confconfiguration file and tries the existing lastgood.conf configuration file.

 

301

ZyWALL (ZLD) CLI Reference Guide