Take the 2-minute tour ×
Network Engineering Stack Exchange is a question and answer site for network engineers. It's 100% free, no registration required.

I am learning for the ICND1 exam through CBTNuggets video courses. In one of their videos they used a command,

switchport port-security maximum

This is what the cisco help says about it,

To set the maximum number of secure MAC addresses on a port

I have tested this command myself on Cisco Packet Tracer, and this command allows to set this value to up to 132.

Under what circumstances would I connect 132 hosts to a single Switch port ? Doesn't one port only support one MAC address at a time ?

share|improve this question
1  
There can always be another switch (not trunked), a hub, or even a virtual server. –  Ryan Foley Jun 29 at 15:49

2 Answers 2

up vote 13 down vote accepted

You can have more than one MAC address on a switch port if:
1.) You have a switch connected to it. Could be another managed switch (like a Cisco) or an unmanaged switch (like a consumer Netgear or Linksys switch).
2.) You have a virtual server host attached to it with multiple virtual machines sharing the NIC.
3.) You're using a VoIP phone to carry data for a computer. In this case, you'll have a trunk running to the phone from the switch and a second ethernet cable running from the phone to a computer.

share|improve this answer
2  
(4) some operating systems allow you to define additional "virtual" interfaces for a single network port, each of which gets its own MAC address. (I believe this was originally meant as host operating system support for your (2), but people have found other uses for it.) –  Zack Jun 29 at 21:35
1  
3 is really a special case of 1 (the phone has a switch in it). And for good measure there's 5.) you're still using 10BASE2 or 10BASE5 because nobody told you it's not the 80s anymore. –  hobbs Jun 30 at 11:54
    
Thanks, hobbs! I'd also forgotten about the option of having a hub connected to a switchport. This is actually a fairly common option for traffic sniffing and troubleshooting. –  Avery Abbott Jun 30 at 21:22

You can have more than one MAC on a switchport, for example a big Server with 20 VMs on it, so it needs to acces the switchport with 21 MAC addresses.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.