Command reference / comm

ADDTCPIFC

Add TCP/IP Interface

Adds a logical TCP/IP interface. An interface associates an IP address with a line description or another supported interface type.

Allowed environments: *ALL. Positional parameters: 3.

Parameters

INTNETADR INTNETADR

Sets an internet address that the local system responds to on this interface. The internet address may be an IPv4 or IPv6 address. An interface is associated with a line description.

Type
*CHAR
Required
Yes
Length
45
Case
Uppercase
*IP4DHCP
Enable Dynamic Host Configuration Protocol for the line description specified (LIND parameter).
*IP6SAC
Enable IPv6 stateless address auto-configuration for the line description specified (LIND parameter).
character-value
Enter a particular internet address. An IPv4 internet address is specified in the form nnn.nnn.nnn.nnn , where nnn is a decimal number ranging from 0 through 255.

LIND LIND

Enter the name of the line description associated with the new interface. The line description must exist before the TCP/IP interface can be added.

Type
*CHAR
Required
Yes
Length
10
Case
Uppercase

Suggested / special values: *LOOPBACK, *VIRTUALIP

Ethernet
The line description must be previously created with the Create Line Description (Ethernet) (CRTLINETH) command.
*LOOPBACK
The interface being changed is the loopback or LOCALHOST interface. Because processing associated with loopback does not extend to a physical line, there is no line description associated with a loopback address.
*VIRTUALIP
The virtual interface is a circuitless interface. It is used in conjunction with the associated local interface (LCLIFC) when adding standard interfaces. This special value is used to accommodate any of the following cases: Load balancing.
*OPC
This special value is used if a TCP/IP over OptiConnect interface is being added. This interface is attached to the optical bus (OptiConnect). INTNETADR must specify an IPv4 address.
name
Enter the name of the line description to be used for this interface. If INTNETADR specifies an IPv6 address or *IP6SAC, the line description must be for an Ethernet line. A line description name is required if INTNETADR is *IP4DHCP.
*NONE
This interface is not part of a virtual LAN or belongs to the native VLAN of the associated line.
1-4094
Enter the virtual LAN identifier of the associated line.

SUBNETMASK SUBNETMASK

Sets the subnet mask, which is a bit mask that defines the part of the network where this IPv4 interface attaches. The mask is a 32-bit combination that is logically ANDed with the IPv4 internet address to determine a particular subnetwork. The bits of the mask set to the value one (1) determine the network and subnetwork portions of the address. Note: The network portion must be equal to one bits in the subnetmask. The host portion of an address must be at least two bits wide.

Type
*CHAR
Required
No
Length
15
Case
Uppercase
*HOST
The subnet mask value used will be 255.255.255.255. Specify this value for use with Proxy ARP (Address Resolution Protocol).
character-value
Enter the mask for the network subnet field and host address field of the internet address that defines a subnetwork. The subnet mask is in the form nnn.nnn.nnn.nnn , where nnn is a decimal number ranging from 0 through 255.

AUTOSTART AUTOSTART

Controls whether the interface is automatically started when the TCP/IP stack is activated by the Start TCP/IP (STRTCP) command.

Type
*CHAR
Required
No
Default
*YES
Length
4
Case
Uppercase

Allowed values: *YES, *NO

*YES
The interface is automatically started when TCP/IP is started.
*NO
The interface is not started when TCP/IP is started. Note: The Start TCP/IP Interface (STRTCPIFC) command can be used to start an interface after TCP/IP has been started.

ADRPFXLEN ADRPFXLEN

Sets the address prefix length in bits. The address prefix length specifies how much of the leftmost portion of an IPv6 address is the subnet prefix. This parameter applies only if INTNETADR is an IPv6 address.

Type
*UINT4
Required
No
Range
1 to 128
Case
Uppercase
64
The default is 64 since most IPv6 unicast addresses have a 64 bit interface ID (address suffix).
1-128
Enter the address prefix length.

MTU MTU

Sets the maximum size (in bytes) of IP datagrams that can be transmitted through this interface. A datagram is a basic unit of information passed over an internet network. For an IPv4 interface, the minimum MTU value is 576 bytes. For an IPv6 interface, the minimum MTU value is 1280 bytes.

Type
*UINT4
Required
No
Default
*LIND
Range
576 to 16388
Case
Uppercase

Suggested / special values: *LIND

*LIND
The MTU is determined by the information specified in the line description. If *LIND is specified, the MTU is equal to the largest amount of data that can be transmitted on the line.
576-16388
Enter a value for the maximum transmission unit in bytes. The maximum MTU that can be specified for this interface depends on the type of physical connection to the network.
Ethernet 802.3
8992.
Ethernet Version 2
9000.

ALIASNAME Alias name

Sets a name that can be used in place of the internet address. The name must be unique among all of the interfaces on the system.

Type
*SNAME
Required
No
Length
25
Case
Uppercase
*NONE
No alias name is associated with the TCP/IP interface being added.
simple-name
Enter an alias for the interface. The alias name must be 25 characters or less.

TEXT TEXT

Sets text that briefly describes the interface.

Type
*CHAR
Required
No
Default
Length
50
Case
Mixed case
*BLANK
Leave the description blank.
character-value
Enter no more than 50 characters of text, enclosed in apostrophes.

Examples

ADDTCPIFC INTNETADR('130.14.3.5') LIND(COTTAGELAN) AUTOSTART(*NO) SUBNETMASK('255.255.255.0')

Let's assume that an Ethernet line has been created named COTTAGELAN using the CRTLINETH command, this command adds the interface 130.14.3.5 to the TCP/IP configuration.

ADDTCPIFC INTNETADR('123.17.5.1') LIND(ETHLINE) SUBNETMASK('255.255.255.0') ALIASNAME(TEST_NETWORK)

Will add a TCP/IP interface for the Ethernet line named ETHLINE. This interface will have the alias name TEST_NETWORK.

ADDTCPIFC INTNETADR('1234::5678:9abc:def') LIND(ETHLINE) ADRPFXLEN(32) DADMAXTRN(10) TEXT('Example 5 IPv6 interface')

Will add an IPv6 TCP/IP interface for the Ethernet line named ETHLINE.

ADDTCPIFC INTNETADR(*IP6SAC) LIND(ETHLINE) MTU(1280) IFCID(123456789abcdef0) DADMAXTRN(4) PVYEXT(*YES) TEXT('ETHLINE IPv6 SAC interface')

Will add an IPv6 stateless address auto-configuration interface for line ETHLINE.

ADDTCPIFC INTNETADR('192.168.2.3') LIND(ETHLINE1) SUBNETMASK('255.255.255.0')
ADDTCPIFC INTNETADR('192.168.2.2') LIND(ETHLINE2) SUBNETMASK('255.255.255.0')
ADDTCPIFC INTNETADR('192.168.2.1') LIND(*VIRTUALIP) SUBNETMASK('255.255.255.255') PREFIFC('192.168.2.2'  '192.168.2.3')

These commands add two IPv4 interfaces and an IPv4 virtual interface that has the first two interfaces as preferred IPv4 interfaces. Interface 192.168.2.2 is preferred over 192.168.2.3.

ADDTCPIFC INTNETADR(*IP6SAC) LIND(ETHLINE1)
ADDTCPIFC INTNETADR('1234::1111') LIND(ETHLINE2 33)
ADDTCPIFC INTNETADR('FE80::1') LIND(ETHLINE3)
ADDTCPIFC INTNETADR('1234::5678') LIND(*VIRTUALIP) ADRPFXLEN(64) PREFLIND(ETHLINE3 ETHLINE1 (ETHLINE2 33))

These commands add three IPv6 interfaces (ETHLINE2 has a virtual LAN with id 33 specified) and an IPv6 virtual interface that has the line descriptions specified by the first three interfaces to be used for VIPA proxy Neighbor Discovery agent selection.

IBM command documentation

Generated from os/cl/catalog/ADDTCPIFC.json and os/cl/help/ADDTCPIFC.json.