Qtech QSW-2900-24T-AC [28/209] Configure mac address item

2-26
show mac-address-table age-time
Use show mac-address-table age-time command to display MAC address aging time.
show mac-address-table age-time
For example:
! Display MAC address aging time.
QTECH(config)#show mac-address-table aging-time
2.3.4 Configure MAC address item
a) Add MAC address
MAC address table can be added manually besides dynamically learning.
mac-address-table { dynamic | permanent | static } mac interface interface-num vlan vlan-id
Parameter mac, vlan-id and interface-num corresponded to the three attributions of the new MAC address
table item.
MAC address attribution can be configured to be dynamic, permanent and static. Dynamic MAC address can
be aging; permanent MAC address will not be aging and this MAC address will exist after rebooting; static MAC
address will not be aging, but it will be lost after rebooting.
For example:
! Add mac address 00:01:02:03:04:05 to be static address table.
QTECH(config)#mac-address-table static 00:01:02:03:04:05 interface ethernet 0/1 vlan 1
b) Add blackhole MAC address
System can configure MAC address table item to be blackhole item. When the source address or destination
address is blackhole MAC address, it will be dropped.
mac-address-table blackhole mac vlan vlan-id
For example:
! When tagged head of the packet is VLAN 1, forbid packet with its source address or destination address
being 00:01:02:03:04:05 to go through system
QTECH(config)#mac-address-table blackhole 00:01:02:03:04:05 vlan 1
c) 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

Содержание

Скачать
Случайные обсуждения