This article explains the persistent MAC learning, also known as sticky MAC, is a port security feature that allows retention of dynamically learned MAC addresses on an interface across restarts of the switch (or if the interface goes down).
For additional information on Persitent MAC, please refer to: http://www.juniper.net/techpubs/en_US/junos/topics/task/configuration/port-security-persistent-mac-learning-cli.html Configuring Persistent MAC learning on SRX. Use this configuration:
interfaces { ge-0/0/2 { unit 0 { family ethernet-switching { port-mode access; vlan { members 10; } } } } vlan { unit 10 { family inet { address 192.168.10.1/24; } } } } ethernet-switching-options { secure-access-port { interface ge-0/0/2.0 { mac-limit 1 action drop; persistent-learning; } } } vlans { vlan10 { vlan-id 10; l3-interface vlan.10; } }
Jun 27 14:54:01 SRX240A eswd[1381]: Can't open '/var/db/persistent_mac/ge-0_0_2.0' Jun 27 14:54:06 SRX240A eswd[1381]: Can't open '/var/db/persistent_mac/ge-0_0_2.0'
Persistent MAC Learning is support on EX, but not supported on SRX. Also, there is no schedule yet.