tcp(SFF)

tcp(SFF)


tcp -- default information for TCP/IP startup script

Format

# comments
keyword=value

Description

The tcp file (/etc/default/tcp) contains information that the TCP/IP start and stop script tcp(ADMN) reads when TCP/IP is started. Default values in /etc/tcp are overridden by the contents of /etc/default/tcp at system startup or when the tcp startup script is run.


CAUTION: The TCP start and stop script does not verify the accuracy of /etc/default/tcp entries. Displaced or malformed entries will cause TCP/IP to fail or start incorrectly; do not modify the order of the keywords. Whenever possible, use the appropriate graphical administrative interface rather than editing this file directly.

The following keywords can be defined.

System variables

DOMAIN=domain_name
System default domain name.

NETMASK=netmask
System netmask.

BROADCAST=broadcast_address
System broadcast address.

Values can be assigned to these variables during installation or using the Network Configuration Manager.


NOTE: The NETMASK and BROADCAST variables stored here are no longer read by the tcp startup script. They remain in this file for legacy purposes only.

Default route variables

GATEWAY=gateway_address
The default route; that is, the IP address of the gateway system to which network traffic is sent if this host does not have an explicit route for that traffic. For more information, see ``Default routes'' in the Networking Guide.

DFLTMETRIC="metric value [metric value]"
Default route metrics and values as specified in the route(ADMN) manual page. For example:

DFLTMETRIC="-hopcount 1 -mtu 1500"

DFLTMETRIC is optional and can remain empty. It is used only if the GATEWAY variable is set.

Values can be assigned to these variables using the Client Manager or the Internet Manager. When values are assigned, the tcp startup script performs the equivalent of:

route add default $GATEWAY $DFLTMETRIC

Router daemon variables

ROUTERDAEMON0-9="daemon_name options"
Executable file name for a router daemon with options. For example, to use routed with the -g option, set:

ROUTERDAEMON0="/etc/routed -g"

Valid values are:

Up to 10 ROUTERDAEMONx (0-9) variables can be set, each on a different line.


CAUTION: The configuration of multiple router daemons is only appropriate on router systems and should only be attempted by network administrators who are thoroughly familiar with IP routing.

An entry must be added manually to the /etc/default/tcp file before further configuration of the desired router daemon(s). Under most circumstances, if you set a GATEWAY, you do not set a routing daemon.

For more information, see Chapter 5, ``Configuring Internet Protocol (IP) routing'' in the Networking Guide.

DHCP variables

DHCP_CONFIG=interface_name
The network interface to which an IP address will be assigned by a Dynamic Host Configuration Protocol (DHCP) server. For example, to configure the net0 interface to receive an address from a DHCP server, set:

DHCP_CONFIG=net0

If left blank, none of the interfaces are configured for DHCP address allocation. Values can be assigned to this variable using the Network Configuration Manager.

Only one interface can be listed here for DHCP configuration; for information about configuring multiple interfaces, see the dhcpc(ADMN) manual page.

Files

/etc/default/tcp
full pathname of tcp

/etc/tcp
the TCP start and stop script

/etc/rc2.d/*
directory containing scripts run by /etc/rc2 when going to multiuser mode

/etc/rc0.d/*
directory containing scripts run by /etc/rc0 when shutting down the system

See also

route(ADMN), tcp(ADMN), tcp(ADMP), rc2(ADM), rc0(ADM).

SCO OpenServer Release 5.0.6A -- 5 February 2001