08-30-2007 01:23 PM - edited 03-05-2019 06:12 PM
I was asked to enable port security to learn first MAC-Address on layer-2 devices. This is all the instruction I got. Any suggestion on how to do this is greatly appreciated.
Solved! Go to Solution.
08-30-2007 01:32 PM
Hi,
Please check this link,
Here are the IOS commands ,
2950(config)#int fa0/1
2950(config-if)#switchport mode access
2950(config-if)#switchport port-security
2950(config-if)#switchport port-security mac-address 0000.02000.0004
2950(config-if)#switchport port-security maximum 1
2950(config-if)#switchport port-security violation shutdown
It will have to be done in each interface at a time. The other way could be:
2950(config)#int range fa0/1 - 24
2950(config-if-range)#switchport mod access
2950(config-if-range)#switchport port-security
2950(config-if-range)#switchport port-security mac-address sticky
2950(config-if-range)#switchport port-security maximum 1
2950(config-if-range)#switchport port-security violation shutdown
2950(config-if-range)#end
Hope that helps !
Regards,
~JG
Please rate if helps
08-30-2007 01:28 PM
Hi
Few more details needed ie. what type of switch.
Easiest thing to do is search on Cisco for your switch type + configuration guide eg. if your switch is a 3560
"3560 configuration"
should bring up all the config per IOS guides for that switch. In there will be details about how to configure port security and the options you have.
HTH
Jon
08-30-2007 01:32 PM
Hi,
Please check this link,
Here are the IOS commands ,
2950(config)#int fa0/1
2950(config-if)#switchport mode access
2950(config-if)#switchport port-security
2950(config-if)#switchport port-security mac-address 0000.02000.0004
2950(config-if)#switchport port-security maximum 1
2950(config-if)#switchport port-security violation shutdown
It will have to be done in each interface at a time. The other way could be:
2950(config)#int range fa0/1 - 24
2950(config-if-range)#switchport mod access
2950(config-if-range)#switchport port-security
2950(config-if-range)#switchport port-security mac-address sticky
2950(config-if-range)#switchport port-security maximum 1
2950(config-if-range)#switchport port-security violation shutdown
2950(config-if-range)#end
Hope that helps !
Regards,
~JG
Please rate if helps
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: