cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
403
Views
0
Helpful
6
Replies

associating a port with MAC address

milkdroogy
Level 1
Level 1

how can i do that in a switch?

i know of the command >mac-address-table

but what exactly i need to write in order to restrict FastEthernet0/1 to work only with MAC XXXX.XXXX.XXXX ?

6 Replies 6

Jon Marshall
Hall of Fame
Hall of Fame

Hi

You need to use port-security to restrict which mac-addresses can use that port.

I have attached a link to 3560 port seurity configuration which explains the concept of port security.

http://www.cisco.com/en/US/products/hw/switches/ps5528/products_configuration_guide_chapter09186a008081db10.html#wp1038501

If you have a different switch just search on Cisco for "switch type + port security"

HTH

Jon

Hi, [PLS RATE if HELPS]

As a continuation of Jon.Marshall post,

Cisco has very famous feature called port-security to restict Switch port access based on MAC-Address of clients connecting to it.

You can specify the Security feature in such a way like if somebody violate the Security you can instruct the Switch to Shutdown the Interface and only the Administrator can re-enable the port manually.

Refer link below for further understanding:

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

PLS RATE if HELPS

Best Regards,

Guru Prasad R

i know of port-security, i just want to know about the other method of associating a single MAC with a port.

Hi

You can use the mac-address-table static command. Attached is link for 3560 example.

http://www.cisco.com/en/US/products/hw/switches/ps5528/products_command_reference_chapter09186a0080818708.html#wp2789851

As far as i know this does not restrict the port to just that mac-address though.

HTH

Jon

Do i have to specify the vlan option? if ihave interface with no vlans how would the syntax be?

So does this prevent other MAC addresses to access the port?

Getting Started

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:

Innovations in Cisco Full Stack Observability - A new webinar from Cisco