11-30-2016 02:22 PM - edited 03-08-2019 08:23 AM
hi
plz i would like to know the purpose of this commands
switchport mode access
switchport port-security
switchport port-security maximum 2
switchport port-security mac-address aaaa.bbbb.cccc
switchport port-security violation shutdown
if a host with mac-address dddd.eeee.ffff
is directly connected to the switch port what gonna happen
host will be allowed or port will goes down ?
and if another host with mac-address gggg.hhhh.iiii
connect also what will happen
thx in advance
Solved! Go to Solution.
11-30-2016 02:41 PM
the above means that the port will go into error-disable mode when more than 2 mac addresses are learned through that particular port. on mac is aaaa.bbbb.cccc the other is dynamically learned, unless explicitly configured. so your config as it is will allow dddd.eeee.ffff as you set a mximum of 2 mac addresses as per
switchport port-security maximum 2
hope this explains it
11-30-2016 02:41 PM
the above means that the port will go into error-disable mode when more than 2 mac addresses are learned through that particular port. on mac is aaaa.bbbb.cccc the other is dynamically learned, unless explicitly configured. so your config as it is will allow dddd.eeee.ffff as you set a mximum of 2 mac addresses as per
switchport port-security maximum 2
hope this explains it
11-30-2016 02:58 PM
so
gggg.hhhh.iiii will be blocked ( port will goes down )
and
dddd.eeee.ffff
allowed right ?
11-30-2016 03:17 PM
so, as per your initial post, you have hard set only one mac:
mac-address aaaa.bbbb.cccc
the next mac is still allowed, be it dddd.eeee.ffff or gggg.hhhh.iiii because that second mac address in the port is dynamically learned, either mac will be allowed, but not both.
I strongly advise you to test it though
11-30-2016 03:35 PM
thx thxits ok now
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