API Guide
示例 (VLAN)
OS10(config)# mac address-table static 34:17:eb:f2:ab:c6 vlan 1 interface
ethernet 1/1/30
示例(端口通道)
OS10(config)# mac address-table static 34:17:eb:02:8c:33 vlan 10 interface
port-channel 1
支持的版本
10.2.0E or later
Identifier GUID-6839C482-101D-4FE1-9BFC-AF1E2E49C04E
Version 5
Status Translation approved
show mac address-table
显示有关 MAC 地址表的信息。
语法
show mac address-table [address mac-address | aging-time | [count [vlan vlan-
id] | dynamic | interface {ethernet node/slot/port[:subport] | port-channel
number}]| static [address mac-address] | vlan vlan-id
参数
• address mac-address —(可选)显示 MAC 地址表信息。
• aging-time —(可选)显示 MAC 地址表老化时间信息。
• count —(可选)显示动态和静态 MAC 地址条目的数量。
• dynamic —(可选)仅显示动态 MAC 地址表条目。
• interface — 设置接口类型:
• ethernet node/slot/port[:subport] — 显示物理接口 MAC 地址表信息。
• port-channel channel-number — 显示端口通道接口的 MAC 地址表信息,从 1 到 128。
• static —(可选)仅显示静态 MAC 地址表条目。
• vlan vlan-id —(可选)仅显示 VLAN 信息,从 1 到 4093。
默认 未配置
命令模式
EXEC
使用情况信息
网络设备维护在启动配置文件中保存的静态 MAC 地址条目,并重新引导和删除动态条目。
示例(地址)
OS10# show mac address-table address 90:b1:1c:f4:a6:8f
VlanId Mac Address Type Interface
1 90:b1:1c:f4:a6:8f dynamic ethernet1/1/3
示例(老化时间)
OS10# show mac address-table aging-time
Global Mac-address-table aging time : 1800
示例(计数)
OS10# show mac address-table count
MAC Entries for all vlans :
Dynamic Address Count : 5
Static Address (User-defined) Count : 0
Total MAC Addresses in Use: 5
示例(动态)
OS10# show mac address-table dynamic
VlanId Mac Address Type Interface
1 90:b1:1c:f4:a6:8f dynamic ethernet1/1/3
示例(以太网)
OS10# show mac address-table interface ethernet 1/1/3
VlanId Mac Address Type Interface
1 66:38:3a:62:31:3a dynamic ethernet1/1/3
支持的版本
10.2.0E or later
第 2 层 433