01-07-2011 06:24 AM - edited 03-06-2019 02:52 PM
Was wondering if it is possible to allow the same mac addresses with port security to more that one port on a switch. For instance; we want to secure our Conference room ports. There is more than one port per Conference room but, they go to the same switch. How can I secure more than one switchport from the same switch, with the same device MACs?
Thanks, Pat.
01-07-2011 06:38 AM
Hello,
If you are configuring sticky mac with port-security it will not allow you to do so and give duplicacy error.
But you can bind mac to any port via. global command but you need to disable port-security
(config)#mac address-table static 0027.0dc9.9600 vlan 101 interface gig1/0/7
(config)#mac address-table static 0027.0dc9.9600 vlan 101 interface gig1/0/8
Regards
Mahesh
01-07-2011 07:00 AM
Hi mahesh,
Isn't this a security concern as I suppose all frames destined to this MAC will be sent on both ports?
Regards.
Alain.
01-07-2011 07:04 AM
Mahesh,
I tried in the lab, and it takes the last configuration.
mac address-table static 0027.0dc9.9600 vlan 101 interface gig1/1
mac address-table static 0027.0dc9.9600 vlan 101 interface gig1/2
est#sh mac-address-table
Legend: * - primary entry
age - seconds since last seen
n/a - not available
vlan mac address type learn age ports
------+----------------+--------+-----+----------+-------
* 101 0027.0dc9.9600 static No - Gi1/2
- Yogesh
01-07-2011 07:47 AM
Mahesh,
Can I have port-security enabled for some ports and still bind addresses on other ports
as long as the ports I bind to have sticky disabled and the macs aren't a mac for other sticky ports?
Confusing question?
Pat
01-07-2011 08:01 AM
Hi Pat,
I should work as long as the mac addresses aren't secure addresses because then you'll get a mac-move violation.
Regards.
Alain.
01-07-2011 08:03 AM
Thank Alain, I'll give it a shot.
01-07-2011 09:11 AM
what if, for instance if both ports in one conference room are being used by two devices that have static mappings to both ports and are being used at the same time? Won't both devices get each others traffic?
Pat
01-07-2011 11:15 AM
hi,
that's what I asked in above post:
Hi mahesh,
Isn't this a security concern as I suppose all frames destined to this MAC will be sent on both ports?
Regards.
Alain.
01-07-2011 11:23 AM
yea I guess it is the same question but, I'm thinking of it more as a traffic concern.
01-07-2011 12:02 PM
Hi,
yes then traffic wise it won't be passed to OSI layer 3 as the ip will be different but it will consume bw, all this in the case it is sent to both ports
which should be the behaviour.
Regards.
Alain.
01-07-2011 07:44 AM
Yogesh, what platform are you using?
01-07-2011 07:57 AM
Patrick,
The above logs are from a Cat6500.
I tried the same in Cat 3560v2, and I am able to configure a static CAM entry for more than one port
mac address-table static 0011.2222.3333 vlan 101 interface FastEthernet0/6
mac address-table static 0011.2222.3333 vlan 101 interface FastEthernet0/5
3560V2#sh mac address-table static
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
101 0011.2222.3333 STATIC Fa0/5 Fa0/6
- Yogesh
01-07-2011 08:02 AM
cool. Thank you.
01-07-2011 08:09 AM
what if, for instance if both ports in one conference room are being used by two devices that have static mappings to both ports and are being used at the same time? Won't both devices get each others traffic?
Pat.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide