3com S7906E 참조 가이드

다운로드
페이지 2327
 
1-9 
Examples 
# Enable port security, set the port security mode of port GigabitEthernet 2/0/1 to autoLearn, and add a 
secure MAC address of 0001-0001-0002 (belonging to VLAN 10) for port GigabitEthernet 2/0/1 in 
system view.  
<Sysname> system-view 
[Sysname] port-security enable 
[Sysname] interface gigabitethernet 2/0/1 
[Sysname-GigabitEthernet2/0/1] port-security max-mac-count 100 
[Sysname-GigabitEthernet2/0/1] port-security port-mode autolearn 
[Sysname-GigabitEthernet2/0/1] quit 
[Sysname] port-security mac-address security 0001-0001-0002 interface gigabitethernet 2/0/1 
vlan 10 
# Enable port security, set the port security mode of port GigabitEthernet 2/0/1 to autoLearn, and add a 
secure MAC address of 0001-0002-0003 (belonging to VLAN 4) for port GigabitEthernet 2/0/1 in 
interface view.  
<Sysname> system-view 
[Sysname] port-security enable 
[Sysname] interface gigabitethernet 2/0/1 
[Sysname-GigabitEthernet2/0/1] port-security max-mac-count 100 
[Sysname-GigabitEthernet2/0/1] port-security port-mode autolearn 
[Sysname-GigabitEthernet2/0/1] port-security mac-address security 0001-0002-0003 vlan 4 
port-security max-mac-count 
Syntax 
port-security max-mac-count count-value 
undo port-security max-mac-count 
View 
Ethernet interface view 
Default Level 
2: System level 
Parameters 
count-value: Maximum number of secure MAC addresses allowed on the port, ranging 1 to 1,024. 
Description 
Use the port-security max-mac-count command to set the maximum number of secure MAC 
addresses allowed on the port.  
Use the undo port-security max-mac-count command to restore the default setting.  
By default, the maximum number of secure MAC addresses is not limited.  
Note that: 
You cannot change the maximum number of secure MAC addresses for a port working in the 
autoLearn mode.