Displays the routing information that this stack uses when it determines what addresses it can communicate with and over which links or interfaces and first hops the communication takes place. The routes in the stack main routing table can be displayed, as well as the routes in the stack policy-based routing tables. These routes can be static routes (those defined in the TCP/IP profile for the main route table and those defined to the Policy Agent for policy-based route tables), routes learned from routing daemons, and routes learned by other ICMP or ICMPv6 information, such as redirects. If there is no route that covers the destination IP address and if there is no default route defined, then this stack cannot communicate with that destination. Multiple routes to the same destination, referred to as multipath routes, are also displayed. If multipath is not enabled (on the IPCONFIG or IPCONFIG6 statement for the main route table and on the RouteTable policy statement for policy-based route tables), then the first active route to the destination is always used.
Tip: Static routes over deleted interfaces are removed from the main routing table and therefore do not appear in reports that are generated for the main routing table. Loopback routes are displayed as well as implicit (HOME list) routes.
.------------------------. V | >>---+--------------------+-+---------------------------------->< +-ADDRTYPE--+-IPV4-+-+ | '-IPV6-' | +-DETAIL-------------+ +-IQDIO--------------+ +-PR--+-ALL----+-----+ | '-prname-' | +-QDIOACCEL----------+ +-RADV---------------+ '-RSTAT--------------'
This parameter is mutually exclusive with the QDIOACCEL and IQDIO parameters.
Provide the report for a specific TCP/IP address space by using TCp tcpname. See The Netstat command target for more information about the TCp parameter.
The default output option displays the output on the user's terminal. For other options, see The TSO NETSTAT command syntax or Netstat command output.
.------------------------. V | >>---+--------------------+-+---------------------------------->< +-ADDRTYPE--+-IPV4-+-+ | '-IPV6-' | +-DETAIL-------------+ +-IQDIO--------------+ +-PR--+-ALL----+-----+ | '-prname-' | +-QDIOACCEL----------+ +-RADV---------------+ '-RSTAT--------------'
Provide the report for a specific TCP/IP address space by using -p tcpname. See The Netstat command target for more information about the TCp parameter.
The default output option displays the output to z/OS UNIX shell stdout. For other options, see The z/OS UNIX netstat command syntax or Netstat command output.
The IPAddr/-I filter value can be a complete string or a partial string using wildcard characters. A wildcard character can be an asterisk (*), which matches a null string or any character or character string, at the same position. A wildcard character can be a question mark (?), which matches any single character at the same position. For example, a string "searchee" matches with "*ar?he*", but the string "searhee" does not match with "*ar?he*". If you want to use the wildcard character on the IPAddr/-I filter, you must specify the value in the ipaddr format. The wildcard character is not accepted for the ipaddr/prefixlen or ipaddr/subnetmask format of IPAddr/-I values.
When you use z/OS UNIX netstat/onetstat command in a z/OS UNIX shell environment, take care if you use a z/OS UNIX MVS special character in a character string. It might cause an unpredictable result. To be safe, if you want to use a z/OS UNIX MVS special character in a character string, surround the character string with single (') or double (") quotation marks. For example, to use an asterisk (*) in the IP address, 10.*.0.0 for the -I filter, issue the command as: netstat -r -I '10.*.0.0' or netstat -r -I "10.*.0.0".
NETSTAT ROUTE
Display the routing information the default stack will use when it determines what
addresses it can communicate with and over which links/interfaces and first hops the
communication will take place. If the stack is IPv6-enabled, then both IPv4 and IPv6
routing information are displayed.
NETSTAT ROUTE TCP TCPCS6
Display the routing information the TCPCS6 stack will use when it determines what
addresses it can communicate with and over which links/interfaces and first hops the
communication will take place. If the TCPCS6 stack is IPv6-enabled, then both IPv4 and
IPv6 routing information are displayed.
NETSTAT ROUTE TCP TCPCS8 (IPADDR 9.43.1.1 9.43.2.2
Display the routing information in the TCPCS8 stack whose destination address match
the specified filter IP address values.
NETSTAT ROUTE ADDRTYPE IPV4
Display the IPv4 routing information the default stack will use when it determines
what addresses it can communicate with and over which links/interfaces and first hops
the communication will take place.
netstat -r
netstat -r -p tcpcs6
netstat -r -p tcpcs8 -I 9.43.1.1 9.43.2.2
netstat -r ADDRTYPE IPV4
The following examples are generated by using TSO NETSTAT command. Using the z/OS UNIX netstat command displays the data in the same format as the TSO NETSTAT command.
NETSTAT ROUTE or
NETSTAT ROUTE ADDRTYPE IPV4
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:24:09
Destination Gateway Flags Refcnt Interface
----------- ------- ----- ------ ---------
Default 9.67.115.65 UGS 0000000002 OSAQDIOLINK
9.67.115.65/32 0.0.0.0 UHS 0000000000 OSAQDIOLINK
9.67.115.69/32 0.0.0.0 UH 0000000000 OSAQDIOLINK
127.0.0.1/32 0.0.0.0 UH 0000000002 LOOPBACK
NETSTAT ROUTE DETAIL
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:03:13
Destination Gateway Flags Refcnt Interface
----------- ------- ----- ------ ---------
Default 9.67.115.1 UGS 0000000000 OSAQDIO5L
Metric: 00000001 MTU: 1496
MVS Specific Configured Parameters:
MaxReTransmitTime: 120.000 MinReTransmitTime: 0.500
RoundTripGain: 0.125 VarianceGain: 0.250
VarianceMultiplier: 2.000 DelayAcks: Yes
NETSTAT ROUTE RSTAT
MVS TCP/IP NETSTAT CS V2R1 TCPIP NAME: TCPCS 17:40:36
IPv4 Destinations
Destination Gateway Interface
----------- ------- ---------
9.67.1.9/32 0.0.0.0 OSA00LINK1
NETSTAT ROUTE QDIOACCEL
MVS TCP/IP NETSTAT CS V2R1 TCPIP NAME: TCPCS 09:51:02
Destination Gateway Interface
----------- ------- ---------
9.67.1.9/32 0.0.0.0 LIQDIO1
9.67.5.10/32 0.0.0.0 OSAQDIO5L
NETSTAT ROUTE PR prtable1
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:24:09
Policy Routing Table: prtable1
IgnorePathMtuUpdate: Yes MultiPath: Conn(Policy)
DynamicXCFRoutes: No
Dynamic Routing Parameters
Interface NextHop
--------- -------
OSAQDIOLINK 9.67.115.65
Destination Gateway Flags Refcnt Interface
----------- ------- ----- ------ ---------
Default 9.67.115.65 UGS 0000000002 OSAQDIOLINK
9.67.115.65/32 0.0.0.0 UHS 0000000000 OSAQDIOLINK
9.67.115.69/32 0.0.0.0 UH 0000000000 OSAQDIOLINK
NETSTAT ROUTE
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:24:09
IPv4 Destinations
Destination Gateway Flags Refcnt Interface
- - - - -
Default 9.67.115.65 UGS 0000000002 OSAQDIOLINK
9.67.115.65/32 0.0.0.0 UHS 0000000000 OSAQDIOLINK
9.67.115.69/32 0.0.0.0 UH 0000000000 OSAQDIOLINK
127.0.0.1/32 0.0.0.0 UH 0000000002 LOOPBACK
IPv6 Destinations
DestIP: Default
Gw: 2001:0db8::206:2aff:fe71:4400
Intf: OSAQDIO46 Refcnt: 0000000000
Flgs: UGS MTU: 1492
DestIP: ::1/128
Gw: ::
Intf: LOOPBACK6 Refcnt: 0000000000
Flgs: UH MTU: 65535
DestIP: 2001:0db8::9:67:115:13/128
Gw: ::
Intf: OSAQDIO46 Refcnt: 0000000000
Flgs: UD MTU: 1492
DestIP: 2001:0db8::206:2aff:fe71:4400/128
Gw: ::
Intf: OSAQDIO46 Refcnt: 0000000000
Flgs: UHS MTU: 1492
NETSTAT ROUTE ADDRTYPE IPV4
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:24:09
IPv4 Destinations
Destination Gateway Flags Refcnt Interface
----------- ------- ----- ------ ---------
Default 9.67.115.65 UGS 0000000002 OSAQDIOLINK
9.67.115.65/32 0.0.0.0 UHS 0000000000 OSAQDIOLINK
9.67.115.69/32 0.0.0.0 UH 0000000000 OSAQDIOLINK
127.0.0.1/32 0.0.0.0 UH 0000000002 LOOPBACK
NETSTAT ROUTE ADDRTYPE IPV6
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:24:09
IPv6 Destinations
DestIP: Default
Gw: 2001:0db8::206:2aff:fe71:4400
Intf: OSAQDIO46 Refcnt: 0000000000
Flgs: UGS MTU: 1492
DestIP: ::1/128
Gw: ::
Intf: LOOPBACK6 Refcnt: 0000000000
Flgs: UH MTU: 65535
DestIP: 2001:0db8::9:67:115:13/128
Gw: ::
Intf: OSAQDIO46 Refcnt: 0000000000
Flgs: UD MTU: 1492
DestIP: 2001:0db8::206:2aff:fe71:4400/128
Gw: ::
Intf: OSAQDIO46 Refcnt: 0000000000
Flgs: UHS MTU: 1492
NETSTAT ROUTE DETAIL
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:03:13
IPv4 Destinations
Destination Gateway Flags Refcnt Interface
----------- ------- ----- ------ ---------
Default 9.67.115.1 UGS 0000000000 OSAQDIO5L
Metric: 00000001 MTU: 1496
MVS Specific Configured Parameters:
MaxReTransmitTime: 120.000 MinReTransmitTime: 0.500
RoundTripGain: 0.125 VarianceGain: 0.250
VarianceMultiplier: 2.000 DelayAcks: Yes
......
IPv6 Destinations
......
DestIP: 2001:0db8::206:2aff:fe71:4400/128
Gw: ::
Intf: OSAQDIO46 Refcnt: 0000000000
Flgs: UHS MTU: 1492
Metric: 00000000
MVS Specific Configured Parameters:
MaxReTransmitTime: 120.000 MinReTransmitTime: 0.500
RoundTripGain: 0.125 VarianceGain: 0.250
VarianceMultiplier: 2.000 DelayAcks: Yes
NETSTAT ROUTE RSTAT
MVS TCP/IP NETSTAT CS V2R1 TCPIP NAME: TCPCS 17:40:36
IPv4 Destinations
Destination Gateway Interface
----------- ------- ---------
9.67.1.9/32 0.0.0.0 OSA00LINK1
IPv6 Destinations
DestIP: fe80::6:2900:1dc:21bc/128
Gw: ::
Intf: OSAQDIO46 MTU: 1492
NETSTAT ROUTE QDIOACCEL
MVS TCP/IP NETSTAT CS V2R1 TCPIP NAME: TCPCS 09:51:02
Destination Gateway Interface
----------- ------- ---------
9.67.1.9/32 0.0.0.0 LIQDIO1
9.67.5.10/32 0.0.0.0 OSAQDIO5L
NETSTAT ROUTE PR prtable1
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:24:09
Policy Routing Table: prtable1
IgnorePathMtuUpdate: IPv4: No IPv6: No
MultiPath: IPv4: Conn(Policy) IPv6: Pkt(Profile)
DynamicXCFRoutes: IPv4: No IPv6: No
IPv4 Dynamic Routing Parameters
Interface NextHop
--------- -------
OSAQDIOLINK 9.67.115.65
IPv4 Destinations
Destination Gateway Flags Refcnt Interface
----------- ------- ----- ------ ---------
Default 9.67.115.65 UGS 0000000002 OSAQDIOLINK
9.67.115.65/32 0.0.0.0 UHS 0000000000 OSAQDIOLINK
9.67.115.69/32 0.0.0.0 UH 0000000000 OSAQDIOLINK
IPv6 Dynamic Routing Parameters
Interface NextHop
--------- -------
OSAQDIO46 fe80::9:67:115:65
IPv6 Destinations
DestIP: Default
Gw: 2001:0db8::206:2aff:fe71:4400
Intf: OSAQDIO46 Refcnt: 0000000000
Flgs: UGS MTU: 1492
DestIP: 2001:0db8::9:67:115:13/128
Gw: ::
Intf: OSAQDIO46 Refcnt: 0000000000
Flgs: UD MTU: 1492
DestIP: 2001:0db8::206:2aff:fe71:4400/128
Gw: ::
Intf: OSAQDIO46 Refcnt: 0000000000
Flgs: UHS MTU: 1492
NETSTAT ROUTE RADV
MVS TCP/IP NETSTAT CS V2R1 TCPIP NAME: TCPCS 17:40:36
IPv6 Destinations
DestIP: 2001:0db8::206:2aff::/64
Gw: fe80::6:2900:6dc:217c
Intf: OSAQDIO46 MTU: 1492
NETSTAT ROUTE RADV DETAIL
MVS TCP/IP NETSTAT CS V2R1 TCPIP Name: TCPCS 14:03:13
IPv6 Destinations
......
DestIP: 2001:0db8::206:2aff::/64
Gw: fe80::6:2900:6dc:217c
Intf: OSAQDIO46 MTU: 1492
Metric: 00000001 LifetimeExp: 08/28/2010 15:35
GwReachable: Yes IntfActive: Yes
MVS Specific Configured Parameters:
MaxReTransmitTime: 120.000 MinReTransmitTime: 0.500
RoundTripGain: 0.125 VarianceGain: 0.250
VarianceMultiplier: 2.000 DelayAcks: Yes
The following flags are mutually exclusive:
Tip: If IPSECURITY is coded on the IPCONFIG statement and Multipath PerPacket is specified on a RouteTable statement, the Multipath PerPacket option is disabled. The value No(Policy) is displayed on the report. For more information, see the RouteTable statement information in the z/OS Communications Server: IP Configuration Reference.