End TCP/IP Interface (ENDTCPIFC)

Where allowed to run: All environments (*ALL)
Threadsafe: No
Parameters
Examples
Error messages

The End TCP/IP Interface (ENDTCPIFC) command is used to end a Transmission Control Protocol/Internet Protocol (TCP/IP) interface. When an interface is ended with this command, datagrams addressed to the IP addresses associated with this interface will no longer be accepted. However, the operation of any other TCP/IP or IP over SNA interface that is using the same line description as the the interface being ended is not affected.

This command can be used to end an interface that was previously started by the Start TCP/IP Interface (STRTCPIFC) or Start TCP (STRTCP) command.

Use this command to end all TCP/IP interfaces prior to ending TCP/IP. Also, use this command to end all TCP/IP interfaces prior to varying off a device, controller, or line associated with TCP/IP. Failure to do so may cause unpredictable results.

Notes on Route to Interface Binding

Interfaces define direct routes to networks or subnetworks that this system is directly attached to. Routes define the indirect routes. An indirect route defines the next hop on the path to a network or subnetwork that this system is not directly attached to.

Indirect routes are bound to interfaces using a best match first algorithm. This algorithm is based on the state of the interface and on the type of service (TOS) specified for the route and interface. When ending an interface, the routes associated with the interface can move to another existing active interface. This provides the widest available level of connectivity.

Top

Parameters

Keyword Description Choices Notes
INTNETADR Internet address Character value Optional, Positional 1
ALIASNAME Alias name Simple name Optional
Top

Internet address (INTNETADR)

Specifies the internet address of an interface that had previously been added to the TCP/IP configuration with the Add TCP/IP Interface (ADDTCPIFC) command and which had been previously started by the STRTCPIFC or STRTCP command. The internet address is specified in the form nnn.nnn.nnn.nnn, where nnn is a decimal number ranging from 0 through 255. An internet address is not valid if it has a value of all binary ones or all binary zeros for the network identifier (ID) portion or the host ID portion of the address. If the internet address is entered from a command line, the address must be enclosed in apostrophes.

Note: Either the INTNETADR or the ALIASNAME parameter should be specified for the command, but not both of them.

character-value
Specify the internet address associated with the interface to be ended.
Top

Alias name (ALIASNAME)

Specifies the name of an interface that had previously been added to the TCP/IP configuration with the Add TCP/IP Interface (ADDTCPIFC) command and which had been previously started by the STRTCPIFC or STRTCP command. The alias name specified must be for an IPv4 interface. If the alias name is for an IPv6 interface, an error message will be returned.

Note: Either the INTNETADR or the ALIASNAME parameter should be specified for the command, but not both of them.

simple-name
Specify the name of the interface to be ended.
Top

Examples

Example 1: Ending an X.25 Interface

ENDTCPIFC   INTNETADR('9.5.11.125')

This command causes the TCP/IP protocol stack to deactivate (end) the interface associated with the internet address 9.5.11.125.

Example 2: Ending a Token-Ring Interface

ENDTCPIFC   INTNETADR('156.93.81.7')

This command causes the TCP/IP protocol stack to deactivate (end) the interface associated with the internet address 156.93.81.7.

Example 3: Ending a Token-Ring Interface using an Alias Name

ENDTPCIFC   ALIASNAME(TEST_NETWORK)

This command causes the TCP/IP protocol stack to deactivate (end) the interface associated with the alias name TEST_NETWORK.

Top

Error messages

*ESCAPE Messages

TCP1B15
Line description &2 unusable. Internal errors encountered.
TCP1B61
Unable to determine if &1 interface ended.
TCP1B62
Cannot determine if &1 interface ended.
TCP1B65
&2 interface not ended. Reason &1.
TCP1B71
&1 interface not ended.
TCP1B72
&1 interface not ended. &1 interface is not active.
TCP1B73
&1 interface not ended. &1 interface not defined in the TCP/IP configuration.
TCP1B74
&1 interface not ended. Line description &2 not found.
TCP1B85
Unable to submit request to end interface &1.
TCP265F
INTNETADR parameter value &2 not valid.
TCP265F
INTNETADR parameter value &2 not valid.
TCP9999
Internal system error in program &1.
Top