FD.io VPP
v21.01.1
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 974)
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 1209)
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 1224)
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 955)
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 1191)
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.