-
clear ancp neighbor
-
< (ip-address ip-address) >
-
< (mac-address mac-address)
>
Command introduced in JUNOS Release 9.4.
Clear the connection with all ANCP neighbors or with the specified ANCP neighbor.
ip-address ip-address — (Optional) Clear the ANCP neighbor specified by the IP address.
mac-address mac-address — (Optional) Clear the ANCP neighbor specified by the MAC address.
clear
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.
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
10.10.10.2 ba:ad:be:ef:10:10 Established 5 Topo
12.12.12.2 ba:ad:be:ef:10:12 Established 5 Topo
13.13.13.2 ba:ad:be:ef:10:13 Established 5 Topo
14.14.14.2 ba:ad:be:ef:10:14 Established 5 Topo
user@host> clear ancp ip-address 10.10.10.2
user@host> show ancp neighbor
IP Address MAC Address State Subscriber Capabilities
Count
12.12.12.2 ba:ad:be:ef:10:12 Established 5 Topo
13.13.13.2 ba:ad:be:ef:10:13 Established 5 Topo
14.14.14.2 ba:ad:be:ef:10:14 Established 5 Topo
user@host> clear ancp neighbor