Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

Security on switch port

How can I set security on a switch port, so that a workstation can connect only to a specific port on the switch. If the workstation connects to other than the specified port - the port will automatically shut down.

I know it is possible, but unfortunatelly don't how to set it.

6 REPLIES

Re: Security on switch port

hi

you can make use of switchport port-security command to secure ur switch ports.

You have an option to configure a authorised MAC Address to get connected to that port using the options avl with that command.

since u havent mentioned the platform in which ur trying to do so or want to hve this featur do refer this link in which u have the same enabled in 6500 series switch and i feel that will give u fair idea in proceeding further..

http://www.cisco.com/en/US/partner/products/hw/switches/ps708/products_configuration_guide_chapter09186a0080160a2c.html#wp1070356

regds

New Member

Re: Security on switch port

I made use of command switchport port-security, but it didn't help me. Because I connected the specified mac address (workstation) to another port on the same switch and it worked, - the poet didnt shut down.

I need one workstation to be connecvted to specified port on the switch, if someone wants to connect this workstation to another port, I want this oprt to shut down.

Re: Security on switch port

hi

did u try to configure secure mac address in addition to port security ?

also the action to be taken once its violated ??

it shuld be similar to this ..

switchport port-security mac-address 1000.2000.3000

switchport port-security violation shutdown

regds

New Member

Re: Security on switch port

I did this

Switch(config)# interface gigabitethernet0/1

Switch(config-if)# switchport mode access

Switch(config-if)# switchport port-security

Switch(config-if)# switchport port-security maximum 1

Switch(config-if)# switchport port-security mac-address xxxx.xxxx.xxxx

But when i connect the mac address xxxx.xxxx.xxxx to another port on the switch it works again, the another port dont shut down.

New Member

Re: Security on switch port

Could you tell us what platform and IOS version you are using?

The reason is for example, a 3500XL is configured differently than a 3550.

Your config looks right

New Member

Re: Security on switch port

Are both port configured for switchport security

197
Views
0
Helpful
6
Replies