D-Link DES-3225G Switch User Manual


 
24-port NWay Ethernet Switch User’s Guide
154 Sample Configuration File
C
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:\3225\3225prom.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.
Notes about the Configuration File:
This configuration file can only contain 4 settings: Code_type, Ip_addr, Subnet_mask and
Default_gateway.
Each command can only appear once in the configuration file.