Hi I need to configure port security on Cisco 3750. Now the thing is I have configured the switch ports as trunk ports and every port is connected to a IP phone and PC. The problem is that when I apply port security it accepts the command but it doesn't work and if I plug in different device it starts working as well. The commands I am applying
interface FastEthernet1/0/1
switchport trunk encapsulation dot1q
switchport trunk native vlan 432
switchport mode trunk
switchport voice vlan 231
switchport port-security maximum 2
switchport port-security
switchport port-security violation protect
switchport port-security mac-address 0008.0260.0c1f
mls qos trust cos
spanning-tree portfast trunk
end
interface FastEthernet1/0/1
switchport trunk encapsulation dot1q
switchport trunk native vlan 432
switchport mode trunk
switchport voice vlan 231
switchport port-security maximum 2
switchport port-security
switchport port-security violation protect
switchport port-security mac-address 0008.0260.0c1f
mls qos trust cos
spanning-tree portfast trunk
end