Switchport Connects to Server

Answered Question
May 20th, 2009
User Badges:
  • Blue, 1500 points or more

hi,


just want to verify that if we want to connect a server to a Cisco switchport, do we configure the switchport as access or trunk?


Correct Answer by Jon Marshall about 8 years 1 month ago

Modern day server NIC's are capable of running 802.1q on their NIC. Put simply this means the server can form a trunk with the switch. So the server can be a member of multiple vlans and send traffic for all vlans at L2 across the trunk link.


This is seen quite often with VMWare servers where multiple virtual servers are each in different vlans but obviously you only have one physical NIC on the server.


Jon

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 5 (2 ratings)
Loading.
Jon Marshall Thu, 05/21/2009 - 00:53
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

John


If the server is meant to be in one vlan which is by far the most common setup then the switchport should be configured -


int gi0/1

switchport mode access

switchport access vlan where x is the vlan number.


You would only configure the port as a trunk if you were using 802.1q vlan tagging on the server NIC.


Jon

johnlloyd_13 Thu, 05/21/2009 - 01:18
User Badges:
  • Blue, 1500 points or more

thanks jon! i knew that it's going to be an access port. it's hard to argue with a server guy sometime :)


could you further add on your statement:

"You would only configure the port as a trunk if you were using 802.1q vlan tagging on the server NIC."


Correct Answer
Jon Marshall Thu, 05/21/2009 - 01:23
User Badges:
  • Super Blue, 32500 points or more
  • Hall of Fame,

    Founding Member

  • Cisco Designated VIP,

    2017 LAN, WAN

Modern day server NIC's are capable of running 802.1q on their NIC. Put simply this means the server can form a trunk with the switch. So the server can be a member of multiple vlans and send traffic for all vlans at L2 across the trunk link.


This is seen quite often with VMWare servers where multiple virtual servers are each in different vlans but obviously you only have one physical NIC on the server.


Jon

johnlloyd_13 Thu, 05/21/2009 - 02:22
User Badges:
  • Blue, 1500 points or more

thanks for the enlightenment jon!

Actions

This Discussion