Switchport access mode question

Unanswered Question
Oct 19th, 2007
User Badges:

What is the difference in using the "access" mode for the switchport and not?

For example, I have a switch that has the ports configured in the following way and all workstations can access the network in VLAN 45.

I cannot set port security on the ports because the ports are not dynamic or access ports.

But if it works without setting mode to access, what is the difference?

interface FastEthernet0/1

switchport access vlan 45

switchport voice vlan 250

no ip address

srr-queue bandwidth share 10 10 60 20

srr-queue bandwidth shape 10 0 0 0

mls qos trust device cisco-phone

mls qos trust cos

no mdix auto

auto qos voip cisco-phone

spanning-tree portfast

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
a.cruea1980 Fri, 10/19/2007 - 07:03
User Badges:
  • Bronze, 100 points or more

switchport mode access keeps a link from becoming a trunk.

Switches are set, by default, to automatically set up a trunk if the device it is connected to requests to do so, which your configuration would allow. If you used "switchport mode access vlan 45", your port would never become a trunk if someone hooked up another Cisco device to that port.

PAUL TRIVINO Fri, 10/19/2007 - 07:27
User Badges:
  • Bronze, 100 points or more

I believe you can certainly apply port security to these ports, we do it all the time, specifically to limit the number of MAC addresses. No reason it won't work for you.



This Discussion