jskfan
asked on
Limit host connections to a Switch port
Limit host connections to a Switch port
I have the topology above. I have configured the switch SW interface e0/0 as shown below
however when I clear the Mac address table of the Switch, then shutdown the interfaces of H1 and H2 , then bring them back up, the switch will show both Mac addresses of H1 and H2 on the Switch , it should allow just one.
Thank you
----OK now after a while I can see one of the Mac addresses disappearing from the table, then it will show up again on the table, then the other Mac address will disappear from the table for a while then will show up again.
I guess this happens after aging time .
however the issue of having 2 Mac addresses on the table is still not resolved
I have the topology above. I have configured the switch SW interface e0/0 as shown below
CiscoSwitch(config)#interface e0/0
CiscoSwitch(config-if)#switchport port-security maximum 1
CiscoSwitch(config-if)#
however when I clear the Mac address table of the Switch, then shutdown the interfaces of H1 and H2 , then bring them back up, the switch will show both Mac addresses of H1 and H2 on the Switch , it should allow just one.
CiscoSwitch#show mac address-table
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
1 aabb.cc00.0100 DYNAMIC Et0/0
1 aabb.cc00.0200 DYNAMIC Et0/0
Total Mac Addresses for this criterion: 2
CiscoSwitch#
Thank you
----OK now after a while I can see one of the Mac addresses disappearing from the table, then it will show up again on the table, then the other Mac address will disappear from the table for a while then will show up again.
I guess this happens after aging time .
however the issue of having 2 Mac addresses on the table is still not resolved
ASKER
I followed that configuration , but I get this message :
Command rejected: Ethernet0/0 is a dynamic port.
after I entered this :CiscoSwitch(config-if)#sw itchport port-security
Command rejected: Ethernet0/0 is a dynamic port.
after I entered this :CiscoSwitch(config-if)#sw
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
This worked.... Thank you
interface eth0/0
switchport mode access
switchport port-security maximum 1
switchport port-security
interface eth0/0
switchport mode access
switchport port-security maximum 1
switchport port-security
You're welcome.
CiscoSwitch(config)#interf
CiscoSwitch(config-if)#swi
CiscoSwitch(config-if)#swi