Chapter 4: Using the Command Line Interface
156
•
<mode> is one of the modes:
dhcp
or
static
.
Mode
Description
dhcp
The IPv4 configuration mode is set to DHCP.
static
The IPv4 configuration mode is set to static IP address.
Setting the IPv4 Preferred Host Name
After selecting DHCP as the IPv4 configuration mode, you can specify the preferred host name, which is optional. The
following is the command:
config:#
network ipv4 interface <ETH> preferredHostName <name>
Variables:
•
<ETH> is one of the network interfaces:
ethernet (or ETH1/ETH2)
,
wireless
or
all
.
Interface
Description
eth1
Determine the IPv4 preferred host name of the ETH1 interface (that is, wired networking).
eth2
Determine the IPv4 preferred host name of the ETH2 interface (that is, wired networking).
wireless
Determine the IPv4 preferred host name of the WIRELESS interface (that is, wireless
networking).
•
<name> is a host name which:
Consists of alphanumeric characters and/or hyphens
Cannot begin or end with a hyphen
Cannot contain more than 63 characters
Cannot contain punctuation marks, spaces, and other symbols
Setting the IPv4 Address
After selecting the static IP configuration mode, you can use this command to assign a permanent IP address to the PDU.
config:#
network ipv4 interface <ETH> address <ip address>
Variables:
•
<ETH> is one of the network interfaces:
ethernet (or ETH1/ETH2)
,
wireless
or
all
.
Interface
Description
eth1
Determine the IPv4 preferred host name of the ETH1 interface (that is, wired networking).