FD.io VPP  v21.01.1
Vector Packet Processing
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 974)

Implementation: create_simulated_ethernet_interfaces.

delete loopback interface

Summary/usage

delete loopback interface intfc &lt;interface&gt;.

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 1209)

Implementation: delete_simulated_ethernet_interfaces.

delete sub-interface

Summary/usage

delete sub-interface &lt;interface&gt;.

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 1224)

Implementation: delete_sub_interface.

loopback create-interface

Summary/usage

loopback create-interface [mac &lt;mac-addr&gt;] [instance &lt;instance&gt;].

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 955)

Implementation: create_simulated_ethernet_interfaces.

loopback delete-interface

Summary/usage

loopback delete-interface intfc &lt;interface&gt;.

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 1191)

Implementation: delete_simulated_ethernet_interfaces.

p2p_ethernet

Summary/usage

p2p_ethernet &lt;intfc&gt; &lt;mac-address&gt; [sub-id &lt;id&gt; | del].

Declaration and implementation

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

Implementation: vnet_p2p_ethernet_add_del.