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

Command Reference 10

OceanStor 5300 V3, 5500 V3, 5600 V3, 5800 V3, and 6800 V3 Storage System V300R003

"Based on the CLI, this document describes how to use various commands classified by functions and how to set the CLI and manage the storage system through these commands. The document that you browse online matches the latest C version of the product. Click Download to download documents of other C versions."
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. The value is 1 to 31 characters in length. Characters include numbers, letters, periods (.), underscores (_), and hyphens (-).

To obtain the value, run "show logical_port general".

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.

-.

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".

vlan_name=? Logical port home port of VLAN name.

To obtain the value, run "show vlan general".

failover_enabled=? Whether to enable failover for 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".

new_name=? Logical port new name.

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

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.

Example

  • Deactivate the logical port.

    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.
  • Change the IP address, gateway, and mask of a logical port with a specific ID.

    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-04

Document ID: EDOC1000084195

Views: 272964

Downloads: 1556

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