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