Configuring a Default Gateway

This is probably a very simple question, but for some reason I'm having trouble either understanding or implementing this.

Current configuration:

1 VMWare ESXi host, 4 x Trunk to a HP Procurve 2510 Switch.  In addition, 1 Server Running 2008 Active Directory is plugged in to the same switch.

Switch is configured to have a management IP and I configured its Default Gateway to point to the 2008 DC, since DNS and routing appear to logically go through this point.

From a Networking and VLAN configuration, things are working fine.  I understand that part.

My problem is, where do I get the IP that is to be the "Default Gateway"?  I have read that in a situation like this, the Switch IP that you define as the IP for that VLAN becomes the Default Gateway for all servers connecting to it.  Is that correct?  Or do I point it to the DC, since in this case it handle the DNS resolve for the domain?

It's a small setup, so i'm trying to learn from my apparent misunderstandings...  Default gateways are usually setup for me by the time I get there, so that is why I am having the confusion.

If I'm correct, the Procurve 2510 is a Layer 2 switch, meaning it cannot perform IP Routing...?  Or is that not the case?

Any tutoring or help is much appreciated.  Thanks in advance!
Who is Participating?
SouljaConnect With a Mentor Commented:
The gateways of the server is the vlan interface of whichever vlan they sit on. For the switch, if it is the endpoint of the network and there are not other exit point then yes, it doesn't need a default gateway configured.
Default gateway would be the point between you and the internet, in this case the router.

In a bigger corperate environment, software firewalls are set as gateways to act as proxy servers
The default gateway is the LAN IP of your firewall or ISP enabled device. It might be a DSL router from QWEST or a cable modem. That's your Default Gateway, the LAN IP of that device. So unless your ISP is connecting directly to your server then you have your default gateway set up wrong.
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

The default gateway is entry and exit point of a subnet. It doesn't necessarily lead to the internet, or is a firewall, or router. It is the entry/exit point of a subnet/network. This could be an Vlan interface, a routed port, an interface on your computer.
bdixon105Author Commented:
Pretending there is no internet gateway here.. just a simple network, that happens to be split into 2 vLans, 1 for end point machines and 1 for the server vLan.

I attached a JPG outlining my current layout.  I understand that if a WAN Router were involved, that would be my Gateway.. in this situation, it's all local chatter on the Server VLAN and a secondary vlan offering client communications is already working properly with the configuration in place on the switches.  I am still not understanding where I define the Default Gateway, in the situation that I am in.

ESX Host
1 Physical 2008 DC w/DNS
HP Procurve 2510 - configured with VLAN1 Disabled, VLAN10 as Server & Management, VLAN20 as Client VLAN w/DHCP (working fine).

What Default Gateway am I supposed to put into the Servers residing in the 10.10.10.XX subnet?

Thanks again for all the tutoring.. sorry I'm just not "getting" it.  ;(

Layout of current network
bdixon105Author Commented:
Hi Soulja,

Thanks for your reply.  So, if I understand you correctly:

I have configured my primary switch (where the initial VLAN communications are configured and established) with a VLAN IP of  If the servers in question all plug into this switch, defined with the VLAN IP, is that the IP I then put into each servers Default Gateway selection?

In the same question.. do I need to remove, or Zero out the Default Gateway on the switch..?  Something like this I guess:

no ip default-gateway

Thanks again!
where can you resolve FQDN's from? judging by the pic i would assume routing tables would be on device meaning that is the gateway, but check with nslookup first to be sure
bdixon105Author Commented:
Thank you, as always!!!
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.