QTECH
Software Configuration Manual
3-47
3.6.3
Delete MAC address item
Use no mac-address-table command to remove mac address table.
no mac-address-table
[ blackhole | dynamic | permanent | static ]
mac
vlan
vlan-id
no mac-address-table
[ dynamic | permanent | static ]
mac
interface
interface-num
vlan
vlan-id
no mac-address-table
[dynamic | permanent | static ] interface
interface-num
no mac-address-table
[ blackhole | dynamic | permanent | static ] vlan
vlan-id
no mac-address-table
Vlan means delete MAC address table item according to vlan-id; mac means deleting a specified MAC
address table item; interface-num means delete MAC address table item according to interface number; command
no mac-address-table means delete all MAC address.
For example :
! Delete all MAC address table item
QTECH(config)#no mac-address-table
3.6.4
Display MAC address table
Use show mac-address command to display MAC address table.
show mac-address-table
show mac-address-table
{
interface-num
[
vlan
vlan-id
] | cpu }
show mac-address-table
mac
[ vlan
vlan-id
]
show mac-address-table
{ blackhole | dynamic | permanent | static } [
vlan
vlan-id
]
show mac-address-table
{ blackhole | dynamic | permanent | static }
interface
interface-num
[
vlan
vlan-id
]
show mac-address-table
vlan
vlan-id
The parameter meaning is the same as that of add/delete MAC address table item.
3.6.5
Enable/disable MAC address learning
This command is a batch command in global configuration mode to configure all interfaces to be the same;
in interface configuration mode, it can configure interface MAC address learning. When MAC address learning is
forbidden in an interface, packet with unknown destination address received from other interface will not be
transmitted to this interface; and packet from this interface whose source address is not in this interface will not be
transmitted. By default, all interface MAC address learning enable.
mac-address-table learning
no mac-address-table learning
For example :
! Enable MAC address learning on interface Ethernet 0/0/7.
QTECH(config-if-ethernet-0/0/7)#no mac-address-table learning
3.6.6
Display MAC address learning
show mac-address learning
[ interface [
interface-num
] ]
Use show mac-address-table learning command to display MAC address learning.