FD.io VPP
v18.10-34-gcce845e
Vector Packet Processing
|
create loopback interface [mac <mac-addr>] [instance <instance>].
Create a loopback interface. Optionally, a MAC Address can be provided. If not provided, de:ad:00:00:00:<loopId> will be used.
vpp# loopback create-interface [mac <mac-addr>] [instance <instance>]
vpp# create loopback interface [mac <mac-addr>] [instance <instance>]
Example of how to create a loopback interface: vpp# create loopback interface
Declaration: create_loopback_interface_command (src/vnet/ethernet/interface.c line 879)
Implementation: create_simulated_ethernet_interfaces.
delete loopback interface intfc <interface>.
Delete a loopback interface.
vpp# loopback delete-interface intfc <interface>
vpp# delete loopback interface intfc <interface>
Example of how to delete a loopback interface: vpp# delete loopback interface intfc loop0
Declaration: delete_loopback_interface_command (src/vnet/ethernet/interface.c line 1031)
Implementation: delete_simulated_ethernet_interfaces.
delete sub-interface <interface>.
Delete a sub-interface.
vpp# delete sub-interface GigabitEthernet0/8/0.200
Declaration: delete_sub_interface_command (src/vnet/ethernet/interface.c line 1046)
Implementation: delete_sub_interface.
loopback create-interface [mac <mac-addr>] [instance <instance>].
Create a loopback interface. Optionally, a MAC Address can be provided. If not provided, de:ad:00:00:00:<loopId> will be used.
vpp# loopback create-interface [mac <mac-addr>] [instance <instance>]
vpp# create loopback interface [mac <mac-addr>] [instance <instance>]
Example of how to create a loopback interface: vpp# loopback create-interface
Declaration: create_simulated_ethernet_interface_command (src/vnet/ethernet/interface.c line 860)
Implementation: create_simulated_ethernet_interfaces.
loopback delete-interface intfc <interface>.
Delete a loopback interface.
vpp# loopback delete-interface intfc <interface>
vpp# delete loopback interface intfc <interface>
Example of how to delete a loopback interface: vpp# loopback delete-interface intfc loop0
Declaration: delete_simulated_ethernet_interface_command (src/vnet/ethernet/interface.c line 1013)
Implementation: delete_simulated_ethernet_interfaces.
p2p_ethernet <intfc> <mac-address> [sub-id <id> | del].
Declaration: p2p_ethernet_add_del_command (src/vnet/ethernet/p2p_ethernet.c line 251)
Implementation: vnet_p2p_ethernet_add_del.
set interface proxy-arp <intfc> [enable|disable].
Enable proxy-arp on an interface. The vpp stack will answer ARP requests for the indicated address range. Multiple proxy-arp ranges may be provisioned.
vpp# set ip arp proxy 6.0.0.1 - 6.0.0.11
Append 'del' to delete a range of proxy ARP addresses: vpp# set ip arp proxy 6.0.0.1 - 6.0.0.11 del
You must then specifically enable proxy arp on individual interfaces: vpp# set interface proxy-arp GigabitEthernet0/8/0 enable
To disable proxy arp on an individual interface: vpp# set interface proxy-arp GigabitEthernet0/8/0 disable
Declaration: set_int_proxy_enable_command (src/vnet/ethernet/arp.c line 2259)
Implementation: set_int_proxy_arp_command_fn.
set ip arp [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 arp GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe
vpp# set ip arp 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 arp fib-id 1 GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe
vpp# set ip arp 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 arp static GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe
vpp# set ip arp static delete GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe
For testing / debugging purposes, the 'set ip arp' command can add or delete multiple entries. Supply the 'count N' parameter:
vpp# set ip arp count 10 GigabitEthernet2/0/0 6.0.0.3 dead.beef.babe
Declaration: ip_arp_add_del_command (src/vnet/ethernet/arp.c line 2193)
Implementation: ip_arp_add_del_command_fn.
show ip arp.
Display all the IPv4 ARP entries.
vpp# show ip arp
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_ip4_arp_command (src/vnet/ethernet/arp.c line 1465)
Implementation: show_ip4_arp.