cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
666
Views
0
Helpful
1
Replies

switchport interface fa and mode access

csccomthb
Level 1
Level 1

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 1

Peter Paluch
Cisco Employee
Cisco Employee

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

Review Cisco Networking for a $25 gift card