Unsolved

This post is more than 5 years old

5 Posts

114626

December 18th, 2013 09:00

Routing and VLANs on Force10

Assume I have three vlans: 1, 2, and 3.  They are 10.1.0.0, 10.2.0.0, and 10.3.0.0, respectively.

Each VLAN is available on the Force10 and the Firewall.

At the moment, the Force10 acts as a simple switch for all VLANs except vlan 1, which has workstations.  Workstations in vlan 1 use the F10 as a default gateway, and there exist routes to direct traffic to the appropriate firewall.  Workstations should route traffic through a primary firewall with content filtering and such (10.1.0.253), or to the secondary firewall which provides inter-vlan routing/ACLs (10.1.0.254).  All other computers on all other vlans will access anything outside of their vlan using the secondary firewall (.254 on their respective subnet).

*S    0.0.0.0/0          via 10.1.0.253, Vl 1            250/0

S 10.0.2.0/24 via 10.1.0.254, Vl 1 1/0

S 10.0.3.0/24 via 10.1.0.254, Vl 1 1/0


This works fine, however I would like to enable the IP address on all vlan interfaces on the F10, and have everything point their gateway at their respective F10 interface.  But when I enable the IP address on Vlan 2 or 3, those static routes disappear from the routing table and I get:

C 10.2.0.0/24 Direct, Vl 2 0/0
C 10.3.0.0/24 Direct, Vl 3 0/0

So traffic from vlan 1 to vlan 2/3 stops getting routed to the firewall at .254.

Do I simply re-add the static routes again?  I guess the question is: how do I add static routes for each vlan, such that each vlan has a different default gateway?  And such that users on vlan 1 still use a gateway when accessing other vlans, instead of going through the F10 alone?  I'm guessing the routing table would end up looking something like this:

*S    0.0.0.0/0          via 10.1.0.253, Vl 1            250/0
*S    0.0.0.0/0          via 10.2.0.253, Vl 2            250/0
*S    0.0.0.0/0          via 10.3.0.253, Vl 3            250/0

C 10.2.0.0/24 Direct, Vl 2 0/0
C 10.3.0.0/24 Direct, Vl 3 0/0

S 10.0.2.0/24 via 10.1.0.254, Vl 1 1/0

S 10.0.3.0/24 via 10.1.0.254, Vl 1 1/0

Community Manager

 • 

9.7K Posts

 • 

43.2K Points

December 18th, 2013 09:00

Hi,

Which model Force10 switch is it? When you set the static route you should be able to set the VLAN it goes to ftp://ftp.dell.com/Manuals/all-products/esuprt_ser_stor_net/esuprt_force10/force10-s55_Reference%20Guide_en-us.pdf page 530.

5 Posts

December 18th, 2013 09:00

Well, I guess it isn't as simple as adding static routes.  When I had this:

*S 0.0.0.0/0

via 10.1.0.253, Vl 1 250/0
via 10.3.0.254, Vl 3

Traffic going to the F10 (.250) on vlan 1 (10.1.0.250) got routed to 10.3.0.254 instead of 10.1.0.253....

5 Posts

December 18th, 2013 10:00

Not sure of the exact hardware model, but the software is Version 8.3.5.2.

I've tried what you suggested, but that doesn't seem to do what I need.  If I create a default gateway with a different vlan, then all traffic will try to use the gateway on that vlan, and not just traffic coming from that vlan.

It's a little confusing, but basically I want different default routes for vlans 1, 2, and 3.  Each vlan would have a different default gateway, with the gateway residing on the same vlan.  Hosts from one vlan should not attempt to route traffic to the gateway on the other.  Inter-vlan communication/routing would occur in the firewall which has different interfaces acting as a gateway on each vlan.

Community Manager

 • 

9.7K Posts

 • 

43.2K Points

December 18th, 2013 12:00

When you did what I said to do what did the route table look like? I think the problem is that when you are assigning the IP address to the VLANs it is seeing itself as directly connected and giving itself a route to the firewall which doesn’t match what you want to set as a static route. Are the ports between the F10 and the firewall set as a trunk port that passes multiple VLANs?

 

The way you had it originally configured is a typical setup where clients point to a layer 3 device for their default gateway and not to a layer 2 device that then points to a layer 3.

5 Posts

December 18th, 2013 12:00

I'll try and explain a bit further:

We have a VMWare host that trunks to the Force10, and the firewall trunks to the Force10 as well.

The Force10 has layer 3 IP interfaces on every vlan, as does the firewall (following the pattern .250 = F10, .254 = Firewall)

The goal is to have every server set their default gateway to the F10 (.250) for the respective vlan, and then have a default route on the Force10, for that vlan, going to a next-hop that is specified per vlan (10.1.0.5 wants to get to the internet, goes to default gateway 10.1.0.250, gets forwarded to firewall at 10.1.0.254).  I don't want the Force10 to be doing inter-vlan routing.


//I think the problem is that when you are assigning the IP address to the VLANs it is seeing itself as directly connected and giving itself a route to the firewall which doesn’t match what you want to set as a static route. //

Yeah, that seems like the problem.  The default GW has different interfaces for each vlan, so I want routes for each vlan that point at the gateway that is available for each vlan.

Community Manager

 • 

9.7K Posts

 • 

43.2K Points

December 18th, 2013 13:00

Try creating a static route directly from the vlan IP to the correct firewall IP instead of for the subnet and see if it will take precedence over the direct connections. There is not a command that makes it use the static routes.

5 Posts

December 18th, 2013 17:00

Can you elaborate a little bit on exactly what you mean there?

In essence, all I'm trying to do is have things on different vlans point to the L3 address of the F10 for each respective vlan, and when they request something outside of that vlan, go to the default gw which can route/acl between them.

Community Manager

 • 

9.7K Posts

 • 

43.2K Points

December 19th, 2013 08:00

When you create the static route after the interface specification for the VLAN also include the ip address you assigned to that VLAN

ip route destination mask { ip-address | interface [ip-address]}

 

The switch isn’t designed for having a different default gateway for each VLAN which is why we are running into issues making it do that. The way you have it set up currently is the way it is usually set up, where communication within the VLAN is handled at layer 2 and any interVLAN communication is sent directly to a layer 3 device handling the routing. You are wanting the F10 to handle all traffic and then if it needs to be routed it gets sent to a default gateway for each VLAN, this might not be possible, as soon as you put an IP address on a VLAN the direct connection between that and the layer 3 device overrides the static route, what I said at the beginning of the post might work as a way around this, but if it doesn’t there may not be a way to do it.

No Events found!

Top