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 V200R008C00 CLI-based Configuration Guide

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).
Configuring IP Address

Configuring IP Address

This section describes how to configure an IPv4 address for an interface.

Configuring IP Addresses for Interfaces

To enable network devices to communicate at the network layer, configure interface IP addresses on the network devices.

Pre-configuration Tasks

Before configuring IP addresses for interfaces, complete the following tasks:

  • Setting link layer parameters for the interfaces to ensure that the link layer protocol status of the interfaces is Up

Configuring a Primary IP Address for an Interface

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed. The interface can be a VLANIF or loopback interface.

  3. Run:

    ip address ip-address { mask | mask-length }

    A primary IP address is configured for the interface.

    Each interface has only one primary IP address. If you configure multiple primary IP addresses for an interface, the last configured IP address becomes the primary IP address of the interface.

(Optional) Configuring a Secondary IP Address for an Interface

Context

Generally, an interface needs only a primary IP address. In some special scenarios, you need to configure secondary IP addresses for an interface. For example, a access point connects to a physical network through an interface, and hosts on this network belong to two network segments. To enable the access point to communicate with all hosts on the physical network, configure a primary IP address and a secondary IP address for this interface. You can configure multiple IP address for a Layer 3 interface on a access point, one as the primary IP address, and the others as secondary IP addresses. Each Layer 3 interface can have a maximum of 31 secondary IP addresses.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    interface interface-type interface-number

    The interface view is displayed. The interface can be a VLANIF or loopback interface.

  3. Run:

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

    A secondary IP address is configured for the interface.

Checking the Configuration

Procedure

  • Run the display ip interface [ interface-type interface-number ] command to check the IP address configuration of an interface.
  • Run the display ip interface brief [ interface-type [ interface-number ] ] command to check brief information about interface IP addresses.
Translation
Download
Updated: 2019-01-11

Document ID: EDOC1000176006

Views: 119155

Downloads: 309

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