Qtech QSW-3900-48-SFP-DC [47/245] Add mac address

Qtech QSW-3900-48-SFP-DC [47/245] Add mac address
QTECH Software Configuration Manual
3-46
time. Use no mac-address age-time command to restore it to default time.
mac-address-table age-time { agetime | disable }
no mac-address-table age-time
Agetime means MAC address aging time which ranges from 1 to 1048575 seconds. Default MAC address
aging time is 300 seconds. Disable means MAC address not aging. Use no command to restore the default MAC
address aging time.
For example :
! Configure MAC address aging time to be 3600 seconds
QTECH(config)#mac-address-table age-time 3600
! Restore MAC address aging time to be 300 seconds
QTECH(config)#no mac-address-table age-time
Display MAC address aging time
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
3.6 Configure MAC address item
3.6.1 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/0/1
vlan 1
3.6.2 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

Содержание

Похожие устройства

Скачать