beautypg.com

1 configuring a mac address entry, I. adding a mac address entry in system view, 1 configuring a mac address entry -4 – H3C Technologies H3C S3100 Series Switches User Manual

Page 170

background image

Operation Manual – MAC Address Table

H3C S3100-52P Ethernet Switch

Chapter 1

MAC Address Table

Management

1-4

z

Configuring the maximum number of MAC addresses a port can learn

1.2.1 Configuring a MAC Address Entry

You can add, modify, or remove one MAC address entry, remove all MAC address
entries (unicast MAC addresses only) concerning a specific port, or remove specific
type of MAC address entries (dynamic or static MAC address entries).
You can add a MAC address entry in either system view or Ethernet port view.

I. Adding a MAC address entry in system view

Table 1-2

Add a MAC address entry in system view

Operation

Command

Description

Enter system view

system-view

Add a MAC address

entry

mac-address

{ static | dynamic |

blackhole

}

mac

-address interface

interface

-type interface-number vlan vlan-id

Required

Caution:

z

When you add a MAC address entry, the port specified by the interface argument
must belong to the VLAN specified by the vlan argument in the command.
Otherwise, the entry will not be added.

z

If the VLAN specified by the vlan argument is a dynamic VLAN, after a static MAC
address is added, it will become a static VLAN.

II. Adding a MAC address entry in Ethernet port view

Table 1-3

Add a MAC address entry in Ethernet port view

Operation

Command

Description

Enter system view system-view

Enter Ethernet port

view

interface

interface-type

interface-number

Add a MAC

address entry

mac-address

{ static | dynamic |

blackhole

} mac-address vlan vlan-id Required