Switchport Mode Access

Hi,
    I've this configuration on Cisco Catalyst 4500:

 interface GigabitEthernet3/31
 description ServerWeb
 switchport access vlan 330
!
  interface GigabitEthernet3/41
 switchport trunk encapsulation dot1q
 switchport mode trunk
 channel-protocol lacp
 channel-group 2 mode active
 spanning-tree portfast trunk
!
 The question is: The  << switchport mode access >> is needed to insert in the  interface GigabitEthernet3/31 or can I  exclude it?It's important to put it or no?

Waiting for an answer.

Have a nice day.
mrmodularAsked:
Who is Participating?
 
JFrederick29Connect With a Mentor Commented:
The use of the command simply forces the port to be an access port instead of letting it negotiate the mode (trunk versus access).  If you are plugging a non trunking device into 3/31, it will automatically become an access port so the command is not needed but I prefer to put it so I know the exact behavior of the port.

You can very the operational mode of the port by doing a "show interface g3/31 switchport".
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.