Displays the Virtual I/O Server TCP/IP settings and parameters.
lstcpip [-interfaces ] [-fmt delimiter]
lstcpip [-state] [-num] [-field] [-fmt delimiter]
lstcpip [-num] [-routtable] [-routinfo] [-state] [-arp]
lstcpip [-stored]
lstcpip [-adapters]
lstcpip [-sockets] [-family {inet | inet6 | unix}]
lstcpip [-namesrv]
lstcpip [ -state [ -field FieldName ...] ] | [ -routtable [ -field FieldName ... ]] [ -fmt delimter ]
lstcpip [-hostname]
The lstcpip command displays the current and stored TCP/IP setting such as IP address, routing table, sockets, name server settings, and so forth.
Flag name | Description |
---|---|
-adapters | Lists Ethernet adapters on the system. |
-arp | Displays the current ARP table entries. |
-family | Specifies the INET, INET6, or UNIX socket family. |
-field | Specifies a list of fields to display. |
-fmt | Divides output by a user-specified delimiter. |
-hostname | Displays the system hostname. |
-interfaces | Displays all of the interfaces configured on the system. Specifically, it displays their addresses, network masks, states, and mac addresses. |
-namesrv | Lists DNS name servers in search order and domain name. |
-num | Displays numeric output, rather than trying to resolve host names. |
-routtable | Displays the routing tables. |
-routinfo | Displays the routing tables, including the user-configured and current costs of each route. |
-sockets | Displays information about currently open sockets. |
-state | Displays the current state of all configured interfaces. |
-stored | Displays stored TCP/IP configuration, which will be applied when the system starts. It will list interface IP addresses, any defined static routes, host names, and DNS info. |
lstcpip -stored
lstcpip -routtable
lstcpip -sockets -family inet
lstcpip -state -fmt “/”
This
command produces output similar to the following: sit0/1480/link#2/9.3.126.60/0/0/0/0/0
sit0/1480/commo126060./austin.ixx.com/0/0/0/0/0
en2/1500/link#3/0.9.6b.6e.e3.72/871825/0/16305/1/0
en2/1500/9.3.126/commo126060.austi/871825/0/16305/1/0
en2/1500/fe80::209:6bff:fe6e:e372/871825/0/16305/1/0
lo0/16896/link#1/5013/0/5019/0/0
lo0/16896/127/localhost/5013/0/5019/0/0
lo0/16896/::1/5013/0/5019/0/0
lstcpip -interfaces
This
command produces output similar to the following: Name Address mask/Pfx State MAC
en2 fe80::209:6bff:fe6e:e372 64 up 00:09:6b:6e:e3:72
en3 - - down 00:09:6b:6e:e3:73
et2 - - down 00:09:6b:6e:e3:72
et3 - - down 00:09:6b:6e:e3:73
en4 - - down 0e:f0:c0:00:30:04