Basic Analysis of vswitch MAC address

Source: Internet
Author: User
Tags cisco commands

The MAC address table of the switch records the MAC address, interface number, and VLAN of the device connected to the switch interface. Data can be quickly forwarded based on the MAC address table to reduce broadcast fluctuations. The MAC address table can be divided into three types: static MAC addresses, dynamic MAC addresses, and black hole MAC addresses.

The static MAC address is manually configured by the Administrator to implement the unique ing between the vswitch interface and the MAC address of the device. The MAC address of this address table has no aging time.

The dynamic MAC address is a ing between the vswitch interface and the MAC address of the device after the switch forwards data through the device's data frame. the MAC address table learned in this way will have an aging time, of course, this time can be modified. If no data is converted during MAC address aging time, the entry is deleted.

Black Hole MAC address: deletes or discards a source-target MAC address ing to improve the security of the switch port.

Related Configuration:

<Sysname> system-View/* enter user attempt mode */

[Sysname] VLAN 10

[Sysname-vlan10] Port gigabitethernet1/0/1 gigabitethernet1/0/2/* drag the two ports into vlan10 */

[Sysname-vlan10] Quit

[Sysname] Mac-address static XXXX-XXXX interface gigabitethernet 1/0/1 VLAN 10/* is similar to Cisco commands. Data Forwarding of this MAC address is performed through G1/0/1. */

[Sysname] interface gigabitethernet 1/0/2
[Sysname-GigabitEthernet1/0/10] Mac-address max-Mac-count 0/* the maximum number of addresses learned by this interface is 0 */
[Sysname-GigabitEthernet1/0/10] Mac-address static XXXX-xxxx vlan 10/* Static configuration fixed MAC address */

[Sysname-GigabitEthernet1/0/10] Mac-address max-Mac-count disable-Forwarding/* when the number of addresses for this interface reaches the configured maximum, no traffic is forwarded to the source MAC address that is not configured */

[Sysname-GigabitEthernet1/0/10] Quit


[Sysname] display Mac-address/* view MAC address table */

[Sysname] display Mac-address interface gigabitethernet 1/0/2/* view the MAC address table of G1/0/2 */

Mac Information

Configure the Mac information function for the device port to add or delete the Mac trap information for the switch port, and finally form a SYSLOG log to monitor the network.

[Sysname] Mac-address information enable/* Global enable Mac Information Mode */

[Sysname] Mac-address information mode trap/* The Global working mode is trap */

[Sysname] interface gigabitethernet 1/0/1

[Sysname-gigabitethernet 1/0/1] Mac-address information enable added

[Sysname-gigabitethernet 1/0/1] Mac-address information enable deleted

[Sysname-gigabitethernet 1/0/1] Quit

This article is from the "Story of actors" blog, please be sure to keep this source http://crhust.blog.51cto.com/1215994/1441253

Basic Analysis of vswitch MAC address

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.