FD.io VPP
v21.06-3-gbb25fbf28
Vector Packet Processing
|
ip neighbor [del] <intfc> <ip-address> <mac-address> [static] [no-fib-entry] [count <count>] [fib-id <fib-id>] [proxy <lo-addr> - <hi-addr>].
Declaration: ip_neighbor_command2 (src/vnet/ip-neighbor/ip_neighbor.c line 811)
Implementation: ip_neighbor_cmd.
set ip neighbor [del] <intfc> <ip-address> <mac-address> [static] [no-fib-entry] [count <count>] [fib-id <fib-id>] [proxy <lo-addr> - <hi-addr>].
Add or delete IPv4 ARP cache entries.
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 'set ip neighbor' command can add or delete multiple entries. Supply the 'count N' parameter:
vpp# set ip neighbor count 10 GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe
Declaration: ip_neighbor_command (src/vnet/ip-neighbor/ip_neighbor.c line 805)
Implementation: ip_neighbor_cmd.
set ip neighbor-config ip4|ip6 [limit <limit>] [age <age>] [recycle|norecycle].
Declaration: set_ip_neighbor_cfg_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 1774)
Implementation: ip_neighbor_config_set.
show ip neighbor [interface].
Declaration: show_ip_neighbor_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 979)
Implementation: ip_neighbor_show.
show ip neighbor-config.
Declaration: show_ip_neighbor_cfg_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 1769)
Implementation: ip_neighbor_config_show.
show ip neighbors-watcher.
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 [interface].
Display all the IP neighbor entries.
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: show_ip_neighbors_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 964)
Implementation: ip_neighbor_show.
show ip4 neighbor [interface].
Declaration: show_ip4_neighbor_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 984)
Implementation: ip4_neighbor_show.
show ip4 neighbor-sorted.
Declaration: show_ip4_neighbor_sorted_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 994)
Implementation: ip4_neighbor_show_sorted.
show ip4 neighbors [interface].
Declaration: show_ip4_neighbors_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 969)
Implementation: ip4_neighbor_show.
show ip6 neighbor [interface].
Declaration: show_ip6_neighbor_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 989)
Implementation: ip6_neighbor_show.
show ip6 neighbor-sorted.
Declaration: show_ip6_neighbor_sorted_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 999)
Implementation: ip6_neighbor_show_sorted.
show ip6 neighbors [interface].
Declaration: show_ip6_neighbors_cmd_node (src/vnet/ip-neighbor/ip_neighbor.c line 974)
Implementation: ip6_neighbor_show.