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 2800 V3 V300R006

This document is applicable to OceanStor 2800 V3. 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. 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).
add logical_port ipv4_route

add logical_port ipv4_route

Function

The add logical_port ipv4_route command is used to add the logical port IPv4 route.

Format

add logical_port ipv4_route logical_port_name=? type=? [ ipv4_address=? ] [ ipv4_mask=? ] ipv4_gateway=?

Parameters

Parameter

Description

Value

logical_port_name=?

Logical port name.

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

type=?

Logical port route type.

The value can be "net", "host", or "default", where:

  • "net": indicates a route to the target network segment.
  • "host": indicates a route to the target host.
  • "default": indicates a default route. If there is no route to the target network segment or the target host, the target host accesses the storage system through the default route.

ipv4_address=?

Logical port IPv4 address.

The IPv4 address cannot start with 0.

ipv4_mask=?

Logical port IPv4 mask.

-

ipv4_gateway=?

Logical port IPv4 gateway.

-

table_type

Type of the routing table.

The value can be "all", "policy_table", or "default_table", where:

  • "all": indicates a policy routing table and default routing table.
  • "policy_table": indicates a policy routing table.
  • "default_table": indicates a default routing table.

Level

Administrator

Usage Guidelines

  • When the value of type is net or host, the parameter ipv4_address is expected.
  • When the value of type is net, the parameter ipv4_mask is expected.

Example

Add an IPv4 route for the logical port.

admin:/>add logical_port ipv4_route logical_port_name=lif1 type=net ipv4_address=192.168.0.0 ipv4_mask=255.255.0.0 ipv4_gateway=192.168.0.1 
Command executed successfully.

System Response

None

Translation
Download
Updated: 2019-07-12

Document ID: EDOC1000138382

Views: 312670

Downloads: 38

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