02-02-2013 08:11 AM - edited 03-07-2019 11:28 AM
Hi Everyone,
I config port security on port fa0/4
interface FastEthernet0/4
switchport access vlan 10
switchport mode access
switchport port-security
switchport port-security mac-address f0bf.97de.4f48
logging event spanning-tree
spanning-tree portfast
end
mac address-table int fa0/4
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 f0bf.97de.4f48 STATIC Fa0/4
Total Mac Addresses for this criterion: 1
sh port-security int fa0/4
Port Security : Enabled
Port Status : Secure-up
Violation Mode : Shutdown
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses : 1
Total MAC Addresses : 1
Configured MAC Addresses : 1
Sticky MAC Addresses : 0
Last Source Address : 0000.0000.0000**************************************************************
Security Violation Count : 0
Need to confirm if config the mac address with switch port-security mac-address xxxxx.xxxx.xxxx
and when we run the command
sh port-security int does it always show last source address as 00000.0000.0000???
Thanks
MAhesh
02-02-2013 01:38 PM
Hi Mahesh,
The last source mac address is whatever the last mac address of the device that is connected to this port.
in this example a PC is connected to port 1/0/45 and this port is in vlan 10
have a look:
Switch#sh port-security interface gigabitEthernet 1/0/45
Port Security : Enabled
Port Status : Secure-up
Violation Mode : Shutdown
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses : 2
Total MAC Addresses : 1
Configured MAC Addresses : 0
Sticky MAC Addresses : 1
Last Source Address:Vlan : 0021.70e8.99d1:10
Security Violation Count : 0
Switch#sh mac address-table interface gigabitEthernet 1/0/45
Mac Address Table
-------------------------------------------
Vlan Mac Address Type Ports
---- ----------- -------- -----
10 0021.70e8.99d1 STATIC Gi1/0/45
Total Mac Addresses for this criterion: 1
Switch#
HTH
Reza
02-02-2013 02:00 PM
Mahesh,
See this posting.
The guys there reckon this is a client issue
https://supportforums.cisco.com/thread/2073200
Regards,
Alex.
Please rate useful posts.
02-08-2013 09:15 PM
Hi Reza & alex,
When i config command
switchport port-security max 2
then it shows the mac under port security
sh port-security int fa0/4
Port Security : Enabled
Port Status : Secure-up
Violation Mode : Shutdown
Aging Time : 0 mins
Aging Type : Absolute
SecureStatic Address Aging : Disabled
Maximum MAC Addresses : 2
Total MAC Addresses : 1
Configured MAC Addresses : 1
Sticky MAC Addresses : 0
Last Source Address : f0bf.97de.4f48
Security Violation Count : 0
Seems when port has max mac address configured as 1 and we also config the mac under port security then it shows
mac 0000 under last source address.
Thanks
Mahesh
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