粘性 MAC - 在运行配置中不起作用/出现?

网络工程 思科 端口安全
2022-02-21 16:51:00

运行 3 x 3850 堆叠。

在某些界面上,我运行以下命令:

interface GigabitEthernet1/0/1
description Servers
switchport access vlan 50
switchport mode access
switchport port-security mac-address sticky
ip access-group xxxxxx in
spanning-tree bpduguard enable

但是我可以插入其他设备并且它们获得连接并且“Learnt”MAC地址不会出现在运行配置中。

它似乎没有成功实施 Stick MAC。

这似乎是由于端口安全无法按照以下输出工作:

CABA_SW#show port-security int g 1/0/1
Port Security              : Disabled
Port Status                : Secure-down
Violation Mode             : Shutdown
Aging Time                 : 0 mins
Aging Type                 : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses      : 1
Total MAC Addresses        : 0
Configured MAC Addresses   : 0
Sticky MAC Addresses       : 0
Last Source Address:Vlan   : 0000.0000.0000:0
Security Violation Count   : 0

我认为命令“switchport port-security mac-address sticky”会启用端口安全性?

IOS:

Cisco IOS XE Software, Version 16.06.01
Cisco IOS Software [Everest], Catalyst L3 Switch Software (CAT3K_CAA-UNIVERSALK9-M), Version 16.6.1, RELEASE SOFTWARE (fc2)

有什么建议么?

问候

艾丹

1个回答

您还需要输入“switch port-security”命令,如下所示:

interface GigabitEthernet1/0/1
 description Servers
 switchport access vlan 50
 switchport mode access
 switchport port-security
 switchport port-security mac-address sticky
 ip access-group xxxxxx in
 spanning-tree bpduguard enable

谢谢

艾丹