Unsolved

This post is more than 5 years old

1 Rookie

 • 

25 Posts

60751

July 12th, 2007 15:00

VLAN Default gateways

I need to have routing set up between VLANS, so from what I understand if I have VLAN 10 set up as 10.10.0.2, I need to have the clients in that VLAN set up to have 10.10.0.2 as their default gateways? Correct?
 
My question then is there a way to set up a deafult gateway for the VLAN. How do I point the clients out to the Internet? If I set 10.10.0.2 as the default gateways then the clients can't get out to the Internet but can communicate with other VLANS,  if I set the gateway to 10.10.0.1 (Internet Gateway) then the machines can get out to the internet but can't communicate with other VLANS.
 
How do I get around this? Let me know if you need any further information to help me with this...

44 Posts

July 12th, 2007 18:00

What model switch are you using?
 
I need to have routing set up between VLANS, so from what I understand if I have VLAN 10 set up as 10.10.0.2, I need to have the clients in that VLAN set up to have 10.10.0.2 as their default gateways? Correct?
This is correct if you are using a layer 3 switch for IntraVLAN routing and IP routing is enabled on the switch. 
 
My question then is there a way to set up a deafult gateway for the VLAN. How do I point the clients out to the Internet? If I set 10.10.0.2 as the default gateways then the clients can't get out to the Internet but can communicate with other VLANS,  if I set the gateway to 10.10.0.1 (Internet Gateway) then the machines can get out to the internet but can't communicate with other VLANS.
If you run the command "show ip route" you can inspect your routing table, it sound like you need to have a default route from this layer 3 switch to your Internet Router/Firewall or the next hop router.  you can add this with a static route command like this "ip route 0.0.0.0 0.0.0.0 x.x.x.x" where x.x.x.x is the IP of your next hop router or Internet Firewall (your 10.10.0.1).
 
 
How do I get around this? Let me know if you need any further information to help me with this...
The command examples I gave are from a PowerConnect 6224, but I think should be similar on other PowerConnects

1 Rookie

 • 

25 Posts

July 13th, 2007 13:00

Ok, thanks for the replies, I have a 6224.
 
Is it possible to set up Multiple default gateways out to the internet?
 
This is what we would like to do...(example)
 
Vlan 10 - would use 192.168.0.1 as it's gateway to the internet
 
Vlan 20 - would use the 10.10.0.1 as it's gateway to the internet
 
How would you go about setting up multiple default routes? Is this possible?
 
Can it be done at the VLAN level?

93 Posts

July 13th, 2007 13:00

Also, this will only work on either a Powerconnect 6024 or Powerconnect 62xx series switches as they are Layer-3 switches.

93 Posts

July 13th, 2007 13:00

No.  The ip route statement is destination based and not sourced based.  If it was source based you could do exactly what you mentioned but it is not.

93 Posts

July 13th, 2007 14:00

You would need a device that supports that.  Powerconnect switches do not support that.

1 Rookie

 • 

25 Posts

July 13th, 2007 14:00

Okay, thanks for the answer on that one, do you know what it might take to accomplish using multiple gateways? Would we need to add another 6224 or would that even work?

1 Message

February 27th, 2022 06:00

I have the same problem.

I have 20 VLANs and inner vlan routing works fine.

My router have also 20 vlan interfaces.

If I setup default gateway on switch lets say on vlan 900, only host in the same Vlan 900 that router is in have internet..

If I set default route via other vlan (901), host in this vlan 901 have internet, rest of vlans doesn't have internet..

 

How to set it correct ???

 

p.s. sorry for my english

Moderator

 • 

5.3K Posts

February 27th, 2022 17:00

Hi, IP route https://dell.to/3vsHkPN gateway (ip address>). This default route need to be set on switch. Please see the attached for example.

1 Attachment

1 Rookie

 • 

6 Posts

August 2nd, 2024 13:43

Hello,

we have Dell s4048-on and Dell s60 and i want to add Default Gateway to VLAN 10 on each switch.

here is the current config:

s4048-on:

interface Vlan 10
 ip address 192.168.10.250/24
 tagged Port-channel 1
 untagged TenGigabitEthernet 1/3-1/48
 untagged fortyGigE 1/49-1/54
 no shutdown

s60:

interface Vlan 10
 ip address 192.168.10.251/24
 tagged Port-channel 1
 untagged GigabitEthernet 0/0-47
 no shutdown

can you confirm if to add 192.168.10.1 as the gateway i need to configure:

ip route 0.0.0.0/0 192.168.10.1 255

or

ip route 0.0.0.0/0 192.168.10.1

or something else?

Moderator

 • 

9.6K Posts

August 2nd, 2024 13:55

Dori_Bashan,
 
The command you would need is 
 
ip route https://dell.to/4cgjfgS 192.168.10.1 /24
 
It should be /24 and not /255 if you're using slash notation instead of 255.255.255.0.
 
Let me know if this helps.
 

1 Rookie

 • 

6 Posts

August 2nd, 2024 14:52

Thanks

i think you had a typo there so just verifying (the https://dell.to/4cgjfgS seems incorrect)

is this the correct command for my setup on both switches?

ip route 0.0.0.0/0 192.168.10.1 /24

Thanks!

Dori

Moderator

 • 

9.6K Posts

August 2nd, 2024 14:56

Sorry the page auto-shortened the command to a link

The command you just shared {ip route 0.0.0.0/0 192.168.10.1 /24} is the command I had tried to share that it created the link in. 

 

 

(edited)

1 Rookie

 • 

6 Posts

August 2nd, 2024 15:40

Hi

just tried that and got an error:

i have tried with space before the /24 and without it

                                                       

what am i missing?

Moderator

 • 

9.6K Posts

August 2nd, 2024 15:52

Try dropping the /24 and go with

  

[ip route 0.0.0.0/0 192.168.10.1 255.255.255.0]

(edited)

1 Rookie

 • 

6 Posts

August 2nd, 2024 16:06

still no....

No Events found!

Top