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).
MAC

MAC

Each switch maintains a MAC address table (MAC table for short). The MAC table records MAC addresses of all the devices connected to interfaces of the switch. When forwarding a data frame, the switch searches the MAC table for the outbound interface according to the destination MAC address of the frame. This reduces the number of broadcast frames.

MAC Address Table

You can enter the search criteria to search entries in the MAC table.

Context

The MAC table stores MAC addresses, VLAN IDs, and outbound interfaces learned by a switch. When forwarding an Ethernet frame, the switch searches the MAC table for the outbound interface according to the destination MAC address and VLAN ID in the Ethernet frame.

Procedure

  1. Choose Service Management > MAC > MAC Address Table in the navigation tree to open the MAC Address Table page, as shown in Figure 2-116.

    Figure 2-116  MAC Address Table

    Table 2-60 describes the parameters on the MAC Address Table page.

    Table 2-60  MAC Address Table

    Parameter

    Description

    MAC type

    Searches MAC entries based on the MAC entry type. The options are All, Static, Dynamic, Blackhole, and Sticky.

    Interface name

    Searches MAC based on interfaces. Enter the interface type and number, for example, Eth-Trunk12.

    MAC

    Searches MAC entries based on MAC addresses.

    VLAN

    Searches MAC entries based on VLAN IDs .

  2. Set the search criteria.
  3. Click Query. The search results are displayed.

MAC Aging Time

The MAC table needs to be updated constantly because the network topology always changes. The entries automatically generated in a MAC table are not always valid. Each entry has a lifecycle. If an entry is not updated within the lifecycle, it is deleted. This lifecycle is called the aging time. If an entry is updated before its lifecycle ends, the aging timer of the entry is reset.

Context

You need to set the aging time properly. If the aging time is excessively short, the switch may broadcast a large number of data frames because their destination MAC addresses cannot be found in the MAC table. This degrades the performance of the switch.
  • If the aging time is excessively long, the switch may save a large number of useless MAC entries, and new MAC entries cannot be added because the number of MAC entries is limited. As a result, the switch cannot update the MAC table according to network changes.
  • If the aging time is excessively short, the switch may delete valid MAC entries, and therefore the forwarding performance is degraded.

Generally, the default aging time (300s) is recommended.

Procedure

  1. Choose Service Management > MAC > MAC Aging Time in the navigation tree to open the MAC Aging Time page, as shown in Figure 2-117.

    Figure 2-117  MAC Aging Time

    Table 2-61 describes the parameters on the MAC Aging Time page.

    Table 2-61  MAC Aging Time

    Parameter

    Description

    Aging time

    Indicates the aging time of MAC entries.

  2. Set the parameters.
  3. Click Apply to complete the configuration.

MAC Learning

A switch can learn source MAC addresses of data frames. After learning the interface connected to the destination host, the switch sends data frames to the interface instead of broadcasting data frames to all interfaces in the VLAN.

Context

By learning MAC addresses, a switch can obtain MAC addresses of devices on the network connected to an interface.

Procedure

  • Query MAC address learning on an interface.
    1. Choose Service Management > MAC > MAC Learning in the navigation tree to open the MAC Learning page.
    2. Set the search criteria.
    3. Click Query. The search results are displayed.
  • Configure MAC address learning on an interface.
    1. Choose Service Management > MAC > MAC Learning in the navigation tree to open the MAC Learning page.
    2. In the Configure MAC Learning on Interface group box, select a record and click Configure. The Configure Dynamic MAC Learning page is displayed, as shown in Figure 2-118.

      Figure 2-118  Configure Dynamic MAC Learning

      Table 2-62 describes the parameters on the Configure Dynamic MAC Learning page.

      Table 2-62  Configure Dynamic MAC Learning on interface

      Parameter

      Description

      Interface name

      Indicates the name of an interface. The interface name cannot be modified. You can select multiple interfaces each time.

      If only one interface is selected, the configuration of the interface is displayed. If multiple interfaces are selected, the default settings of the interfaces are displayed.

      MAC learning

      Indicates whether to enable MAC address learning.

      Packet drop

      Indicates whether packets are discarded or forwarded when MAC address learning is disabled.

      Max MAC entries to be learned

      Indicates the maximum number of MAC addresses that an interface can learn.

      This parameter limits the number of entries in the MAC table.

      NOTE:

      After the sticky MAC function is enabled on the interface, Max MAC entries to be learned and Actions for exceeding the MAC limit become unavailable.

      Actions for exceeding the MAC limit

      Indicates the action performed when the number of MAC entries reaches the limit. The options are Forward and Discard.

    3. Set the parameters.
    4. Click OK.

      NOTE:

      To cancel the MAC address learning limit on an interface, select the corresponding record on the MAC Learning page and click Cancel Limit.

  • Query MAC address learning on a VLAN.
    1. Choose Service Management > MAC > MAC Learning in the navigation tree to open the MAC Learning page.
    2. Set the search criteria.
    3. Click Query. The search results are displayed.
  • Configure MAC address learning on a VLAN.
    1. Choose Service Management > MAC > MAC Learning in the navigation tree to open the MAC Learning page.
    2. In the Configure MAC Learning on VLAN group box, select a record and click Configure. The Configure Dynamic MAC Learning page is displayed, as shown in Figure 2-119.

      Figure 2-119  Configure Dynamic MAC Learning

      Table 2-63 describes the parameters on the Configure Dynamic MAC Learning page.

      Table 2-63  Configure Dynamic MAC Learning on VLAN

      Parameter

      Description

      VLAN ID

      Indicates VLAN ID. The VLAN ID cannot be modified. You can select multiple interfaces each time.

      If only one interface is selected, the configuration of the interface is displayed. If multiple interfaces are selected, the default settings of the interfaces are displayed.

      MAC learning

      Indicates whether to enable MAC address learning.

      Max MAC entries to be learned

      Indicates the maximum number of MAC addresses that a VLAN can learn.

      This parameter limits the number of entries in the MAC table.

    3. Set the parameters.
    4. Click OK.

      NOTE:

      To cancel the MAC address learning limit in a VLAN, select the corresponding record on the MAC Learning page and click Cancel Limit.

Static MAC Table

Static MAC entries are manually configured and never age.

Procedure

  • Search static MAC entries.
    1. Choose Service Management > MAC > Static MAC Table in the navigation tree to open the Static MAC Table page.
    2. Set the search criteria.
    3. Click Query to display all matching records.
  • Create a static MAC entry.
    1. Choose Service Management > MAC > Static MAC Table in the navigation tree to open the Static MAC Table page.
    2. Click Create to open the Create Static MAC Entry page, as shown in Figure 2-120.

      Figure 2-120  Create Static MAC Entry

      Table 2-64 describes the parameters on the Create Static MAC Entry page.

      Table 2-64  Create Static MAC Entry

      Parameter

      Description

      MAC

      Indicates a MAC address in the format H-H-H. This parameter is mandatory.

      VLAN ID

      Indicates the IDs of VLANs. This parameter is mandatory.

      Interface name

      Indicates the name of an interface, for example, Eth-Trunk12. This parameter is mandatory.
      NOTE:

      The interface must be a member of the specified VLAN.

    3. Set parameters.
    4. Click OK.
  • Modify a static MAC entry.
    1. Choose Service Management > MAC > Static MAC Table in the navigation tree to open the Static MAC Table page.
    2. Click to open the Modify Static MAC Entry page, as shown in Figure 2-121.

      Figure 2-121  Modify Static MAC Entry

      NOTE:
      • Table 2-64 describes the parameters on the Modify Static MAC Entry page.
      • The VLAN ID and MAC address cannot be modified.

    3. Set parameters.
    4. Click OK.
  • Delete a static MAC entry.
    1. Choose Service Management > MAC > Static MAC Table in the navigation tree to open the Static MAC Table page.
    2. Select a record that you want to delete and click Delete. The system asks you whether to delete the record.
    3. Click OK.

Blackhole MAC Table

Blackhole MAC entries are used to discard data frames with the specified source or destination MAC addresses. They are manually configured and never age.

Context

Blackhole MAC entries are used to discard data frames with the specified source or destination MAC addresses.

Procedure

  • Create a blackhole MAC entry.
    1. Choose Service Management > MAC > Blackhole MAC Table in the navigation tree to open the Blackhole MAC Table page.
    2. Click Create to open the Create Blackhole MAC Entry page, as shown in Figure 2-122.

      Figure 2-122  Create Blackhole MAC Entry

      Table 2-65 describes the parameters on the Create Blackhole MAC Entry page.

      Table 2-65  Create Blackhole MAC Entry

      Parameter

      Description

      Select entry

      Indicates the type of a blackhole MAC entry. This parameter is mandatory. The options are:
      • Global entry
      • VLAN-based entry

      By default, Global entry is selected.

      MAC

      Indicates a blackhole MAC address, in the format H-H-H.

      VLAN ID

      Indicates the IDs of VLANs. This parameter is mandatory.

      This parameter is available only when VLAN-based entry is selected.

    3. Set parameters.
    4. Click OK.
  • Delete a blackhole MAC entry.
    1. Choose Service Management > MAC > Blackhole MAC Table in the navigation tree to open the Blackhole MAC Table page.
    2. Select a record that you want to delete and click Delete. The system asks you whether to delete the record.
    3. Click OK.

MAC Address Table Info

This section describes how to query parameters on the MAC Address Table Info page.

Context

The device records the interfaces before and after MAC address flapping occurs, which helps you to monitor the device running.

Procedure

  1. Choose Service Management > MAC > MAC Address Table Info in the navigation tree to open the MAC Address Table Info page, as shown in Figure 2-123.

    Figure 2-123  MAC Address Table Info page

    Table 2-66 describes the parameters on the MAC Address Table Info page.

    Table 2-66  Description of parameters on the MAC Address Table Info page

    Parameter

    Description

    MAC

    Searches MAC entries based on MAC addresses.

    VLAN ID

    Searches MAC entries based on VLAN IDs.

    Original Interface name

    Enters the name of the interface before flapping occurs, for example, Eth-Trunk12.

    Latest Interface name

    Enters the name of the interface after flapping occurs, for example, Eth-Trunk1.

  2. Set the search criteria.
  3. Click Query. The search results are displayed.

Sticky MAC

You can configure the sticky MAC function on an interface.

Context

After the sticky MAC function is enabled on an interface, the dynamic MAC addresses learned by the interface change to Sticky MAC addresses.

Procedure

  • Enable the sticky MAC function.
    1. Choose Service Management > MAC > Sticky MAC in the navigation tree to open the Sticky MAC page, as shown in Figure 2-124.

      Figure 2-124  Sticky MAC

      Table 2-67 describes the parameters in the Sticky MAC Enabled group box on this page.

      Table 2-67  Sticky MAC Enabled

      Parameter

      Description

      Port security

      Indicates whether to enable port security. The options are Enabled and Disabled. By default, port security is disabled. The following parameters are available only when Enabled is selected.

      Sticky MAC

      Indicates whether to enable the Sticky MAC function. The options are Enabled and Disabled. By default, the sticky MAC function is disabled.
      NOTE:

      If the number of sticky MAC addresses on an interface does not reach the limit, the newly learned MAC addresses are converted to static MAC addresses. When the number of sticky MAC addresses reaches the limit, non-sticky MAC entries are deleted when new MAC addresses are learned.

      Interface protection mode

      Indicates the interface protection mode, that is, the action performed when the number of learned MAC addresses reaches the limit. The options are:
      • Discard

        The interface discards all the subsequent packets whose source MAC addresses are not in the MAC table.

      • Discard and Alarm

        The interface discards all the subsequent packets whose source MAC addresses are not in the MAC table and sends a trap.

      • Shutdown

        The system shuts down the interface and generates an alarm.

      Max MAC entries to be learned

      Indicates the maximum number of MAC addresses that an interface can learn.

      This parameter limits the number of entries in the MAC table.

    2. Set the parameters.
    3. Click Apply to complete the configuration.
Translation
Download
Updated: 2019-04-18

Document ID: EDOC1000114003

Views: 36952

Downloads: 992

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