Configuring a MAC Address Entry

You can add, modify, or remove a MAC address entry, remove all MAC address entries 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.

Adding a MAC address entry in system view

Follow these steps to add a MAC address entry in system view:

 

 

To do…

 

Use the command…

Remarks

 

 

 

Enter system view

 

system-view

 

 

 

 

 

 

 

 

 

 

 

 

mac-address { static dynamic

 

 

 

 

Add a MAC address entry

 

blackhole } mac-addressinterface

Required

 

 

 

 

interface-type interface-number vlan

 

 

 

 

 

 

 

 

 

 

vlan-id

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

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

Adding a MAC address entry in Ethernet port view

Follow these steps to add a MAC address entry in Ethernet port view:

 

To do…

Use the command…

Remarks

 

 

Enter system view

system-view

 

 

 

 

 

 

 

Enter Ethernet port view

interface interface-type interface-number

 

 

 

 

 

 

 

Add a MAC address entry

mac-address { static dynamic

Required

 

 

blackhole } mac-address vlan vlan-id

 

 

 

 

 

 

 

 

 

 

z

z

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

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.

1-5

Page 165
Image 165
3Com WX3000 Configuring a MAC Address Entry, Adding a MAC address entry in system view, Blackhole mac address interface