Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Announcement: Try the Ask AI chatbot for answers to your technical questions about Juniper products and solutions.

close
header-navigation
keyboard_arrow_up
close
keyboard_arrow_left
Junos CLI Reference
Table of Contents Expand all
list Table of Contents

clear ancp neighbor

date_range 19-Nov-23

Syntax

content_copy zoom_out_map
clear ancp neighbor
<ip-address ip-address>
<system-name mac-address>

Description

Clear the ANCP agent connection with all ANCP neighbors or with the specified ANCP neighbor. This command deletes information for subscribers associated with the neighbor, causing the adjusted traffic rates to revert to the configured rate for the subscriber interfaces. The neighbor remains configured (its administrative state is enabled) and can reestablish adjacencies.

This command initiates logout of ANCP-triggered dynamic VLAN sessions on the physical interface associated with the specified neighbor; conventionally autosensed dynamic VLAN sessions and their associated logical interfaces are not affected.

Options

none

Clear all ANCP neighbors.

ip-address ip-address

(Optional) Clear the ANCP neighbor specified by the IP address.

system-name mac-address

(Optional) Clear the ANCP neighbor specified by the MAC address.

Required Privilege Level

clear

Output Fields

When you enter this command, you are provided no feedback on the status of your request. You can enter the show ancp neighbor command before and after clearing the ANCP neighbors to verify the clear operation.

Sample Output

clear ancp neighbor

content_copy zoom_out_map
user@host> clear ancp neighbor
 

show ancp neighbor

The following sample output displays the connections with ANCP neighbors before and after the clear ancp neighbor command was issued.

content_copy zoom_out_map
user@host> show ancp neighbor

  IP Address        MAC Address         State         Subscriber   Capabilities
                                                        Count                  
  203.0.113.102     00:00:5e:00:53:10  Established    5              Topo      
  203.0.113.122     00:00:5e:00:53:12  Established    5              Topo      
  203.0.113.132     00:00:5e:00:53:13  Established    5              Topo      
  203.0.113.142     00:00:5e:00:53:14  Established    5              Topo      


user@host> clear ancp neighbor ip-address 203.0.113.102

user@host> show ancp neighbor

  IP Address        MAC Address         State         Subscriber   Capabilities
                                                        Count                  
  203.0.113.122     00:00:5e:00:53:12  Established    5              Topo      
  203.0.113.132     00:00:5e:00:53:13  Established    5              Topo      
  203.0.113.142     00:00:5e:00:53:14  Established    5              Topo      

Release Information

Command introduced in Junos OS Release 9.4.

footer-navigation