
Introduction
73
IPLink Software Configuration Guide
7 • Configuration file handling
Figure 11
, shows the characteristics of a configuration file. It is stored on a TFTP server in the file
IP2805_001.cfg for later download to the IPLink. The command syntax used to enter commands with the CLI
and add commands in configuration files is identical. For better comprehension, you can add comments in
configuration files. To add a line with a comment to your configuration file, simply begin the line with the hash
(
#
) character. The command parser skips everything after the hash character to the end of the line.
#----------------------------------------------------------------#
# #
# 2805 #
# Factory configuration file #
# #
#----------------------------------------------------------------#
dns-relay
sntp-client
sntp-client server primary 129.132.2.21 port 123 version 4
profile napt NAPT
profile dhcp-server DHCP
network 192.168.1.0 255.255.255.0
include 1 192.168.1.10 192.168.1.99
lease 2 hours
default-router 1 192.168.1.1
domain-name-server 1 192.168.1.1
context ip router
interface eth0
ipaddress dhcp
use profile napt NAPT
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
interface eth1
ipaddress 192.168.1.1 255.255.255.0
tcp adjust-mss rx mtu
tcp adjust-mss tx mtu
context ip router
dhcp-server use DHCP
port ethernet 0 0
medium auto
encapsulation ip
bind interface eth0 router
no shutdown
port ethernet 0 1
medium auto
encapsulation ip
bind interface eth1 router
no shutdown
Figure 11. Sample configuration file