Go to main content

Administering TCP/IP Networks, IPMP, and IP Tunnels in Oracle® Solaris 11.4

Exit Print View

Updated: November 2020

Displaying the Configuration of an IP Tunnel

You display the configuration of an IP tunnel by using the following command syntax:

$ dladm show-iptun [-p] -o fields [tunnel-link]

Displays the information in a machine-parsable format. This argument is optional.

–o fields

Displays selected fields that provide specific tunnel information.


Specifies the tunnel whose configuration information you want to display. This argument is optional. If you omit the tunnel name, the command displays the information about all of the tunnels in the system.

Example 31  Displaying Information About All Tunnels

In the following example, only one tunnel exists on the system.

$ dladm show-iptun
LINK     TYPE     FLAGS     LOCAL          REMOTE
tun0     6to4     --   --
vpn0     ipv4     --
Example 32  Displaying Selected Fields in a Machine-Parsable Format

In the following example, only the specific fields with tunnel information are displayed.

$ dladm show-iptun -p -o link,type,local