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

OceanStor 18000 and 18000F V5 Series V500R007

This document is applicable to OceanStor 18500 V5, 18800 V5, 18500F V5, and 18800F V5. Based on the CLI provided by DeviceManager, 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_enabled=? | 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=? ] [ ddns_status=? ] [ dns_zone_name=? | remove_from_dns_zone=? ] [ listen_dns_query_enabled=? ]

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.

The logical port IPv4 address cannot start with 0 or an integer from 224 to 255.

ipv4_mask=?

Logical port IPv4 mask.

-

ipv4_gateway=?

Logical port IPv4 gateway.

The logical port IPv4 gateway cannot start with 0 or an integer from 224 to 255.

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=?

ID of the Ethernet port to which the logical port belongs.

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

vlan_name=?

Name of the VLAN port to which the logical port belongs.

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=?

ID of the port to which the logical port is bound.

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 (.).

ddns_status=?

Whether dynamic DNS turns on for a logical port.

The value can be:

  • "on": enables dynamic DNS parsing.
  • "off": disables dynamic DNS parsing.

The default value is "on".

dns_zone_name

DNS zone name.

A name contains 1 to 255 characters and consists of labels separated by periods (.). A label contains 1 to 63 characters including letters (case-insensitive), digits, hyphens (-), and underscores (_), and must start and end with a letter or a digit. To obtain the value, run the "show dns_zone general" command without parameters.

listen_dns_query_enabled

Whether to listen to DNS requests.

The value can be:

  • "on": enables dynamic DNS listening.
  • "off": disables dynamic DNS listening.

remove_from_dns_zone

Whether the logical port needs to be removed from the DNS zone when the logical port is configured.

The value can be:

  • "yes": removes the current logical port from the DNS zone where it belongs.

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", and "ipv4_gateway" can be specified. If "address_family" is set to "IPv6", "ipv6_addr", "ipv6_mask", and "ipv6_gateway" can be specified.

Example

  • Deactivate the logical port status.
    admin:/>change logical_port general logical_port_name=lp002 activation_status=no 
    DANGER: You are about to modify the properties of the logical port. This operation may interrupt services or cause service exceptions. If this operation also modifies the IP address of this logical port, the configured routes on the IP address that is modified on this logical port will also be cleared.  
    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 specified logical port.
    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 about to modify the properties of the logical port. This operation may interrupt services or cause service exceptions. If this operation also modifies the IP address of this logical port, the configured routes on the IP address that is modified on this logical port will also be cleared. 
    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-09-02

Document ID: EDOC1000181601

Views: 320212

Downloads: 41

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