cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
716
Views
0
Helpful
4
Replies

port security issue

ahmed.alshawaff
Level 1
Level 1

I had 2 macs ( ipphone+pc) connected on same interface on cisco switch both configured as sticky and maximum 2 as below:

 

int g1/0/3

switchport port-security

switchport port-security max 2

switchport port-security violation restrict
 switchport port-security mac-address sticky
 

the issue is Ip-phone works fine but pc couldn't get ip address related to violation  , could anyone recommend troubleshooting commands to solve this ??

 

1 Accepted Solution

Accepted Solutions

balaji.bandi
Hall of Fame
Hall of Fame

I will do standard as per cisco guidelines 

 

switchport access vlan XXX   <<-- data
switchport mode access
switchport voice vlan ZZZ  <-- voice VLAN
switchport port-security maximum 4
switchport port-security
switchport port-security aging time 5
switchport port-security violation restrict
switchport port-security aging type inactivity

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

View solution in original post

4 Replies 4

johnd2310
Level 8
Level 8

Hi,

 

Have you tried "switchport port-security max 3"?

 

Thanks

John

**Please rate posts you find helpful**

balaji.bandi
Hall of Fame
Hall of Fame

I will do standard as per cisco guidelines 

 

switchport access vlan XXX   <<-- data
switchport mode access
switchport voice vlan ZZZ  <-- voice VLAN
switchport port-security maximum 4
switchport port-security
switchport port-security aging time 5
switchport port-security violation restrict
switchport port-security aging type inactivity

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

problem is solved when I put maximum 4 , but I need to understand why we put maximum 4 ?

Sets the maximum number of secure MAC addresses for the interface - I do safe side 4 MAC Address.

 

For example : Phone, behind Phone PC ( may be users running some vm also in that PC, so give some flexibility.

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card