Comware Based
1753970 Members
7449 Online
108811 Solutions
New Discussion юеВ

Re: Enable Port-Security MAC Address Help me pls

 
Fizgon
Occasional Contributor

Enable Port-Security MAC Address Help me pls

I have a switch 5130 HPE 24G PoE comware 7 but I have the problem that enabled port-security and when I connect more than 1 computer in a port does not indicate Violation port-security I need your help my configuration is this.

System-view
Port-security enable
------------------------------------------
GigabitEthernet1 / 0/1 interface
port access vlan 500
stp edged-port enable
port-security max-mac-count 1
port-security port-mode autolearn
port-security intrusion-mode blockmac
port-security mac-address security 001c-257b-553c vlan 500

excuse my bad translation
thanks

 

2 REPLIES 2
vladi0782
Advisor

Re: Enable Port-Security MAC Address Help me pls

I share my configuration

_________________________________

port-security enable
port-security timer disableport 120
port-security timer autolearn aging 2

________________________________

interface GigabitEthernet1/0/9

port-security intrusion-mode disableport-temporarily
port-security mac-address dynamic
port-security max-mac-count 1
port-security port-mode autolearn

______________________________

snmp-agent
snmp-agent trap enable port-security intrusion
_________________________________________

Activate the terminal monitor to see the logs

Switch#terminal monitor

 

 

 

 

Be happy for this moment. This moment is your life
Nitish_N
HPE Pro

Re: Enable Port-Security MAC Address Help me pls

Hi,

As per the issue I can see you're not able to connect two PC's in single switch port due to port security. To connect more than one PC or device in a single switch port please change the max-mac to 2 or more as required and also add the mac-address of the second device which you're connecting to the port.

 

port-security max-mac-count 2
port-security mac-address security 0000-aaaa-bbbb vlan 500

 

Thanks,

-N


Accept or Kudo