cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1264
Views
0
Helpful
3
Replies

switchport port-security maximum command

georginia
Level 1
Level 1

Hello every one!

Please help methis command" switchport port-security maximum " . Once the switch learns three mac addresses , do have to use the command switchport port-security mac address sticky" or not?

I would be realy grateful for any help

thank and God bless!

2 Accepted Solutions

Accepted Solutions

lejoe.thomas
Level 3
Level 3

Hi Gigi,

switchport port-security maximum 3

If you do not configure switchport port-security mac-address sticky .

The 3 addresses learnt dynamically will be stored in the address table and be lost if the switch reboots.

However if you do configure switchport port-security mac-address sticky, the addresses learnt will be stored in address table and running configuration. Ofcourse you should do copy run start or wr mem [to save running-config to startup-config]. In this case even if the switch restarts, it will not have to relearn those 3 mac addresses.

HTH

Lejoe

View solution in original post

Hi,

Is it possible to use switchport port-security maximum 3, then just use the command copy running-config startup-config.?

It will be of no use (saving to startup config), because MAC address learnt are dynamic secure mac-addresses only stored in the address table.

Only when the switchport port-security mac-address sticky is configured will the dynamically learnt MAC be stored in the running configuration as well. Here it makes sense to do copy runinng config to startup config.

HTH

Lejoe

View solution in original post

3 Replies 3

lejoe.thomas
Level 3
Level 3

Hi Gigi,

switchport port-security maximum 3

If you do not configure switchport port-security mac-address sticky .

The 3 addresses learnt dynamically will be stored in the address table and be lost if the switch reboots.

However if you do configure switchport port-security mac-address sticky, the addresses learnt will be stored in address table and running configuration. Ofcourse you should do copy run start or wr mem [to save running-config to startup-config]. In this case even if the switch restarts, it will not have to relearn those 3 mac addresses.

HTH

Lejoe

Thank you very much for your reply.

Is it possible to use switchport port-security maximum 3, then just use the command copy running-config startup-config.?

So" switchport port-security mac -address sticky" does not have any effect. Even with or without it, i have to use " copy running-0config startup-config" so learned address will not be lost upon reboot.

thanks and God bless!

Hi,

Is it possible to use switchport port-security maximum 3, then just use the command copy running-config startup-config.?

It will be of no use (saving to startup config), because MAC address learnt are dynamic secure mac-addresses only stored in the address table.

Only when the switchport port-security mac-address sticky is configured will the dynamically learnt MAC be stored in the running configuration as well. Here it makes sense to do copy runinng config to startup config.

HTH

Lejoe

Review Cisco Networking products for a $25 gift card