What does the command "Switchport Mode Access" do?

Unanswered Question
Sep 4th, 2007

What does the command "Switchport Mode Access" do? Is it needed on a server port where the config is:

description ServerNAME

switchport access vlan 192

switchport mode access

flowcontrol receive desired

spanning-tree portfast

Much appreciated? Do I want a server port to be a trunk port?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Average Rating: 0 (0 ratings)
MUHAMMAD SHAHEEN Tue, 09/04/2007 - 06:43

Hi,

Your config looks fine to me. If you have Vlans in a multi switch LAN, then the inter-connects between the switches will need to be configured "Switchport mode trunk".

But where a single device like a pc, printer or server is connected to a port, then you should use "switchport mode access" and switchport access vlan xxx, where xxx is the vlan number.

if you are looking to make some improvements to over come some performance issues, then you should fix the speed and duplex on the interface and on the server as well. Remember if you are fixing speed/duplex on the switchport, then you must fix speed/duplex on the server/pc/printer as well. Otherwise it will cause problems. But it is not necessary as usually auto speed and auto duplex works ok.

HTH

Shaheen

Edison Ortiz Tue, 09/04/2007 - 06:44

It statically disables trunking on the port, which defaults to dynamic trunk.

IOW, if you plug a device that has no trunking capabilities, the port will be in access mode while if you plug a device that has trunking enabled, it will automatically trunk.

If the server has a NIC with dot1q support, you can configure such port as trunk. If you have multiple Vlans, the server will connect directly to such Vlans in Layer2 instead of going by the default gateway and connecting via Layer3.

In your case, you have Vlan192 and for this port to communicate with Vlan193 (for instance), it would have to go via its default gateway in Vlan192 in order to reach Vlan193.

In a trunk configuration, the server would reach Vlan193 directly. IPs for each Vlan would need to be assigned to this server.

Actions

Login or Register to take actions

This Discussion

Posted September 4, 2007 at 6:28 AM
Stats:
Replies:2 Avg. Rating:
Views:2613 Votes:0
Shares:0
Tags: No tags.

Discussions Leaderboard

Rank Username Points
1 14,997
2 8,150
3 7,720
4 7,078
5 6,710
Rank Username Points
200
80
59
57
57