lstun Command

Purpose

Lists tunnel definition(s).

Syntax

lstun [-v 4|6 ] [-t tid_list] [-p manual] [-a]

Description

Use the lstun command to list the tunnel definition(s) and their current status. This command can either list the tunnels in the tunnel database or in the active system.

Flags

Item Description
-v This flag specifies the IP version. For listing IP version 4 tunnel only, use the value of 4. For listing IP version 6 tunnel only, use the value of 6. If this flag is not used, both the version 4 and version 6 tunnels will be listed.
-t Only list the tunnel definition and its current status for the tunnel whose tunnel ID is in tid_list. If this flag is not used, all the tunnel definitions and their current status will be listed.
-p Selects the type of the tunnel to be listed. Using the -p flag with the value of manual lists manual tunnels only. The -p flag is for listing tunnel definitions in the tunnel database only and thus is mutually exclusive with the -a flag.
-a Lists the tunnels active in the IP Security subsystem.

Security

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX® Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.