xStack
®
DGS-3600 Series Layer 3 Gigabit Ethernet Managed Switch CLI Manual
432
56
LOOPBACK INTERFACE COMMANDS
A loopback interface is a logical IP interface which is always active, until you disable or delete it. It is independent of the
state of any physical interfaces.
The Loopback Interface commands in the Command Line Interface (CLI) are listed (along with the appropriate
parameters) in the following table.
Command
Parameters
create loopback ipif
<ipif_name 12> {<network_address>} {state [enable | disable]}
config loopback ipif
<ipif_name 12> [{ipaddress <network_address> | state [enable | disable]}]
show loopback ipif
{< ipif_name 12 >}
delete loopback ipif
[< ipif_name 12 > | all]
Each command is listed, in detail, in the following sections.
create loopback ipif
Purpose
Creates a loopback interface on the switch.
Syntax
create loopback ipif <ipif_name 12> {<network_address>} {state [enable | disable]}
Description
This command creates a loopback interface on the switch.
This interface can be configured with IPv4. Currently, it has a restriction. An interface can
have only one IPv4 address defined. User can only create 8 loopback interfaces at most.
Parameters
<ipif_name 12>
- The name of the loopback interface.
Note:
the loopback ipif has the same name domain space with the regular ipif, so its name
can’t duplicate with the regular ipif.
network_address
- IPv4 network address (xxx.xxx.xxx/xx) of the loopback interface. It
specifies a host address and length of network mask.
state
- The state of loopback interface.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To create one loopback interface named loopback1 with subnet address 20.1.1.1/8 and enable the admin state:
DGS-3627: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.
DGS-3627:admin#
config loopback ipif
Purpose
Configure the loopback interface parameters.
Syntax
config loopback ipif <ipif_name 12> [{ipaddress <network_address> | state [ enable |
disable]}]