ARP and Loopback CLI
create loopback interface
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.
The following two command syntaxes are equivalent:
loopback create-interface [mac <mac-addr>] [instance <instance>]
create loopback interface [mac <mac-addr>] [instance <instance>]
Example of how to create a loopback interface:
create loopback interface
Declaration: create_loopback_interface_command
src/vnet/ethernet/interface.c line 980
Implementation: create_simulated_ethernet_interfaces
delete loopback interface
delete loopback interface intfc <interface>
Delete a loopback interface.
The following two command syntaxes are equivalent:
loopback delete-interface intfc <interface>
delete loopback interface intfc <interface>
Example of how to delete a loopback interface:
delete loopback interface intfc loop0
Declaration: delete_loopback_interface_command
src/vnet/ethernet/interface.c line 1215
Implementation: delete_simulated_ethernet_interfaces
delete sub-interface
delete sub-interface <interface>
Delete a sub-interface.
Example of how to delete a sub-interface:
delete sub-interface GigabitEthernet0/8/0.200
Declaration: delete_sub_interface_command
src/vnet/ethernet/interface.c line 1230
Implementation: delete_sub_interface
loopback create-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.
The following two command syntaxes are equivalent:
loopback create-interface [mac <mac-addr>] [instance <instance>]
create loopback interface [mac <mac-addr>] [instance <instance>]
Example of how to create a loopback interface:
loopback create-interface
Declaration: create_simulated_ethernet_interface_command
src/vnet/ethernet/interface.c line 961
Implementation: create_simulated_ethernet_interfaces
loopback delete-interface
loopback delete-interface intfc <interface>
Delete a loopback interface.
The following two command syntaxes are equivalent:
loopback delete-interface intfc <interface>
delete loopback interface intfc <interface>
Example of how to delete a loopback interface:
loopback delete-interface intfc loop0
Declaration: delete_simulated_ethernet_interface_command
src/vnet/ethernet/interface.c line 1197
Implementation: delete_simulated_ethernet_interfaces
p2p_ethernet
p2p_ethernet <intfc> <mac-address> [sub-id <id>|del]
Declaration: p2p_ethernet_add_del_command
src/vnet/ethernet/p2p_ethernet.c line 256
Implementation: vnet_p2p_ethernet_add_del