FD.io VPP  v20.01-48-g3e0dafb74
Vector Packet Processing
All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
ARP and Loopback CLI

create loopback interface

Summary/usage

create loopback interface [mac <mac-addr>] [instance <instance>].

Description

Create a loopback interface. Optionally, a MAC Address can be provided. If not provided, de:ad:00:00:00:<loopId> will be used.

Example usage
The following two command syntaxes are equivalent:
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 and implementation

Declaration: create_loopback_interface_command (src/vnet/ethernet/interface.c line 932)

Implementation: create_simulated_ethernet_interfaces.

delete loopback interface

Summary/usage

delete loopback interface intfc <interface>.

Description

Delete a loopback interface.

Example usage
The following two command syntaxes are equivalent:
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 and implementation

Declaration: delete_loopback_interface_command (src/vnet/ethernet/interface.c line 1173)

Implementation: delete_simulated_ethernet_interfaces.

delete sub-interface

Summary/usage

delete sub-interface <interface>.

Description

Delete a sub-interface.

Example usage
Example of how to delete a sub-interface:
vpp# delete sub-interface GigabitEthernet0/8/0.200

Declaration and implementation

Declaration: delete_sub_interface_command (src/vnet/ethernet/interface.c line 1188)

Implementation: delete_sub_interface.

loopback create-interface

Summary/usage

loopback create-interface [mac <mac-addr>] [instance <instance>].

Description

Create a loopback interface. Optionally, a MAC Address can be provided. If not provided, de:ad:00:00:00:<loopId> will be used.

Example usage
The following two command syntaxes are equivalent:
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 and implementation

Declaration: create_simulated_ethernet_interface_command (src/vnet/ethernet/interface.c line 913)

Implementation: create_simulated_ethernet_interfaces.

loopback delete-interface

Summary/usage

loopback delete-interface intfc <interface>.

Description

Delete a loopback interface.

Example usage
The following two command syntaxes are equivalent:
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 and implementation

Declaration: delete_simulated_ethernet_interface_command (src/vnet/ethernet/interface.c line 1155)

Implementation: delete_simulated_ethernet_interfaces.

p2p_ethernet

Summary/usage

p2p_ethernet <intfc> <mac-address> [sub-id <id> | del].

Declaration and implementation

Declaration: p2p_ethernet_add_del_command (src/vnet/ethernet/p2p_ethernet.c line 251)

Implementation: vnet_p2p_ethernet_add_del.