cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
596
Views
0
Helpful
1
Replies

How to limit a MAC to one port of a switch

boltons
Level 1
Level 1

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.

1 Reply 1

Dragan Ilic
Level 4
Level 4

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
Review Cisco Networking for a $25 gift card