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

S1720GFR, S2700, S5700, and S6720 V200R010C00 Web-based Configuration Guide

This document describes the configuration and maintenance of device through the web network management system. The web network management system provides the functions of viewing device information and managing the entire system, interfaces, services, ACL, QoS, routes, security, and tools.
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 VLANs

Example for Configuring VLANs

Networking Requirements

As shown in Figure 2-273, the switch of an enterprise connects to many users, and users accessing the same service connect to the enterprise network through different devices. To ensure communication security and prevent broadcast storms, the enterprise requires that users accessing the same service communicate and users accessing different services be isolated. You can configure interface-based VLAN assignment on the switch so that the switch adds interfaces connected to users using the same service to the same VLAN. Users in different VLANs cannot communicate at Layer 2, and users in the same VLAN can directly communicate with each other.
  • User 1 and user 2 in VLAN 2 are isolated from user 3 and user 4 in VLAN 3.
  • User 1 and user 2 in VLAN 2 can communicate with each other.
  • User 3 and user 4 in VLAN 3 can communicate with each other.
Figure 2-273  Networking for configuring VLANs

Configuration Roadmap

The configuration roadmap is as follows:

  1. Create VLANs and add interfaces connecting users to VLANs to implement isolation of Layer 2 traffic of different services.
  2. Configure link types of interfaces between SwitchA and SwitchB and VLANs allowed by interfaces so that users accessing the same service can communicate through SwitchA and SwitchB.
NOTE:

The configuration of SwitchA is described. The configuration of SwitchB is similar to that of SwitchA.

Procedure

  1. Create VLAN 2 and VLAN 3 on SwitchA.
    1. Choose Service Management > VLAN > VLAN in the navigation tree to open the VLAN page, as shown in Figure 2-274.

      Figure 2-274  VLAN page

    2. Click Create. The Create VLAN page is displayed.
    3. Enter 2,3 in VLAN ID, as shown in Figure 2-275.

      Figure 2-275  Create VLAN page

    4. Click OK.
    5. Click in the navigation tree, and in the dialog box that is displayed, click OK.
  2. Set the link type of GE0/0/1 and GE0/0/2 on SwitchA to access. GE0/0/1 is used as an example. The configuration of GE0/0/2 is similar to that of GE0/0/1, and is not mentioned here.

    # Check the link type of GE0/0/1.
    1. Choose Interface Management > Ethernet > Basic Attributes to open the Basic Attributes page.
    2. Select GigabitEthernet from the Interface Name drop-down list box.
    3. Enter the number of the interface that you want to query, for example, 0/0/1.
    4. Click Query.
    5. Select GigabitEthernet0/0/1 in the query area, as shown in Figure 2-276.
      Figure 2-276  Selecting an interface
    6. Click Configure to open the Configure Basic Attributes page, as shown in Figure 2-277.
      Figure 2-277  Querying the link type of the interface
    7. Check the value of Link type and click Cancel.

    # Set the link type of GE0/0/1 to Access.

    NOTE:

    If the link type of the interface is Access, you do not need to perform the following steps.

    If the link type of the interface is trunk or hybrid, change the link type according to Trunk Interface or Hybrid Interface. The following describes how to change the link type from trunk to access.

    1. Choose Service Management > VLAN > Trunk Interface in the navigation tree to open the Trunk Interface page.
    2. Select GigabitEthernet0/0/1 and click Change Link Type, as shown in Figure 2-278.
      Figure 2-278  Selecting an interface
    3. In the dialog box that is displayed, click OK.

      The Change Link Type dialog box is displayed, as shown in Figure 2-279.

      Figure 2-279  Changing the link type to Access

    4. Select Access.
    5. Click OK.
    6. Click in the navigation tree, and in the dialog box that is displayed, click OK.

  3. On SwitchA, add GE0/0/1 and GE0/0/2 to VLAN 2 and VLAN 3 respectively as Access interfaces. GE0/0/1 is used as an example. The configuration of GE0/0/2 is similar to that of GE0/0/1, and is not mentioned here.
    1. Choose Service Management > VLAN > Access Interface in the navigation tree to open the Access Interface page.
    2. Select GigabitEthernet0/0/1.
    3. Enter 2 in Add to VLAN, as shown in Figure 2-280.

      Figure 2-280  Adding an Access interface to a VLAN

    4. Click Add.
    5. Click in the navigation tree, and in the dialog box that is displayed, click OK.
  4. Configure GE0/0/3 on SwitchA as a trunk interface. The configuration is similar to that in 2, and is not mentioned here.
  5. On SwitchA, add GE0/0/3 to VLAN 2 and VLAN 3 as a trunk interface.
    1. Choose Service Management > VLAN > Trunk Interface in the navigation tree to open the Trunk Interface page.
    2. Click next to GigabitEthernet0/0/3. The Modify VLAN configuration on interface page is displayed.
    3. Enter 2,3 in Allowed VLAN, as shown in Figure 2-281.

      Figure 2-281  Adding a trunk interface to a VLAN

    4. Click OK.
    5. Click in the navigation tree, and in the dialog box that is displayed, click OK.

Result

On SwitchA and SwitchB, perform the following configurations.

Choose Service Management > VLAN > VLAN in the navigation tree to open the VLAN page.

  • Click Port List next to VLAN 2. The Port List page is displayed, as shown in Figure 2-282.

    GE0/0/1 and GE0/0/3 have joined VLAN 2.

    Click Close.

    Figure 2-282  Querying interfaces in VLAN 2
  • Click Port List next to VLAN 3. The Port List page is displayed, as shown in Figure 2-283.

    GE0/0/2 and GE0/0/3 have joined VLAN 3.

    Click Close.

    Figure 2-283  Querying interfaces in VLAN 3
Translation
Download
Updated: 2019-04-18

Document ID: EDOC1000114003

Views: 32410

Downloads: 981

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