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 - Interface Management

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

This document provides the basic concepts, configuration procedures, and configuration examples of the interfaces supported by the device.
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 a Sub-interface

Configuring a Sub-interface

A sub-interface is a virtual interface configured on a physical interface to allow users who belong to different VLANs to communicate with each other.

Configuring an Ethernet Sub-interface

Context

Generally, each physical interface is configured with one main IP address. When Layer 3 devices connect to Layer 2 devices in different VLANs through a Layer 3 Ethernet interface, the main IP address of the Layer 3 physical interface cannot support communication between different VLANs.

Sub-IP addresses or sub-interfaces can be configured on the Layer 3 Ethernet interface to solve the issue. Sub-IP addresses are valid only when the main IP address is valid. Sub-interfaces share the physical configuration of the main interface but have independent link layer and network layer configurations. Therefore, sub-interfaces can function independently of the main interface. Sub-interfaces are created on the Ethernet interface that connects Layer 3 devices to Layer 2 devices in different VLANs to ensure commutation between different VLANs.

Pre-configuration Tasks

Before configuring an Ethernet sub-interface, complete the following tasks:

  • Correctly connecting the physical interface of the sub-interface

  • Configuring a Layer 3 main interface

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number.subinterface-number

    The Ethernet sub-interface view is displayed.

    subinterface-number specifies the number of an Ethernet sub-interface.

    NOTE:

    A sub-interface cannot be created on an Eth-Trunk member interface.

  3. Configure an IP address for the Ethernet sub-interface.

    • Configure an IPv4 address for the Ethernet sub-interface.

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

      An IP address is configured for the Ethernet sub-interface.

      NOTE:

      If you need to configure a secondary IP address for the Ethernet sub-interface, specify the sub parameter.

    • Configure an IPv6 address for the Ethernet sub-interface.

      For the detailed configuration, see Configuring IPv6 Addresses for Interfaces in the Huawei AR100&AR120&AR150&AR160&AR200&AR1200&AR2200&AR3200&AR3600 Series Enterprise Routers Configuration Guide - IP Service - Basic IPv6 Configurations.

  4. Configure an Ethernet sub-interface for termination.

    For the detailed configuration, see the Huawei AR100&AR120&AR150&AR160&AR200&AR1200&AR2200&AR3200&AR3600 Series Enterprise Routers Configuration Guide - Ethernet Switching Configuration Guide- VLAN Termination Configuration.

Verifying the Configuration

Run the display interface [ interface-type [ interface-number [.subnumber ] ] ] command to check the status of the specified Ethernet sub-interface.

Configuring an Eth-Trunk Sub-interface

Context

Sub-interfaces can be configured on a Layer 3 Eth-Trunk interface. When Layer 3 devices connect to Layer 2 devices in different VALNs through the Layer 3 Eth-Trunk interface, sub-interfaces must be configured on the Eth-Trunk interface to identify packets from different VLANs and to enable users in different VLANs to communicate with each other.

Pre-Configuration

Before configuring an Eth-Trunk sub-interface, complete the following tasks:

  • Using physical links to connect devices correctly

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface eth-trunk trunk-id

    A Layer 2 Eth-Trunk interface is created.

  3. Run undo portswitch

    A Layer 3 Eth-Trunk interface is configured.

  4. Run quit

    The system view is displayed.

  5. Run interface eth-trunk trunk-id.subnumber

    A sub-interface is created for the Layer 3 Eth-Trunk interface.

    subnumber specifies the number of an Eth-Trunk sub-interface.

  6. Configure an IP address for the Eth-Trunk sub-interface.

    • Configure an IPv4 address for the Eth-Trunk sub-interface.

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

      An IP address is configured for the Eth-Trunk sub-interface.

      NOTE:

      If you need to configure a secondary IP address for the Eth-Trunk sub-interface, specify the sub parameter.

    • Configure an IPv6 address for the Eth-Trunk sub-interface.

      For the detailed configuration, see Configuring IPv6 Addresses for Interfaces in the Huawei AR100&AR120&AR150&AR160&AR200&AR1200&AR2200&AR3200&AR3600 Series Enterprise Routers Configuration Guide - IP Service - Basic IPv6 Configurations.

Verifying the Configuration

Run the display interface eth-trunk [ trunk-id [ .subnumber ] ] command to check the status of the Eth-Trunk sub-interface.

Configuring a PON Sub-interface

Context

NOTE:

The AR109, AR109W, AR109GW-L, and AR129CGVW-L do not support the PON sub-interfaces.

Sub-interfaces can be configured on a PON interface. To ensure that the PON interface can identify different VLAN packets and users in different VLANs can communicate, create mapping between sub-interfaces and VLANs on the connected PON interface.

Pre-configuration Tasks

Before configuring a PON sub-interface, complete the following tasks:

  • Correctly connecting the physical interface of the sub-interface

  • Configuring a Layer 3 main interface

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface pon interface-number.subinterface-number

    The PON sub-interface view is displayed.

    The parameter subinterface-number specifies the number of the PON sub-interface.

  3. Configure an IP address for the PON sub-interface.

    • Configure an IPv4 address for the PON sub-interface.

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

      An IP address is configured for the PON sub-interface.

      NOTE:

      If you need to configure a secondary IP address for the PON sub-interface, specify the sub parameter.

    • Configure an IPv6 address for the PON sub-interface.

      For the detailed configuration, see Configuring IPv6 Addresses for Interfaces in the Huawei AR100&AR120&AR150&AR160&AR200&AR1200&AR2200&AR3200&AR3600 Series Enterprise Routers Configuration Guide - IP Service - Basic IPv6 Configurations.

Configuring ATM Sub-interfaces

Context

NOTE:

The AR109, AR109W, AR109GW-L, and AR129CGVW-L do not support the ATM sub-interfaces.

Configuring ATM sub-interfaces implements P2MP connections on ATM links.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface atm interface-number.subnumber [ p2mp | p2p ]

    An ATM sub-interface is configured.

    subnumber specifies the number of the ATM Sub-interface. The number ranges from 1 to 1024.

    The default type of an ATM sub-interface is P2MP.

  3. Configuring ATM Sub-interfaces

    For details about ATM sub-interface configuration, refer to ATM Configuration in the Huawei AR100&AR120&AR150&AR160&AR200&AR1200&AR2200&AR3200&AR3600 Series Enterprise Routers Configuration Guide - WAN.

Configuring FR Sub-interfaces

Context

NOTE:

The AR109, AR109W, AR109GW-L, and AR129CGVW-L do not support the FR sub-interfaces.

Configuring FR sub-interfaces implements P2MP connections on FR links.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number

    The interface view is displayed.

  3. Run link-protocol fr [ ietf | nonstandard ]

    The link layer protocol of the interface is configured as FR.

  4. Run quit

    Return to the system view.

  5. Run interface interface-type interface-number.subnumber [ p2mp | p2p ]

    An FR sub-interface is configured.

    subnumber is the number of the sub-interface. The value ranges from 1 to 1024.

    The default type of an FR sub-interface is P2MP.

  6. Run ip address ip-address { mask | mask-length } [ sub ]

    An IP address is assigned to the FR sub-interface.

  7. Configuring FR Sub-interfaces.

    The items described below can be configured on an FR sub-interface:

    • Frame Relay address mapping different from the main interface

    • IP address which is not in the same network segment as the main interface

    • Virtual circuit of the sub-interface

    For details about FR sub-interface configuration, refer to FR Configuration in the Huawei AR100&AR120&AR150&AR160&AR200&AR1200&AR2200&AR3200&AR3600 Series Enterprise Routers Configuration Guide - WAN.

Configuring a Layer 2 Sub-interface

Context

On a VXLAN network, you need to configure VXLAN service access points on a VXLAN network edge node. You can configure Layer 2 sub-interfaces to implement access service configuration on service access points.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run interface interface-type interface-number.subinterface-number mode l2

    A Layer 2 sub-interface is created and the Layer 2 sub-interface view is displayed.

    By default, no Layer 2 sub-interface is created.

  3. Configure the Layer 2 sub-interface.

    For details about Layer 2 sub-interface configuration, see Huawei AR100&AR120&AR150&AR160&AR200&AR1200&AR2200&AR3200&AR3600 Series Enterprise Routers Configuration Guide - VXLAN.

Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069331

Views: 21234

Downloads: 95

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