10-03-2025 07:38 AM - edited 10-03-2025 07:42 AM
I'm looking at some macro configs and I noticed we have basically a macro for a PLC and a Macro for PC. Here are the two configs below:
interface GigabitEthernet1/3
description EN2T Slot 2
switchport mode access
switchport port-security violation restrict
switchport port-security aging type inactivity
switchport port-security
ip arp inspection trust
load-interval 30
macro description ab-ethernetip
alarm-profile ab-alarm
spanning-tree portfast
service-policy input CIP-PTP-Traffic
service-policy output PTP-Event-Priority
interface GigabitEthernet2/2
description IBA Server .4
switchport mode access
switchport port-security violation restrict
switchport port-security aging time 2
switchport port-security aging type inactivity
switchport port-security
macro description desktop-automation
alarm-profile ab-alarm
spanning-tree portfast
spanning-tree bpduguard enable
service-policy input CIP-PTP-Traffic
service-policy output Policymap-Output-Default
They are both configured for port security but the PC has the aging time for inactivity explicitly stated as 2, while the one for the PLC does not have any aging time set. Does anyone know what the behavior would be for the PLC port? I can't find any information about a default inactivity aging timer when it is configured, but not explicitly stated.
10-03-2025 08:48 AM
Since PLC is always connected, it does not move like dynamic ports; I can go with it in minutes.
switchport port-security maximum 1
Even if you prefer a more secure option, I recommend a stick MAC, so no other device can work on that port until you replace the PLC with a new device.
example :
configure terminal
interface <interface-id>
switchport mode access
switchport port-security
switchport port-security maximum 1
switchport port-security mac-address sticky
switchport port-security violation shutdown
end
10-04-2025 08:03 AM
10-04-2025 10:08 AM
what model switch is the IE switch model ?
Cat 9300 never used Macros with PLC - but above configuration works for me
if you looking macros - then look below document :
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide