xStack
®
DGS-3400 Series Layer 2 Gigabit Managed Switch CLI Manual
152
D G S – 3 4 2 6 : 5 # c r e a t e i p i f p 1 1 0 . 1 . 1 . 1 / 8 T i b e r i u s s t a t e e n a b l e
C o m m a n d : c r e a t e i p i f p 1 1 0 . 1 . 1 . 1 / 8 T i b e r i u s s t a t e e n a b l e
S u c c e s s .
D G S – 3 4 2 6 : 5 #
config ipif
Purpose
Used to configure the System IP interface.
Syntax
config ipif <ipif_name 12> [{ipaddress <network_address> | vlan <vlan_name 32> |
state [enable | disable]} (1) | bootp | dhcp | ipv6 ipv6address <ipv6networkaddr>]
Description
This command is used to configure an IP interface on the Switch. Users may add one
IPv4 address per interface but multiple IPv6 addresses may be added to a single
interface. The format of IPv6 address resembles xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx
where a set of xxxx represents a 16–bit hexadecimal value (ex.
2D83:0C76:3140:0000:0000:020C:417A:3214).
Parameters
<ipif_name 12>
– Enter an alphanumeric string of up to 12 characters to identify this IP
interface.
ipaddress <network_address>
−
IP address and netmask of the IP interface to be
created. Users can specify the address and mask information using the traditional format
(for example, 10.1.2.3/255.0.0.0 or in CIDR format, 10.1.2.3/8). Only one IPv4 address
can be configured per interface.
<vlan_name 32>
−
The name of the VLAN corresponding to the IP interface.
state [enable | disable]
−
Allows users to enable or disable the IP interface.
bootp
−
Allows the selection of the BOOTP protocol for the assignment of an IP address
to the Switch’s System IP interface. This method is only for IPv4 addresses and if users
manually configure an IPv4 address and set this parameter, the manually set IP address
will be overwritten by this protocol.
dhcp
−
Allows the selection of the DHCP protocol for the assignment of an IP address to
the Switch’s System IP interface. If you are using the autoconfig feature, the Switch
becomes a DHCP client automatically so it is not necessary to change the ipif settings.
This method is only for IPv4 addresses and if users manually configure an IPv4 address
and set this parameter, the manually set IP address will be overwritten by this protocol.
<ipv6networkaddr>
– Use this parameter to statically assign an IPv6 address to this
interface. This address should define a host address and a network prefix length.
Multiple IPv6 addresses can be configured for a single IP interface. Ex:
3ffe:501:ffff:100::1/64. The /64 represents the prefix length of the IPv6 addresses.
Restrictions
Only Administrator and Operator-level users can issue this command.
Example usage:
To configure the IPv4 interface System:
D G S – 3 4 2 6 : 5 # c o n f i g i p i f S y s t e m i p a d d r e s s 1 0 . 4 8 . 7 4 . 1 2 2 / 8
C o m m a n d : c o n f i g i p i f S y s t e m i p a d d r e s s 1 0 . 4 8 . 7 4 . 1 2 2 / 8
S u c c e s s .
D G S – 3 4 2 6 : 5 #
Example usage:
To configure the IPv6 address for IP interface Tiberius: