有如下显示:
Number of permanent addresses : 0
Number of restricted static addresses : 0
Number of dynamic addresses : 2
Address Dest Interface Type Source Interface List
----------------------------------------------------------------------
0060.4740.D88C Ethernet 0/2 Dynamic All
00E0.B064.41F4 Ethernet 0/1 Dynamic All
进入全局模式
switch#conf t
Enter configuration commands, one per line. End with CNTL/Z
switch(config)#int Ethernet 0/2
输入以下命令以打开端口安全模式:
switch(config-if)#port secure
switch(config-if)#port secure clear
switch(config-if)#port secure max-mac-coun t 1
(c ount 中无空格,因论坛原因,特意隔开)
则再进入特许模式,可以看到
switch#show mac-address-table
Number of permanent addresses : 1
Number of restricted static addresses : 0
Number of dynamic addresses : 1
Address Dest Interface Type Source Interface List
----------------------------------------------------------------------
0060.4740.D88C Ethernet 0/2 Permanent All
00E0.B064.41F4 Ethernet 0/1 Dynamic All
以及:
switch#show mac-address-table security
Action upon address violation : Suspend
Interface Addressing Security Address Table Size Clear Address
-------------------------------------------------------------------------------
Ethernet 0/1 Disabled N/A No
Ethernet 0/2 Enabled 1 Yes
Ethernet 0/3 Disabled N/A No
Ethernet 0/4 Disabled N/A No
Ethernet 0/5 Disabled N/A No
Ethernet 0/6 Disabled N/A No
Ethernet 0/7 Disabled N/A No
Ethernet 0/8 Disabled N/A No
Ethernet 0/9 Disabled N/A No
Ethernet 0/10 Disabled N/A No
Ethernet 0/11 Disabled N/A No
Ethernet 0/12 Disabled N/A No
Ethernet 0/13 Disabled N/A No
Ethernet 0/14 Disabled N/A No
Ethernet 0/15 Disabled N/A No
Ethernet 0/16 Disabled N/A No
Ethernet 0/17 Disabled N/A No