Adding or modifying a static or dynamic MAC address entry on an interface

Step

Command

Remarks

1. Enter system view.

system-view

N/A

2. Enter interface view.

  • Enter Layer 2 Ethernet interface view:interface interface-type interface-number

  • Enter Layer 2 aggregate interface view:interface bridge-aggregation interface-number

  • Enter S-channel interface view:interface s-channel interface-number.channel-id

  • Enter S-channel aggregate interface view:interface schannel-aggregation interface-number:channel-id

N/A

3. Add or modify a static or dynamic MAC address entry.

mac-address { dynamic | static } mac-address vlan vlan-id

By default, no MAC address entry is configured on an interface.

Make sure you have created the VLAN and assigned the interface to the VLAN.