API Guide

Identifier GUID-01F56EBF-D1E2-4A77-91AF-3F8E1CC0A8B4
Version 5
Status Translation approved
介质访问控制
所有以太网交换端口都维护介质访问控制 (MAC) 地址表。网络中的每个物理设备均包含 MAC 地址。OS10 设备会在 MAC 地址表中
自动输入 MAC 作为动态条目的地址。
了解 MAC 的地址条目可能会过时。将帐龄计时器设置为零 (0) 以禁用 MAC 老化。对于任何动态输入如果在具有 MAC 地址的设备
上没有数据包到达计时器期限内的源或目标地址则会从表移除该地址。
CONFIGURATION 模式下输入帐龄时间以秒为单位), 0 1000000默认值为 1800
mac address-table aging-time seconds
配置老化时间
OS10(config)# mac address-table aging-time 900
禁用老化时间
OS10(config)# mac address-table aging-time 0
Identifier GUID-A778D001-EEF9-4EB9-A4B1-4C02B82EF528
Version 6
Status Translation approved
静态 MAC 地址
手动配置静态 MAC 地址条目。静态条目不受老化的约束。
CONFIGURATION 模式下的 MAC 地址表中创建静态 MAC 地址条目。
mac-address-table static nn:nn:nn:nn:nn vlan vlan-id interface [ethernet node/slot/
port[:subport] | port-channel channel-number]
: 在使用 mac-address-table static 命令之前请创建所需的 VLAN。如果在配置静态 MAC 地址条目之前未创建
VLAN系统会显示一条错误消息。
设置静态 MAC 地址
OS10(config)# interface vlan 10
OS10(conf-if-vl-11)# exit
OS10(config)# mac address-table static 34:17:eb:f2:ab:c6 vlan 10 interface ethernet 1/1/5
Identifier
GUID-14A9958F-5CF0-4E3D-9943-66D25B3FADB5
Version 5
Status Translation approved
MAC 地址表
OS10 维护 MAC 地址表条目的列表。
EXEC 模式下查看 MAC 地址表的内容。
show mac address-table {dynamic | static} [address mac-address | vlan vlan-id | interface
{ethernet node/slot/port[:subport] | port-channel number}] [count [vlan vlan-id]
[interface {type node/slot/port[:subport] | port-channel number}]
dynamic 可选显示动态 MAC 地址表条目信息。
static 可选显示静态 MAC 地址表条目信息。
address mac-address 可选显示 MAC 地址信息。
interface ethernet node/slot/port[:subport] 可选显示动态和静态 MAC 地址条目的列表。
430 2