Command reference / comm

ADDTCPRTE

Add TCP/IP Route

Adds an entry to the TCP/IP routing table so traffic for a specified destination can use a selected next hop.

Allowed environments: *ALL. Positional parameters: 4.

Parameters

RTEDEST RTEDEST

Sets the route destination being added.

Type
*CHAR
Required
Yes
Length
45
Case
Uppercase

Suggested / special values: *DFTROUTE

*DFTROUTE
Sets that a default IPv4 route is being added. A default route is used by the system to send data to a remote destination for which a specific route is not defined.
*DFTMCAST
Use the *DFTMCAST special value to indicate that the static IPv4 route you are adding is a default multicast route. A default multicast route is used by an application when sending data to a multicast destination address and a specific outgoing interface is not specified.
*DFT6ROUTE
Sets that a default IPv6 route is being added. A default IPv6 route is used by the system to send data to a remote IPv6 destination for which a specific route is not defined. If *DFT6ROUTE is specified, ADRPFXLEN must specify *NONE.
*DFT6MCAST
Sets that a default IPv6 multicast route is being added. A default IPv6 multicast route is used by an application when sending data to a IPv6 multicast destination address and a specific outgoing physical interface is not specified.
character-value
Enter the route destination being added.

SUBNETMASK SUBNETMASK

Sets a bit mask that identifies to TCP/IP which bits of the value specified for the route destination (RTEDEST) compose the network and subnet portions of the internet address. By defining the network portion and subnetwork portion of the RTEDEST address, the subnet mask also defines which bits of the RTEDEST address make up the host portion.

Type
*CHAR
Required
No
Length
15
Case
Uppercase

Suggested / special values: *NONE

*NONE
No subnet mask is used. A subnet mask is not used when specifying default routes. For example, when RTEDEST(*DFTMCAST) or RTEDEST(*DFTROUTE) is specified, SUBNETMASK(*NONE) must also be specified.
*HOST
The internet address value specified in the route destination field is a host address. The subnetmask value is calculated to be 255.255.255.255.
character-value
Enter the mask of the subnet field. The internet address is in the form nnn.nnn.nnn.nnn , where nnn is a decimal number ranging from 0 through 255.

TOS TOS

Sets the type of service to be used. The type of service defines how the internet hosts and routers should make trade-offs between throughput, delay, reliability, and cost.

Type
*CHAR
Required
No
Default
*NORMAL
Length
10
Case
Uppercase

Allowed values: *NORMAL, *MINDELAY, *MAXTHRPUT, *MAXRLB, *MINCOST

*NORMAL
Normal service is used for delivery of data.
*MINDELAY
Minimize delay means that prompt delivery is important for data on this connection.
*MAXTHRPUT
Maximize throughput means that a high data rate is important for data on this connection.
*MAXRLB
Maximize reliability means that a higher level of effort to ensure delivery is important for data on this connection.
*MINCOST
Minimize monetary cost means that lower cost is important for data on this connection.

NEXTHOP NEXTHOP

Sets the internet address of the next system (gateway) on the route.

Type
*CHAR
Required
Yes
Length
45
Case
Uppercase
character-value
Enter the 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.

MTU MTU

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

Type
*UINT4
Required
No
Default
*IFC
Range
576 to 65535
Case
Uppercase

Suggested / special values: *IFC

*IFC
For an IPv4 route, the maximum transmission unit (MTU) is the MTU of the interface that is associated with this route.
576-16388
Enter a value for the maximum transmission unit in bytes. The maximum MTU that can be specified for this route depends on the type of physical connection to the network.
Ethernet 802.3
8992.
Ethernet Version 2
9000.

TEXT TEXT

Sets text that briefly describes the route.

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

ADDTCPRTE RTEDEST('132.65.8.0') SUBNETMASK('255.255.255.0') TOS(*MINDELAY) NEXTHOP('148.92.6.40') MTU(*IFC)

Specifies the following for this route: A route destination of a class B network. Subnetting through the third octet. A minimum delay type of service for the interface.

ADDTCPRTE RTEDEST('9.10.45.0') SUBNETMASK('255.255.255.0') TOS(*MAXRLB) NEXTHOP('9.5.11.128') MTU(1994) TEXT('Route with specific MTU')

Specifies the following for this route: A route destination of a class A network. Subnetting through the third octet. A maximum reliability type of service for the interface.

ADDTCPRTE RTEDEST(*DFTROUTE) SUBNETMASK(*NONE) TOS(*MINCOST) NEXTHOP('186.49.126.108') MTU(*IFC)
ADDTCPRTE RTEDEST(*DFTROUTE) SUBNETMASK(*NONE) TOS(*NORMAL) NEXTHOP('129.65.34.98') MTU(576)

These commands specify that: Two default routes are used for this host. Data may be routed over either default route.

ADDTCPRTE RTEDEST('1234::') ADRPFXLEN(16) NEXTHOP('5678::1234') BINDLIND(ETHLINE 123) MTU(*IFC)

Specifies the following: A route to IPv6 subnetwork 1234::/16 (route destination of 1234:: and ADRPFXLEN of 16). A next hop of 5678::1234.

ADDTCPRTE RTEDEST(*DFT6ROUTE) ADRPFXLEN(*NONE) NEXTHOP('1212::3434') BINDLIND(ETHLINE2) MTU(1280)

Specifies the following: A default IPv6 route. A next hop of 1212::3434. The route is to be bound to line description ETHLINE2. An MTU value of 1280.

ADDTCPRTE RTEDEST('AAAA::BBBB') ADRPFXLEN(*HOST) NEXTHOP('3434::1212') BINDLIND(ETHLINE3) TEXT('IPv6 host route')

Specifies the following: A route to IPv6 host address AAAA::BBBB. A next hop of 3434::1212. The route is to be bound to line description ETHLINE3. A text description is specified for the route.

IBM command documentation

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