Switch – How to Configure Different Gateways for Different VLANs

dell-powerconnectnetworkingroutingswitchvlan

I have around 10 VLANs, and two different internet gateways. I want traffic on some VLANs to use one gateway, and traffic on other VLANs to use another gateway. (e.g. I wish to route server traffic via one gateway and desktop internet traffic down another).

Is it possible to configure different default routes for different VLANs on a Dell 6224 switch? Or is their a better way of doing what I'm trying to achieve?

The core switch I am using is a Dell PowerConnect 6224 switch.

Currently I'm using:

ip route 0.0.0.0 0.0.0.0 10.58.3.16

which creates the default gateway for all VLANs.

I did consider adding multiple routes with equal metric, and setting ACLs between the VLANs to deny access to the 'wrong' gateway, but that idea just doesn't feel right to me.

Best Answer

The PowerConnect 6200-series firmware doesn't have any support for policy-based routing (or other functionality that might permit selection from multiple routing tables based on source VLAN / address). It's a very simple layer 3 entity and, thought fast and cheap, not very flexible for more "advanced" configurations.

Your ACL gambit may work, but my guess is that it won't be exactly what you want.

Your best bet would be to avoid creating a layer 3 interface on the Dell switch for the VLANs that need a different default gateway. Then you can use another router, connected to the Dell switch with a VLAN trunk port, to provide routing for those VLANs as a "router on a stick". It means you'll need another router, but it'll get you what you want.

The PowerConnect 6200-series switches are inexpensive and have been very reliable, in my experience, but from a software feature-set perspective their layer 3 entity definitely isn't a Cisco router.