Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

clear services soft-gre tunnel

Syntax

Description

Tears down tunnels that match selector defined. If subscribers are mapped to the tunnel, the tunnel is not cleared.

Note: Static soft-GRE tunnels cleared using the cli command clear services soft-gre tunnel will not be automatically recreated. This command therefore should not be used to clear static soft-GRE tunnels defined for static subscribers.

Options

statistics

Clear statistics

interface

Interface name to use as filter

tunnel-group

Tunnel group to use as filter

local-ip

Local ip address to use as filter

remote-ip

Remote ip address to use as filter

tunnel-name

Tunnel name to use as filter

all

Clear all tunnels

Required Privilege Level

view

Sample Output

clear services soft-gre tunnel all

There is no output on the console upon running the command. You may issue show services soft-gre tunnel summary command to verify if the tunnels have been deleted. If there are subscribers mapped to a tunnel, the clear command will not delete it. You can verify existing subscribers on a tunnel using the show subscribers command. In the event the clear command fails to tear down a tunnel, no error message is returned on the console upon running the command, however an error message is reported in the shmlog entries and tracelog:

Release Information

Statement introduced in Junos OS Release 17.2R1.