D-Link DES-3326 Switch User Manual


 
DES-3326 Layer 3 Fast Ethernet Switch User’s Guide
B
SAMPLE CONFIGURATION FILE
This Appendix provides a sample configuration file that can be used with the Update Firmware and
Configuration Files screen in the console program.
The configuration file is a simple text file that you create. It has two functions: to point to the location of
a file on a TFTP server, and to set the IP address, subnet mask and default gateway for the switch. The
file being uploaded can be either new Runtime switching software, or a switch settings file which was
previously saved on the TFTP server using the Save settings to TFTP Server option in the System Utilities
menu. The IP address settings defined in the configuration file will override all other IP settings, even
those defined in the settings file being uploaded. This enables the settings from one switch to be
uploaded to another switch without their IP settings being the same (and thus coming into conflict).
Commands:
Code_type – this command tells the switch the type of file you wish to upload to the switch.
Possible Code_types are
PROM, RUNTIME, or CONFIG. This should always be the first setting.
PROM – PROM update file.
RUNTIME – Switching software update file.
CONFIG – Image file of switch settings created by the settings backup procedure.
Image_file – this command tells the switch the complete path and filename for the file to be
loaded into the switch. For example, “
e:\3326\3326prom.tfp”. Make sure double-quotes are
used as in the example file below.
Ip_addr – this is the IP address that will be assigned to the switch. This command is included for
downloading a configuration settings file to another switch. The IP address defined in this file will
override the IP address in the configuration settings file, thus the switch you are downloading to
can have a different IP address than the one that created the configuration settings file. An example
IP address is
10.12.19.102.
Subnet_mask – this is the subnet mask that will be assigned to the switch. An example subnet
mask is
255.128.0.0.
Default_gateway – this is the default gateway IP that will be assigned to the switch. An example
default Gateway IP is
10.254.254.253.
# – Remark. When placed as the first character on a line, the entire line will be ignored by the
switch. This allows items to be labeled, or unused commands to remain in the file so that the
syntax will not be forgotten.
264