02-24-2006 10:05 AM - edited 03-03-2019 02:00 AM
Hi
Can someone please exaplain, when we enter a MAC address as a secure address to a particular interface, why can't we enter an address that is not there in the MAC address table? The address has to be in the MAC address Table if we need to configure a secure port to allow access only to that particular address (when we configure port security).
If we have to enter a MAC address, we have to let the switch first learn that address and then we can make it a secure address. But we can't just configure an address as a secure address for an interface.
Does anyone know why? I think we should be able to configure an address as a secure address, that is not in MAC address table.
Thanks in advance
02-24-2006 01:04 PM
This is the function of the STICKY option, it allows the switch to dynamically learn the first MAC address that it sees on a port and add it to its secure mac list.
See Switchport port-security sticky
02-24-2006 02:15 PM
Not sure what you mean you cannot configure static secured mac-address unless it's in the table. you should be able to:
2950(config-if)#do show mac-address-table dynamic int fa0/2
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
2950(config-if)#switchport mode access
2950(config-if)#switchport port-security
2950(config-if)#switchport port-security mac-address 0000.00000.0004
2950(config-if)#end
2950#sh run
%SYS-5-CONFIG_I: Configured from console by console int fa 0/2
Building configuration...
Current configuration : 236 bytes
!
interface FastEthernet0/2
switchport access vlan 100
switchport mode access
switchport port-security
switchport port-security mac-address 0000.0000.0004
no ip address
end
http://www.cisco.com/univercd/cc/td/doc/product/lan/cat2950/12122ea5/2950scg/swtrafc.htm#wp1038546
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