set config

Use the set config command to configure or display entries in the network parameters configuration table, which holds

Anyone can use the set config command to display entries in the network configuration table. Root privileges are required to use this command to configure entries.

Command Syntax

Configuration Syntax: PortServer TS 8/16

Enter the set config command as shown below to add and change entries in the network parameter configuration table.

set config [dhcp={on|off}] [dns=ip_addr] [domain=domain] [gateway=ip_addr] [ip=ip_addr] [myname=name] [realport=tcp_port#] [redirect={listen|ignore}] [save={on|off}] [sockets=socket#] [submask=mask] [tbreak={std|any|none}]

Configuration Syntax: Digi One RealPort, PortServer TS 2/4

Enter the set config command as shown below to add and change entries in the network parameter configuration table.

set config [boothost=ip_addr] [bootfile=file] [dhcp={on|off}] [dns=ip_addr] [domain=domain] [gateway=ip_addr] [ip=ip_addr] [myname=name] [nameserv=ip_addr] [ramsize=show] [realport=tcp_port#] [redirect={listen|ignore}] [romversion=show] [save={on|off}] [sockets=socket#] [submask=mask] [tbreak={std|any|none}] [tftpboot=yes|no|smart] 

Display Syntax

Enter the set config command as shown below to display entries in the network parameter configuration table.

set config

Command Fields

Command Field

Description

boothost The IP address of a host from which the device/terminal server can boot via TFTP.
bootfile The name of a boot file on a TFTP host. See the host system administrator to determine whether it is necessary to specify the full path to satisfy the TFTP implementation on the host.
dhcp

Enable/disable DHCP (Dynamic Host Configuration Protocol). Enabling DHCP causes the PortServer to obtain an IP address from the host server. If DHCP is disabled, a static IP address must be defined for the PortServer, using the set config command's ip option.

on - enable DHCP (default)

off - disable DHCP

dns Specifies the IP address of a domain name server. Cannot be changed if dhcp=on.

domain

Specifies the name of the device/terminal server domain. Cannot be changed if dhcp=on.

gateway

Specifies the IP address of the default gateway. Cannot be changed if dhcp=on.

ip

The device/terminal server IP address. The device/terminal server can obtain this address from a RARP (Reverse Address Resolution Protocol) server if:

  • A RARP server is available on the LAN
  • The device/terminal server Ethernet and IP address mappings have been entered on the RARP server

The IP address cannot be changed if dhcp=on.

myname

Specifies the device/terminal server DNS name. Cannot be changed if dhcp=on.

nameserv Specifies the IP address of a name server in the device/terminal server domain.
ramsize=show Displays the amount of RAM the device/terminal server is equipped with.

redirect

listen - means the device/terminal server accepts ICMP routing redirect messages. Use this option, only if you have not configured the PortServer to forward RIP packets.

ignore - means the device/terminal server discards ICMP routing redirect messages.

The default is ignore.

realport Specifies the TCP port number used for RealPort connections. This port number is used by RealPort to establish connections.

The default is 771.

romversion=show Displays the version of the firmware in the device/terminal server.
save

on - saves configuration changes in flash memory (default).

off - configuration changes are discarded when the PortServer is turned off or reset.

sockets Sets a socket service other than the default of 2000.

submask

Specifies the subnet mask for the device/terminal server subnetwork. Cannot be changed if dhcp=on.

tbreak

Sets the telnet break keystroke.

Once a telnet connection is initiated but before the connection is established, the connection can be broken by entering a designated keystroke. This keystroke is determined by these tbreak settings.

std - configures tbreak so only <Ctrl-C> will break a telnet connection

Example: set config tbreak=std

any - configures tbreak so any keystroke will break a telnet connection

Example: set config tbreak=any

none - configures tbreak so no keystroke will break a telnet connection 

Example: set config tbreak=none

The default is std.

tftpboot

yes - always boot from the boot host specified in the boothost field.

smart - attempt to boot from the boot host specified in the boothost field. If the attempt fails, boot from the ROM in the device/terminal server.

no - boot from the ROM in the device/terminal server.

Command Examples

Displaying the Complete Table

In this example, the set config command displays the network parameter configuration table.

set config