beautypg.com

Assigning mac addresses for ethernet ports – H3C Technologies H3C S3100 Series Switches User Manual

Page 213

background image

1-10

z

If the VLAN is configured as a remote probe VLAN used by port mirroring, you can not disable MAC

address learning of this VLAN. Similarly, after you disable MAC address learning, this VLAN can

not be configured as a remote probe VLAN.

z

Disabling the MAC address learning function of a VLAN takes no effect on enabling the MAC

address authentication on the ports that belong to the VLAN.

Assigning MAC Addresses for Ethernet Ports

By default, no Ethernet port of an S3100 switch is configured with a MAC address. Therefore, when the

switch sends Layer 2 protocol packets, for example, BPDUs of STP, it uses the MAC address

predefined in the protocol as the source address to send the BPDUs. As switches in your network may

use the same source MAC address for Layer 2 protocol data units (PDUs), different ports on a switch

may learn the same MAC address, thus affecting the maintenance of the MAC address table.

To avoid the problem, you are allowed to assign MAC addresses to the Ethernet ports on an S3100

series switch. The idea is to assign a MAC address (called the start port MAC address) for the start

Ethernet port, that is, Ethernet 1/0/1, and each of the following ports uses the MAC address of the

preceding port plus 1 as its MAC address.

For example, if you configure 000f-e200-0001 as the start port MAC address, then port Ethernet 1/0/2

will take MAC address 000f-e200-0002, and so on.

Follow these steps to configure the start port MAC address:

To do…

Use the command…

Remarks

Enter system view

system-view

Configure the start port MAC
address

port-mac start-mac-address

Required

No start port MAC address is
configured by default.

The start port MAC address must be a valid unicast address.

With the port MAC address configuration, the switch uses the MAC address of a port as the source

MAC address when sending the following Layer 2 PDUs out of the port:

z

LACP

z

STP

z

NDP/NTDP

z

GVRP

z

DLDP

Port MAC address configuration does not affect service packet forwarding.