clear ancp neighbor
Syntax
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
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.
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.