Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

switchport interface fa and mode access

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 REPLY
Cisco Employee

Re: switchport interface fa and mode access

Hello,

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

Switch(config)#

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,

Peter

185
Views
0
Helpful
1
Replies
CreatePlease to create content