xStack Gigabit Layer 3 Switch Command Line Interface Manual
create ipif
Purpose
Used to create an IP interface on the Switch.
Syntax
create ipif <ipif_name 12> <network_address> <vlan_name
32> {secondary | {state [enable | disable]}
Description
This command will create an IP interface.
Parameters
<ipif_name 12>
−
The name for the IP interface to be created. The
user may enter an alphanumeric string of up to 12 characters to
define the IP interface.
<network_address>
−
IP address and netmask of the IP interface
to be created. The address and mask information can be specified
using the traditional format (for example, 10.1.2.3/255.0.0.0 or in
CIDR format, 10.1.2.3/8).
<vlan_name 32>
−
The name of the VLAN that will be associated
with the above IP interface.
secondary
– Enter this parameter if this configured IP interface is
to be a
secondary
IP interface of the VLAN previously specified.
secondary
interfaces can only be configured if a
primary
interface
is first configured.
state [enable | disable]
−
Allows you to enable or disable the IP
interface.
Restrictions Only
administrator-level users can issue this command.
Example usage:
To create the primary IP interface, p1 on VLAN Trinity:
DGS-3324SRi:4#create ipif p1 ipaddress 10.1.1.1 Trinity state enable
Command: create ipif p1 ipaddress 10.1.1.1 Trinity state enable
Success.
DGS-3324SRi:4#
To create the secondary IP interface, s1 on VLAN Trinity:
DGS-3324SRi:4#create ipif p1 ipaddress 12.1.1.1 Trinity secondary state enable
Command: create ipif p1 ipaddress 12.1.1.1 Trinity secondary state enable
DGS-3324SRi:4#
Success.
config ipif
Purpose
Used to configure an IP interface set on the Switch.
Syntax
config ipif <ipif_name 12> [{ ipaddress <network_address> |
vlan <vlan_name 32> | state [enable | disable]} | bootp | dhcp]
137