FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
src/vnet/ip-neighbor

ip neighbor

Summary/usage

ip neighbor [del] <intfc> <ip-address> <mac-address> [static] [no-fib-entry] [count <count>] [fib-id <fib-id>] [proxy <lo-addr> - <hi-addr>].

Declaration and implementation

Declaration: ip_neighbor_command2 (src/vnet/ip-neighbor/ip_neighbor.c line 816)

Implementation: ip_neighbor_cmd.

set ip neighbor

Summary/usage

set ip neighbor [del] <intfc> <ip-address> <mac-address> [static] [no-fib-entry] [count <count>] [fib-id <fib-id>] [proxy <lo-addr> - <hi-addr>].

Description

Add or delete IPv4 ARP cache entries.

Note
&#39;set ip neighbor&#39; options (e.g. delete, static, &#39;fib-id <id>&#39;, &#39;count <number>&#39;, &#39;interface ip4_addr mac_addr&#39;) can be added in any order and combination.
Example usage

Add or delete IPv4 ARP cache entries as follows. MAC Address can be in either aa:bb:cc:dd:ee:ff format or aabb.ccdd.eeff format.

vpp# set ip neighbor GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe

vpp# set ip neighbor delete GigabitEthernet2/0/0 6.0.0.3 de:ad:be:ef:ba:be

To add or delete an IPv4 ARP cache entry to or from a specific fib table:

vpp# set ip neighbor fib-id 1 GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe

vpp# set ip neighbor fib-id 1 delete GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe

Add or delete IPv4 static ARP cache entries as follows:

vpp# set ip neighbor static GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe

vpp# set ip neighbor static delete GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe

For testing / debugging purposes, the &#39;set ip neighbor&#39; command can add or delete multiple entries. Supply the &#39;count N&#39; parameter:

vpp# set ip neighbor count 10 GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe

Declaration and implementation

Declaration: ip_neighbor_command (src/vnet/ip-neighbor/ip_neighbor.c line 810)

Implementation: ip_neighbor_cmd.

set ip neighbor-config

Summary/usage

set ip neighbor-config ip4|ip6 [limit &lt;limit&gt;] [age &lt;age&gt;] [recycle|norecycle].

Declaration and implementation

Declaration: set_ip_neighbor_cfg_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 1754)

Implementation: ip_neighbor_config_set.

show ip neighbor

Summary/usage

show ip neighbor [interface].

Declaration and implementation

Declaration: show_ip_neighbor_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 984)

Implementation: ip_neighbor_show.

show ip neighbor-config

Summary/usage

show ip neighbor-config.

Declaration and implementation

Declaration: show_ip_neighbor_cfg_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 1749)

Implementation: ip_neighbor_config_show.

show ip neighbor-watcher

Summary/usage

show ip neighbors-watcher.

Declaration and implementation

Declaration: show_ip_neighbor_watchers_cmd_node (src/vnet/ip-neighbor/ip_neighbor_watch.c line 255)

Implementation: ip_neighbor_watchers_show.

show ip neighbors

Summary/usage

show ip neighbors [interface].

Description

Display all the IP neighbor entries.

Example usage
Example of how to display the IPv4 ARP table:
vpp# show ip neighbor
   Time      FIB        IP4       Flags      Ethernet              Interface
   346.3028   0       6.1.1.3            de:ad:be:ef:ba:be   GigabitEthernet2/0/0
  3077.4271   0       6.1.1.4       S    de:ad:be:ef:ff:ff   GigabitEthernet2/0/0
  2998.6409   1       6.2.2.3            de:ad:be:ef:00:01   GigabitEthernet2/0/0
Proxy arps enabled for:
Fib_index 0   6.0.0.1 - 6.0.0.11

Declaration and implementation

Declaration: show_ip_neighbors_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 969)

Implementation: ip_neighbor_show.

show ip4 neighbor

Summary/usage

show ip4 neighbor [interface].

Declaration and implementation

Declaration: show_ip4_neighbor_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 989)

Implementation: ip4_neighbor_show.

show ip4 neighbor-sorted

Summary/usage

show ip4 neighbor-sorted.

Declaration and implementation

Declaration: show_ip4_neighbor_sorted_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 999)

Implementation: ip4_neighbor_show_sorted.

show ip4 neighbors

Summary/usage

show ip4 neighbors [interface].

Declaration and implementation

Declaration: show_ip4_neighbors_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 974)

Implementation: ip4_neighbor_show.

show ip6 neighbor

Summary/usage

show ip6 neighbor [interface].

Declaration and implementation

Declaration: show_ip6_neighbor_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 994)

Implementation: ip6_neighbor_show.

show ip6 neighbor-sorted

Summary/usage

show ip6 neighbor-sorted.

Declaration and implementation

Declaration: show_ip6_neighbor_sorted_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 1004)

Implementation: ip6_neighbor_show_sorted.

show ip6 neighbors

Summary/usage

show ip6 neighbors [interface].

Declaration and implementation

Declaration: show_ip6_neighbors_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 979)

Implementation: ip6_neighbor_show.