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

Fat AP and Cloud AP V200R010C00 Command Reference

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).
ip address

ip address

Function

The ip address command configures an IP address for an interface.

The undo ip address command deletes an IP address from an interface.

By default, no IP address is configured for an interface.

Format

ip address ip-address { mask | mask-length } [ sub ]

undo ip address [ ip-address { mask | mask-length } [ sub ] ]

Parameters

Parameter

Description

Value

ip-address { mask | mask-length }

Specifies the IP address of an interface.
  • ip-address specifies the IP address.
  • mask specifies the mask of the IP address.
  • mask-length specifies the mask length of IP address.
  • The value of ip-address is in dotted decimal notation.
  • The value of mask is in dotted decimal notation.
  • The value of mask-length is an integer that ranges from 0 to 32.

sub

Configures a secondary IP address for an interface.

-

Views

VLANIF interface view, loopback interface view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The ip address command configures IP addresses for interfaces on the wireless access point so that the wireless access point can communicate with different network segments. To connect an interface to multiple network segments, configure multiple IP addresses for the interface. Among these IP addresses, one is the primary IP address and the others are secondary IP addresses. If you configure a new primary IP address for the interface, the new IP address overrides the original one.

  • The undo ip address command deletes all IP addresses from an interface.
  • The undo ip address ip-address { mask | mask-length } command deletes the primary IP address of an interface.
  • The undo ip address ip-address { mask | mask-length } sub command deletes a secondary IP address.

Precautions

You must delete all secondary IP addresses before deleting the primary IP address.

Example

# Configure a primary IP address 192.168.0.1 and a secondary IP address 10.38.160.1 for VLANIF100, with subnet mask 255.255.255.0.

<Huawei> system-view
[Huawei] interface vlanif 100
[Huawei-Vlanif100] ip address 192.168.0.1 255.255.255.0
[Huawei-Vlanif100] ip address 10.38.160.1 255.255.255.0 sub
Related Topics
Translation
Download
Updated: 2019-11-21

Document ID: EDOC1100064352

Views: 203211

Downloads: 122

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