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

S12700 V200R010C00 Configuration Guide - Ethernet Switching

This document describes the configuration of Ethernet services, including configuring link aggregation, VLANs, Voice VLAN, VLAN mapping, QinQ, GVRP, MAC table, STP/RSTP/MSTP, SEP, and so on.
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 Subnet-based VLAN Assignment

Configuring IP Subnet-based VLAN Assignment

Context

IP subnet-based and protocol-based VLAN assignments are network layer-based VLAN assignments. They reduce manual VLAN configuration workload and allow users to easily join a VLAN, transfer from one VLAN to another, and exit from a VLAN. IP subnet-based VLAN assignment applies to scenarios where there are high requirements for mobility and simplified management and low requirements for security. For example, when a PC configured with multiple IP addresses needs to access servers on different network segments or when a switch adds PCs to other VLANs when the PCs' IP addresses change.

A switch that has IP subnet-based VLAN assignment enabled processes only untagged frames, and treats tagged frames in the same manner as interface-based VLAN assignment.

After receiving untagged frames from an interface, the switch determines the VLANs that the frames belong to using the source IP addresses or network segments, and then transmits the frames to the specified VLANs.

Procedure

  1. Run:

    system-view

    The system view is displayed.

  2. Run:

    vlan vlan-id

    A VLAN is created and the VLAN view is displayed. If the specified VLAN has been created, the VLAN view is directly displayed.

    The VLAN ID ranges from 1 to 4094. If VLANs need to be created in a batch, run the vlan batch { vlan-id1 [ to vlan-id2 ] } &<1-10> command to create VLANs in a batch, and then run the vlan vlan-id command to enter the view of a specified VLAN.

    NOTE:

    If a device is configured with multiple VLANs, configuring names for these VLANs is recommended:

    Run the name vlan-name command in the VLAN view. After a VLAN name is configured, you can run the vlan vlan-name vlan-name command in the system view to enter the corresponding VLAN view.

    The vlan configuration command completes vLAN configurations when the VLAN is not created.

  3. Run:

    ip-subnet-vlan [ ip-subnet-index ] ip ip-address { mask | mask-length } [ priority priority ]

    An IP subnet is associated with a VLAN.

    • ip-subnet-index specifies the index of an IP subnet. The index of an IP subnet can be configured manually or automatically generated by the system according to the sequence in which IP subnets were associated with a VLAN.

    • ip-address specifies the source IP address or network segment associated with a VLAN. The value is in dotted decimal notation.

    • priority specifies the 802.1p priority of a VLAN associated with an IP address or a network segment. The value ranges from 0 to 7. A larger value indicates a higher priority. The default value is 0. After the 802.1p priority of a VLAN associated with an IP address or a network segment is specified, the switch forwards high-priority frames first during network congestion.

    • The switch supports a maximum of 256 network segments and each VLAN supports a maximum of 12 network segments.

  4. Run:

    quit

    Return to the system view.

  5. Configure attributes for the Ethernet interface.

    1. Run:

      interface interface-type interface-number

      The view of the Ethernet interface to be added to the VLAN is displayed.

    2. Run:

      port link-type hybrid

      The interface is configured as the hybrid interface.

      On access and trunk interfaces, IP subnet-based VLAN assignment can be used only when the IP subnet-based VLAN is the same as the PVID. It is recommended that IP subnet-based VLAN assignment be configured on hybrid interfaces.

    3. port hybrid untagged vlan { { vlan-id1 [ to vlan-id2 ] } &<1-10> | all }

      The hybrid interface is configured to allow the IP subnet-based VLAN.

  6. (Optional) Run:

    vlan precedence ip-subnet-vlan

    The device is configured to preferentially use IP subnet-based VLAN assignment.

    By default, the device preferentially uses MAC address-based VLAN assignment.

    NOTE:

    The vlan precedence command is not supported on the X series cards.

  7. Run:

    ip-subnet-vlan enable

    IP subnet-based VLAN assignment is enabled.

    By default, IP subnet-based VLAN assignment is disabled.

    NOTE:

    IP subnet-based VLAN assignment is invalid for packets with the VLAN ID of 0 on the X series cards.

Checking the Configuration

  • Run the display ip-subnet-vlan vlan { all | vlan-id1 [ to vlan-id2 ] } command in any view to check information about IP subnets associated with VLANs.
  • Run the display vlan command in any view to check information about VLANs.
Translation
Download
Updated: 2019-08-21

Document ID: EDOC1000142081

Views: 255912

Downloads: 408

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