Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document.
Note: Even the most advanced machine translation cannot match the quality of professional translators.
Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).

Setting the IPv4 Mode of the iBMC (ipmode)

Function

The ipmode command is used
to specify how the iBMC IPv4 address is allocated.

Format

ipmcset -d ipmode -v <dhcp | static>

Parameters

Parameter

Description

Value

dhcp

The DHCP server dynamically allocates an IP address
to the iBMC.

–

static

The iBMC uses a static IP address.

–

Usage Guidelines

Switch modules do not support this command.

After the IPv4 mode is changed, the new
configuration takes effect immediately.

The 172.31.1.*/24 network
segment is reserved for the server internal communication network
ports. If the automatically assigned iBMC IP address conflicts with
this reserved network segment, the iBMC management network port will
be unavailable. If this occurs, run the smmset -l shelf -d
subnet -v subnetaddress maskaddress command provided by
the management module to change the network segment reserved for internal
communication. For details, see the user guide of the management module.

Example

# Enable the iBMC to use an IPv4 address dynamically allocated by the DHCP server.

Setting iBMC IPv6 Address (ipaddr6)

Function

The ipaddr6 command
is used to set the IPv6 address, prefix length, and gateway address
of the iBMC.

Format

ipmcset -d ipaddr6 -v <ipaddr6/prefixlen> [gateway6]

Parameters

Parameter

Description

Value

ipaddr6

Indicates the IPv6 address to be set for the iBMC.

An IP address that is 128 bits in length
consisting of eight 16-bit fields: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx.

However, most IPv6 addresses do not occupy all
128 bits and can be abbreviated. In addition, the two-colon (::) notation
can be used to represent contiguous 16-bit fields of zeros, and leading
zeroes in a field can be omitted.

For example, the IPv6 address 2001:0db8:3c4d:0015:0000:0000:1a2f:1a2b can be abbreviated
as 2001:db8:3c4d:15::1a2f:1a2b.

prefixlen

Indicates the prefix length to be set for the iBMC.

0 to 128

gateway6

Indicates the IPv6 gateway address to be set for the iBMC.

An IP address that is 128 bits in length
consisting of eight 16-bit fields: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx.

However, most IPv6 addresses do not occupy all
128 bits and can be abbreviated. In addition, the two-colon (::) notation
can be used to represent contiguous 16-bit fields of zeros, and leading
zeroes in a field can be omitted.

For example,
the IPv6 address 2001:0db8:3c4d:0015:0000:0000:1a2f:1a20 can be abbreviated as 2001:db8:3c4d:15::1a2f:1a20.

Usage Guidelines

Switch modules do not support this command.

After
an IPv6 address is changed, the new IP address takes effect immediately.

In addition to the IPv6 address, Link-Local Address can be used to access the iBMC. You
can run the ipmcget command to obtain Link-Local Address.

Example

# Set the IPv6 address of the iBMC to 2011::6516,
prefix length to 64, and IPv6 gateway to 2011:1.

Format

Parameters

An IP address that is 128 bits in length
consisting of eight 16-bit fields: xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx:xxxx.

However, most IPv6 addresses do not occupy all
128 bits and can be abbreviated. In addition, the two-colon (::) notation
can be used to represent contiguous 16-bit fields of zeros, and leading
zeroes in a field can be omitted.

For example, the IPv6 address 2001:0db8:3c4d:0015:0000:0000:1a2f:1a2b can be abbreviated
as 2001:db8:3c4d:15::1a2f:1a2b.

Usage Guidelines

Switch modules do not support this command.

After
the gateway address is changed, the new gateway address takes effect
immediately.

Querying and Redirecting the Serial Port (serialdir)

Function

The serialdir command is used to query and set serial port redirection.

Format

ipmcget -d serialdir

ipmcset -d serialdir -v<option>

Parameters

Parameter

Description

Value

<option>

Indicates the serial port to be used.

0: redirects the serial port on the server
panel to the system serial port.

1: redirects the serial port on the server
panel to the iBMC serial
port.

2: redirects the SOL port to the system
serial port.

3: redirects the SOL port to the iBMC serial port.

The value range of this parameter varies with the server model.
Before setting the serial port, run the ipmcget -d serialdir command to query the value range of this parameter.

Usage Guidelines

The redirection setting of the SOL port takes precedence over
the setting of the serial port on the server panel. If you redirect
the SOL port to the system or iBMC serial port that is currently redirected from the serial port
on the server panel, the serial port on the server panel will become
unavailable temporarily. The serial port on the server panel will
restore its original setting only after the SOL port is disconnected.

If the serial port (serial port on the panel or SOL serial port)
is set as the system serial port, you can press Del during the OS startup process to enter the BIOS Setup screen.

Example

# Redirect the serial port on
the server panel to the iBMC serial port.

Querying the Login Security Banner (securitybanner -d info)

Function

The securitybanner -d info command is used to query
the security banner displayed on the iBMC login page.

Format

ipmcget -t securitybanner -d info

Parameters

None

Usage Guidelines

None

Example

# Query the login security banner.

iBMC:/-> ipmcget -t securitybanner -d info
Login security banner information state: enabled.
Login security banner information:
WARNING! This system is PRIVATE and PROPRIETARY and may only be accessed by authorized users. Unauthorized use of the system is prohibited. The owner, or its agents, may monitor any activity or communication on the system. The owner, or its agents, may retrieve any information stored within the system. By accessing and using the system, you are consenting to such monitoring and information retrieval for law enforcement and other purposes.

Importing an SSL Certificate (certificate -d import)

Function

The certificate -d import command is used to import
a Secure Sockets Layer (SSL) certificate to the iBMC.