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

NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services 01

This is NE20E-S2 V800R010C10SPC500 Configuration Guide - IP Services
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 Addresses on an Interface

Configuring IP Addresses on an Interface

This section describes how to configure IP addresses for a device so that the device can communicate with other devices on the network.

Usage Scenario

To run IP services on an interface, configure an IP address for the interface. Each interface on a device can be configured with multiple IP addresses. If IP addresses are configured in primary or secondary mode, one primary and multiple secondary IP addresses can be configured on an interface. If the primary or secondary status of IP addresses is ignored, the device does not differentiate primary IP addresses from secondary IP addresses.

If IP addresses are configured in primary or secondary mode, you need to configure only one primary IP address for an interface. In some special cases, you need to configure one or more secondary IP addresses for an interface. For example, a device connects to a physical network through one of its interfaces. Hosts on the physical network belong to two different Class C networks. To allow the device to communicate with all the hosts on the physical network, configure a primary IP address and a secondary IP address for the interface on the device.

If the device ignores the primary or secondary status of IP addresses, you need to configure only one IP address for an interface. In some special cases, you need to configure multiple IP addresses for an interface. For example, multiple IP addresses need to be configured on an interface to differentiate user services. To delete an IP address on an interface without affecting other IP addresses during a service cutover, enable the device to ignore the primary or secondary status of IP addresses so that any IP address configured on the interface can be deleted.

By default, IP addresses are configured in primary or secondary mode.

NOTE:
  • For IP addresses in primary or secondary mode:
    • One primary IP address and multiple secondary IP addresses can be configured on an interface.
    • If a secondary IP address exists, the primary IP address cannot be deleted.
    • If both primary and secondary IP addresses are configured on an interface of a device, the device cannot be enabled to ignore the primary or secondary status of IP addresses.
  • For IP addresses whose primary or secondary status is ignored:
    • Multiple IP addresses can be configured on an interface.
    • Any IP address configured on an interface can be deleted.
    • If multiple IP addresses are configured on an interface of a device, the device cannot be configured to differentiate primary IP addresses from secondary IP addresses.
    • The ip address ignore primary-sub enable and ip address conflict check disable commands are mutually exclusive.

Pre-configuration Tasks

Before configuring IP addresses on an interface, configure link layer protocol parameters for the interface and ensure that the link layer protocol of the interface is Up.

Procedure

  • For IP addresses whose primary or secondary status is ignored:
    1. Run system-view

      The system view is displayed.

    2. Run ip address ignore primary-sub enable

      The device is enabled to ignore the primary or secondary status of IP addresses.

      In primary/secondary IP address mode, the device uses the primary IP address of an interface to interact with other devices while processing specific services. When a device is enabled to ignore the primary or secondary status of IP addresses, the device uses the first IP address of an interface to interact with other devices while processing specific services. For example, the device uses the first IP address of an interface to establish a neighbor relationship while processing a routing protocol service (the neighbor relationship can be viewed using the display this command on the interface).

    3. Run commit

      The configuration is committed.

    4. Run interface interface-type interface-number

      The interface view is displayed.

    5. Run ip address ip-address { mask | mask-length }

      An IP address is configured for the interface.

      Run this command multiple times on the interface to configure multiple IP addresses for the interface.

      A maximum of 256 IP addresses can be configured for each interface.

    6. Run commit

      The configuration is committed.

  • For IP addresses in primary or secondary mode:
    1. Run system-view

      The system view is displayed.

    2. (Optional) Run undo ip address ignore primary-sub enable

      The device is configured to differentiate primary IP addresses from secondary IP addresses.

    3. Run interface interface-type interface-number

      The interface view is displayed.

    4. Run ip address ip-address { mask | mask-length }

      A primary IP address is configured.

      An interface can have only one primary IP address. If the ip address ip-address { mask | mask-length } command is run more than once to configure a primary IP address for an interface, the latest configuration overrides the previous one.

    5. (Optional) Run ip address ip-address { mask | mask-length } sub

      A secondary IP address is configured for the interface.

      To save the IP address space, you can configure secondary IP addresses with 31-bit masks for an interface.

      A maximum of 255 secondary IP addresses can be configured for each interface.

    6. Run commit

      The configuration is committed.

Checking the Configurations

  • Run the display interface [ interface-type [ interface-number ] ] command to check interface information.
  • Run the display ip interface multi-address command to check all interfaces configured with multiple IP addresses.
Run the display interface command to view the configurations of the IP address and subnet mask of the interface.
<DeviceA> display interface gigabitethernet 0/1/0
GE0/1/0 current state : UP (ifindex: 6)
Line protocol current state : UP 
Description: 
Route Port,The Maximum Transmit Unit is 1500
Internet protocol processing : disabled
IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 3812-d011-0300
Loopback:none, LAN full-duplex mode, Pause Flowcontrol: Receive Enable and Send Enable
Last physical up time   : -
Last physical down time : 2013-09-12 07:57:59
Current system time: 2013-09-12 09:23:39
Statistics last cleared:never
      Last 300 seconds input rate: 23513 bits/sec, 2 packets/sec
      Last 300 seconds output rate: 64319 bits/sec, 3 packets/sec
      Input peak rate 26099 bits/sec, Record time: 2013-07-29 15:40:58
      Output peak rate 64809 bits/sec, Record time: 2013-07-30 03:59:41
      Input: 183126871 bytes, 182525 packets 
      Output: 509287017 bytes, 244628 packets
    Input:
      Unicast: 55 packets, Multicast: 160762 packets
      Broadcast: 21708 packets, JumboOctets: 31031 packets
      CRC: 0 packets, Symbol: 0 packets
      Overrun: 0 packets, InRangeLength: 0 packets
      LongPacket: 0 packets, Jabber: 0 packets, Alignment: 0 packets
      Fragment: 0 packets, Undersized Frame: 0 packets
      RxPause: 0 packets
    Output:
      Unicast: 53 packets, Multicast: 243990 packets
      Broadcast: 585 packets, JumboOctets: 0 packets
      Lost: 0 packets, Overflow: 0 packets, Underrun: 0 packets
      System: 0 packets, Overruns: 0 packets
      TxPause: 0 packets
    Last 300 seconds input utility rate:  0.01%
    Last 300 seconds output utility rate: 0.01%
Run the display ip interface multi-address command to view all interfaces configured with multiple IP addresses.
<DeviceA> display ip interface multi-address
Interface                         AddrNum
-----------------------------------------
GigabitEthernet0/1/1                    3
GigabitEthernet0/1/2                    2
Translation
Download
Updated: 2019-01-02

Document ID: EDOC1100055376

Views: 15621

Downloads: 33

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