You display an IP tunnel's configuration 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.
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 on in the system.
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.3Example 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