switchport interface fa and mode access

Unanswered Question
Aug 29th, 2010
User Badges:

Dear all,

I create a vlan 10 and asign the port to this vlan (PCs are conneted to this vlan)

vlan 10

switchport interface fa0/1-5

Does the command "switchport interface fa0/1-5"  set the port mode to "access"?

Thank you

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Peter Paluch Sun, 08/29/2010 - 07:06
User Badges:
  • Cisco Employee,


The correct style of configuration is as follows:

Switch(config)# vlan 10

Switch(config-vlan)# name MyVLAN ! Enter a symbolic name for your VLAN here

Switch(config-vlan)# exit

Switch(config)# interface range fa0/1 - 5

Switch(config-if-range)# switchport mode access

Switch(config-if-range)# switchport access vlan 10

Switch(config-if-range)# exit


I am afraid that I do not know the command "switchport interface fa0/1 - 5" you have indicated - does it exist at all?

Best regards,



This Discussion