3

On Ubuntu-14.04.5 I can't delete entry with ip tool from iproute2 package.

% ip neigh show
10.0.0.119 dev eth2 lladdr c4:3d:c7:a2:fe:37 REACHABLE
fe80::2e0:ecff:fe36:2af6 dev eth2 lladdr 00:e0:ec:36:2a:f6 router REACHABLE

However deleting results in FAILED state of the entry:

% ip neigh del 10.0.0.119 lladdr c4:3d:c7:a2:fe:37 dev eth2
% ip neigh show
10.0.0.119 dev eth2  FAILED
fe80::2e0:ecff:fe36:2af6 dev eth2 lladdr 00:e0:ec:36:2a:f6 router REACHABLE

UPDATE

The same happens when I add an entry of the host, which is currently not turned on, the entry is added as PERMANENT and ip neigh show displays it but deleting fails, the entry is still displayed by ip neigh show but in state FAILED.

iproute2 documentation says it is possible to delete. Am I doing something wrong?

  • 1
    Is something actively trying to talk to 10.0.0.119 while you manipulate the table? – Celada Jan 11 '17 at 22:55
  • @Celada, I updated my post. – Mark Jan 12 '17 at 14:17
  • "iproute2 documentation says it is possible to delete" => can you quote it exactly please? Mine says that delete "invalidates a neighbour entry", which seems to be the case here. – xhienne Jan 12 '17 at 16:21
  • @xhienne, man7.org/linux/man-pages/man8/ip-neighbour.8.html – Mark Jan 12 '17 at 20:54
  • What do you mean by I can't delete entry? What do you want to achieve? Remove an IP address from a NIC? Or what? Please edit your question to make this more precise. – countermode Jan 24 '17 at 8:45

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.