CISCO交换机命令全集加说明3( 四 )


mac-address-table aging-time
no mac-address-table aging-time
Syntax Description
seconds A value from 10 to 1000000 seconds.

Default
300 seconds
Command Mode
Global configuration
Example
This example shows how to specify a MAC address table aging time of 250000 seconds.
hostname(config)# mac-address-table aging-time 250000
Related Commands
clear (mac-address-table)
mac-address-table (restricted static)
show (mac-address-table)
mac-address-table (permanent)
Use the mac-address-table permanent global configuration command to associate a permanent unicast or multicast MAC address with a particular switched port interface (specified by type and module/port). Use the no mac-address-table permanent command to delete a permanent MAC address.
mac-address-table permanent mac-address type module/port
no mac-address-table permanent mac-address type module/port
Syntax Description
mac-address MAC address.
type Interface type: ethernet, fastethernet, fddi, atm, or port-channel.
module Module interface number:0 for fixed1 or A for module A2 or B for module B
port Port interface number ranging from 1 to 28:1 to 25 Ethernet (fixed)26, 27 Fast Ethernet (fixed)Port channel

Default
No permanent addresses are assigned.
Command Mode
Global configuration
Usage Guidelines
Use the arguments module/port only for switched ports and modules. When deleting an address by using the no mac-address-table permanent command, specify the interface on which the address resides.
If you delete an address that is not present in the address table, the following error message appears:
% Error: MAC address not found
Example
This example shows how to specify that packets with the multicast destination address 0140.C80A.2F07 should be forwarded on the Fast Ethernet interface 27.

hostname(config)# mac-address-table permanent 0140.C80A.2F07 fastethernet 0/27
Related Commands
clear (mac-address-table)
mac-address-table (aging-time)
mac-address-table (restricted static)
show (mac-address-table)
mac-address-table (restricted static)
Use the mac-address-table restricted static global configuration command to associate a restricted static address with a particular switched port interface (specified as type module/port). Use the no mac-address-table restricted static command to delete a restricted static address.
mac-address-table restricted static mac-address type module/port src-if-list
no mac-address-table restricted static mac-address type module/port
Syntax Description
mac-address MAC address.
type Interface type: ethernet, fastethernet, fddi, atm, and port-channel.
module Module interface number:0 for fixed1 or A for module 1 2 or B for module 2
port Port interface number ranging from 1 to 28:1 to 25 Ethernet (fixed)26, 27 Fast Ethernet (fixed)Port channel
src-if-list List of acceptable interfaces separated by spaces.

Default
No addresses are assigned.
Command Mode
Global configuration
Usage Guidelines
Use the arguments module/port only for switched ports and modules. Traffic to a restricted static address is only accepted from the interfaces specified in src-if-list.
Example
This example shows how to configure a packet with MAC address of 0040.C80A.2F07 to come in on either Ethernet interface 1 or Ethernet interface 2 and be forwarded to the Fast Ethernet interface 27.
hostname(config)# mac-address-table restricted static 0040.C80A.2F07 fastethernet 0/27 ethernet 0/1 ethernet 0/2
Related Commands
clear (mac-address-table)
mac-address-table (aging-time)
mac-address-table (permanent)
show (mac-address-table)
menu
Use the menu privileged Exec command to access the main menu console.
menu
Syntax Description
This command has no arguments or keywords.
Command Mode
Privileged Exec
Example
This example shows how to display the main menu console.
2820# menu
Catalyst 2820 - Main Menu

推荐阅读