xStack
®
DGS-3120 Series Layer 3 Managed Gigabit Ethernet Switch CLI Reference Guide
586
Chapter 55
Loopback Interface
Command List (RI Mode
Only)
create loopback ipif <ipif_name 12> {<network_address>} {state [enable | disable]}
config loopback ipif <ipif_name 12> [{ipaddress <network_address> | state [enable | disable]}(1)]
delete loopback ipif [<ipif_name 12> | all]
show loopback ipif {<ipif_name 12>}
55-1 create loopback ipif
Description
This command is used to create a loopback interface on the Switch.
Format
create loopback ipif <ipif_name 12> {<network_address>} {state [enable | disable]}
Parameters
<ipif_name 12> - Enter the IP interface name used for this configuration here. This name can be
up to 12 characters long.
<network_address> - (Optional) Enter the IPv4 network address of the loopback interface here.
It specifies a host address and length of network mask.
state - (Optional) Specify the state of the loopback interface.
enable - Specify that the loopback interface state will be enabled.
disable - Specify that the loopback interface state will be disabled.
Restrictions
Only Administrator, Operator and Power-User level users can issue this command.
Example
To create one loopback interface named loopback1 with subnet address 20.1.1.1/8 and enable the
admin state:
DGS-3120-24TC:admin#create loopback ipif loopback1 20.1.1.1/8 state enable
Command: create loopback ipif loopback1 20.1.1.1/8 state enable
Success.