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

CLI-based Configuration Guide - IP Service

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document describes the concepts and configuration procedures of IP Service features on the device, and provides the configuration examples.

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).
Example for Configuring Primary and Secondary IP Addresses for an Interface

Example for Configuring Primary and Secondary IP Addresses for an Interface

Networking Requirements

As shown in Figure 1-5, the Router has only one idle interface GE1/0/0 to connect to a LAN. The hosts on the LAN are located on two network segments: 10.16.1.0/24 and 10.16.2.0/24. The interface must be configured with two interfaces to provide access for hosts on the two network segments.

Figure 1-5  Network diagram for IP addresses configuration

Configuration Roadmap

The configuration roadmap is as follows:

Configure a primary IP address and a secondary IP address for the interface.

NOTE:

IP addresses of the same interface must be on different network segments.

Procedure

  1. Configure a primary IP address and a secondary IP address for GE1/0/0.

    <Huawei> system-view
    [Huawei] interface gigabitethernet 1/0/0
    [Huawei-GigabitEthernet1/0/0] ip address 10.16.1.1 24
    [Huawei-GigabitEthernet1/0/0] ip address 10.16.2.1 24 sub

  2. Verify the configuration.

    # Ping a host on network segment 10.16.1.0/24 from the Router. The ping operation succeeds.

    <Huawei> ping 10.16.1.2
    PING 10.16.1.2: 56  data bytes, press CTRL_C to break
        Reply from 10.16.1.2: bytes=56 Sequence=1 ttl=128 time=25 ms
        Reply from 10.16.1.2: bytes=56 Sequence=2 ttl=128 time=27 ms
        Reply from 10.16.1.2: bytes=56 Sequence=3 ttl=128 time=26 ms
        Reply from 10.16.1.2: bytes=56 Sequence=4 ttl=128 time=26 ms
        Reply from 10.16.1.2: bytes=56 Sequence=5 ttl=128 time=26 ms
      --- 10.16.1.2 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 25/26/27 ms

    # Ping a host on network segment 10.16.2.0/24 from the Router. The ping operation succeeds.

    <Huawei> ping 10.16.2.2
      PING 10.16.2.2: 56  data bytes, press CTRL_C to break
        Reply from 10.16.2.2: bytes=56 Sequence=1 ttl=128 time=25 ms
        Reply from 10.16.2.2: bytes=56 Sequence=2 ttl=128 time=26 ms
        Reply from 10.16.2.2: bytes=56 Sequence=3 ttl=128 time=26 ms
        Reply from 10.16.2.2: bytes=56 Sequence=4 ttl=128 time=26 ms
        Reply from 10.16.2.2: bytes=56 Sequence=5 ttl=128 time=26 ms
      --- 10.16.2.2 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 25/25/26 ms

    # The hosts of the two network segments can ping through each other.

Configuration Files

Configuration file of the Router

#
interface GigabitEthernet1/0/0
 ip address 10.16.1.1 255.255.255.0
 ip address 10.16.2.1 255.255.255.0 sub
#
return
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069333

Views: 43952

Downloads: 204

Average rating:
This Document Applies to these Products

Related Version

Related Documents

Share
Previous Next