No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

FusionServer Tools 2.0 uREST User Guide 16

Rate and give feedback:
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 IPv6

Setting IPv6

Function

Configure the IPv6 address used for iBMC communication, including the obtaining mode, IPv6 address, gateway, and prefix length.

Format

./urest -H HOST -p PORT -U USERNAME -P PASSWORD setipv6 -IP ADDRESS -M {Static,DHCPv6} -G GATEWAY -L PREFIXLENGTH

Parameters

Parameter

Description

Value

HOST

iBMC IP address or domain name. It is a mandatory parameter. If an IPv6 address is used, the IPv6 address must be included in square brackets, such as [1001::1001].

-

PORT

Port number. The default value is 443. It is an optional parameter.

Enter the port number if the default value 443 is not used.

USERNAME

iBMC user name. It is a mandatory parameter.

-

PASSWORD

Password of the iBMC user. It is a mandatory parameter.

-

ADDRESS

IPv6 address. It is an optional parameter.

-

{Static,DHCPv6}

IPv6 address obtaining mode. It is an optional parameter.

This parameter can be set to Static or DHCPv6.

GATEWAY

IPv6 gateway address. It is an optional parameter.

-

PREFIXLENGTH

Prefix length of the IPv6 address. It is an optional parameter.

Only integers are supported.

Usage Guidelines

  • When the current obtaining mode is DHCPv6, the independent configuration of the IPv6 address attribute takes effect, but an error is reported if the IPv6 address and prefix length are set at the same time.
  • When the obtaining mode and other network attributes (such as the IP address and prefix length) are set at the same time, an error is reported if the obtaining mode is set to DHCPv6.
  • The prefix length of the IPv6 address can only be an integer. An attribute format error is reported if the value is not an integer.

Example

Obtain help information.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setipv6 -h 
usage: urest setipv6 [-h] [-IP ADDRESS] [-M {Static,DHCPv6}] [-G GATEWAY] 
                          [-L PREFIXLENGTH] 

optional arguments: 
  -h, --help          show this help message and exit 
  -IP ADDRESS         IPv6 address of the iBMC network port 
  -M {Static,DHCPv6}  how the IPv6 address of the iBMC network port is 
                      allocated 
  -G GATEWAY          gateway IPv6 address of the iBMC network port 
  -L PREFIXLENGTH     IPv6 address prefix length of the iBMC network port

Query IP address information.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** getip 

IPVersion           : IPv4AndIPv6 
PermanentMACAddress : 00:18:ac:64:0a:29 
IPv6DefaultGateway  : None 

[IPv4Addresses] 
---------------------------------------- 
SubnetMask          : 255.255.0.0 
AddressOrigin       : Static 
Gateway             : 10.10.10.10 
Address             : 10.10.10.10 
---------------------------------------- 

[IPv6Addresses] 
---------------------------------------- 
AddressOrigin       : Static 
PrefixLength        : None 
Address             : None 
---------------------------------------- 
AddressOrigin       : LinkLocal 
PrefixLength        : 64 
Address             : fe80::218:acff:fe64:a29 
---------------------------------------- 
AddressOrigin       : SLAAC 
PrefixLength        : 64 
Address             : 2001:100::218:acff:fe64:a29 
----------------------------------------

Set IPv6.

[root@localhost bin]# ./urest -H 10.10.10.10 -U ****** -P ****** setipv6 -G 10.10.10.10 
Success: successfully completed request
Translation
Download
Updated: 2020-02-13

Document ID: EDOC1000176182

Views: 119890

Downloads: 586

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next