Solved

vlan device gateways

Posted on 2012-12-20
7
386 Views
Last Modified: 2012-12-21
If I have a layer 3 switch trunking down 5 vlans to a layer 2 switch.....what should the gateway be of the devices plugged into that layer 2 switch?  

What if i'm trunking down those same vlans through two layer 2 switches?  Is there any problems with this?  Can I trunk through as many layer 2 switches as I want?  Any best practices here?   Thanks!
0
Comment
Question by:readymade
  • 3
  • 2
  • 2
7 Comments
 
LVL 9

Expert Comment

by:gt2847c
ID: 38711785
If you're sending 5 VLANs down a trunk to a layer 2 switch, the gateway for devices plugged into that layer 2 switch would depend on which VLAN their device's port was configured to use.  Assuming your VLANs are carrying IP traffic, each VLAN would typically have an IP subnet associated with it (doesn't necessarily have to or could have more than one, but generally speaking will have one).  Whatever is routing that subnet would be the appropriate gateway.

Trunking through multiple layer 2 switches is fine, there is an upper limit based on distance and latency, but two is completely fine.  You would simply have to have trunk ports in between them.
0
 
LVL 6

Expert Comment

by:traoher
ID: 38711827
If you trunking is working correctly, your gateway still is the layer 3 switch VLAN interface IP for systems from within each VLAN.

For example, if your vlan5 has vlan interface ip 10.10.10.5 for 10.10.10.0/24 subnet then, your gateway for vlan 5 computers would be 10.10.10.5, no matter where they are as long as they are in the same vlan 5.
0
 

Author Comment

by:readymade
ID: 38713373
What if the layer 2 switch has an interface ip on that vlan?
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 9

Assisted Solution

by:gt2847c
gt2847c earned 155 total points
ID: 38713395
So long as the IP address is not the same as the layer 3 switch interface, fine.  You can use it to remotely manage the layer 2 switch.  It would not be the gateway address for other devices, however as the layer 2 switch can't route.  The layer 2 switch would need to have a default route pointing to the layer 3 switch interface so that it could reach and be reached by other networks.
0
 

Author Comment

by:readymade
ID: 38713428
I would have thought so too.  I had the layer 3 switch as the gateway for those devices, however any time I was on any of the other vlans other than the management vlan, I could not go anywhere.  

I called Dell this morning and they looked at all my routing, gateways, etc.  They said if the vlan has an interface IP, it should be the gateway of those devices.  I made that interface ip my gateway and that solved it.  

Now, I know making the layer 3 switch your gateway works sometimes, but it seems when I was on this 3rd switch in the chain, it wasn't.  

The layer 2 switch doesn't need to route in this case.

So i'm not really sure what the deal is.
0
 
LVL 6

Accepted Solution

by:
traoher earned 150 total points
ID: 38714624
The problem comes about if your other layer 2 switches doesn't forward the arp request (a broadcast request), the originating device would not know which MAC to use as a destination MAC.

The question is the why wouldn't the switches in between relay the arp request for MAC?

anyway, glad you got it resolved.
0
 

Author Closing Comment

by:readymade
ID: 38714712
I understand what you're saying.  This is all still a little above my head.  There is probably more than one way to make it work.  Thanks for the help guys.
0

Featured Post

Superior storage. Superior surveillance.

WD Purple drives are built for 24/7, always-on, high-definition security systems. With support for up to 8 hard drives and 32 cameras, WD Purple drives are optimized for surveillance.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
Meet the world's only “Transparent Cloud™” from Superb Internet Corporation. Now, you can experience firsthand a cloud platform that consistently outperforms Amazon Web Services (AWS), IBM’s Softlayer, and Microsoft’s Azure when it comes to CPU and …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now