Go to main content

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

Exit Print View

Updated: March 2019
 
 

Displaying IP Tunnel Configuration Information

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

# dladm show-iptun [-p] -o fields [tunnel-link]
–p

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

–o fields

Displays selected fields that provide specific tunnel information.

tunnel-link

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 on in the system.

Example 36  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     --       192.0.2.10/27   --
vpn0     ipv4     --       203.0.113.149   192.0.2.35/27
Example 37  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
tun0:6to4:192.0.2.10
vpn0:ipv4:203.0.113.149