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

OceanStor 2200 V3 and 2600 V3 Storage System V300R005 Command Reference

"Based on the CLI provided by the DeviceManager, this document describes how to use variouscommands classified by functions and how to set the CLI and manage the storage system throughthese commands."
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).
change logical_port general

change logical_port general

Function

The change logical_port general command is used to configure a logical port.

Format

change logical_port general logical_port_name=? { activation_status=? | failback_mode=? | failover_enable=? | home_port_type=? { eth_port_id=? | vlan_name=? | bond_port_id=? } | new_name=? } * [ address_family=? | ipv4_address=? | ipv4_mask=? | ipv4_gateway=? | ipv6_address=? | ipv6_mask=? | ipv6_gateway=? ]

Parameters

Parameter

Description

Value

logical_port_name=? Logical port name.

To obtain the value, run "show logical_port general". The value is 1 to 31 characters in length. Characters include numbers, letters, periods (.), underscores (_), and hyphens (-).

activation_status=? Logical port activation status.

The value can be yes or no.

address_family=? Logical port address family.

The value can be IPv4 or IPv6.

ipv4_address=? Logical port IPv4 address.

ipv4_mask=? Logical port IPv4 mask.

ipv4_gateway=? Logical port IPv4 gateway.

ipv6_address=? Logical port IPv6 address.

ipv6_mask=? Logical port IPv6 mask.

ipv6_gateway=? Logical port IPv6 gateway.

The value must be an IPv6 address.

home_port_type=? Logical port home port type.

The value can be:

  • eth: Ethernet port.
  • vlan: Virtual Local Area Network port.
  • bond: Bond port.
eth_port_id=? Logical port home port of eth ID.

To obtain the value, run "show port general". The value contains 1 to 31 characters, including letters, digits, and periods (.). The value cannot start with a digit or a period (.), or end with a period (.).

vlan_name=? Logical port home port of VLAN name.

To obtain the value, run "show vlan general". The value contains 1 to 63 characters, including letters, digits, underscores (_), hyphens (-), and periods (.).

failover_enabled=? Whether enable failover the logical port.

The value can be yes or no.

failback_mode=? Logical port failback mode.

The value can be manually or automatically.

bond_port_id=? Logical port home port of bond id.

To obtain the value, run "show bond_port general". The value contains 1 to 63 characters comprised of digits.

new_name=? Logical port new name.

The value contains 1 to 31 characters, including letters, digits, periods (.), underscores (_), and hyphens (-).

Level

Administrator

Usage Guidelines

  • Except "address_family", choose at least one other optional parameter.
  • If "address_family" is set to "IPv4", "ipv4_addr", "ipv4_mask", "ipv4_gateway" can be specified. If "address_family" is set to "IPv6", "ipv6_addr", "ipv6_mask", "ipv6_gateway" can be specified.
  • OceanStor 2200 V3 storage system do not support this command.

Example

  • To deactivate the logical port status, run the following command:

    admin:/>change logical_port general logical_port_name=lp002 activation_status=no
    DANGER: You are going to modify the properties for logical port. This operation may interrupt services or cause service exceptions. 
    Suggestion: Before you perform this operation, determine whether the modification is necessary.
    Have you read danger alert message carefully?(y/n)y
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.
  • To change the IP address, gateway, and mask of a specified logical port, run the following command:

    admin:/>change logical_port general logical_port_name=lp002 address_family=IPv4 ipv4_address=10.169.39.133 ipv4_gateway=10.169.1.1 ipv4_mask=255.255.255.0
    DANGER: You are going to modify the properties for logical port. This operation may interrupt services or cause service exceptions. 
    Suggestion: Before you perform this operation, determine whether the modification is necessary.
    Have you read danger alert message carefully?(y/n)y
    Are you sure you really want to perform the operation?(y/n)y
    Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-04-22

Document ID: EDOC1000106139

Views: 262369

Downloads: 178

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next