Go to main content

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

Exit Print View

Updated: November 2020

How to Delete an IP Tunnel

Before You Begin

Ensure that your role has the appropriate rights profile to perform this procedure. See Using Rights Profiles to Perform Network Configuration.

  1. Unplumb the IP interface that is configured over the tunnel depending on the type of interface.
    $ ipadm delete-ip tunnel-link

    Note -  To successfully delete a tunnel, no existing IP interface can be plumbed on the tunnel.
  2. Delete the IP tunnel.
    $ dladm delete-iptun tunnel-link

    The only option for this command is –t, which causes the tunnel to be deleted temporarily. When you reboot the system, the tunnel is restored.

Example 34  Deleting an IPv6 Tunnel That is Configured With an IPv6 Interface

In the following example, a persistent tunnel is permanently deleted.

$ ipadm delete-ip ip6.tun0
$ dladm delete-iptun ip6.tun0