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. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

New Member

How to limit a MAC to one port of a switch

We have the following where a MAC is to be limited to a port on VLAN81.

interface GigabitEthernet3/0/31
 description Restricted Device
 switchport access vlan 81
 switchport mode access
 switchport port-security
 switchport port-security violation restrict
 switchport port-security mac-address 0024.210c.46d8 vlan access

Results, if the PC is move to another wall jack that is patched to anoter port on another vlan (i.e. Gi3/0/32 on VLAN80, Gi3/0/33 on VLAN81), the unit will conect, receive a DHCP address and function normally.

1.) We desire to restrict it to the port or at least to any port that is configured for vlan81.

  • LAN Switching and Routing
Everyone's tags (1)
1 REPLY
Silver

You must configure all ports

You must configure all ports with port-security so that your PC be sticked to only one port on switch...

One more option - vlan filter for that MAC in all VLANs except VLAN 81...doing filtering you will drop packets in all vlans for that pc except in vlan 81 which is your requirement.

BR,

Dragan

HTH, Dragan
27
Views
0
Helpful
1
Replies
This widget could not be displayed.