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

Exit Print View

Updated: July 2014
 
 

Displaying an IP Tunnel's Configuration

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 5-7  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.168.35.10   --
vpn0     ipv4     --       10.8.48.149     192.168.2.3
Example 5-8  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.168.35.10
vpn0:ipv4:10.8.48.149