UNSOLVED

drebbin

updated

2 years ago

D

drebbin

1 Rookie

25 Posts

0

60852

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...
  • stormytoad

    44 Posts

    4886

    0

    Posted 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
  • drebbin

    1 Rookie

    25 Posts

    4886

    0

    Posted 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?
  • Crzywolf

    93 Posts

    4886

    0

    Posted 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.
  • Crzywolf

    93 Posts

    4887

    0

    Posted 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.
  • Crzywolf

    93 Posts

    4887

    0

    Posted July 13th, 2007 14:00

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

    1 Rookie

    25 Posts

    4887

    0

    Posted 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?
  • zoltek

    1 Message

    1723

    0

    Posted 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

  • DELL-Young E

    Moderator

    5421 Posts

    37 Points

    1709

    0

    Posted 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.

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!

    1 Attachment

  • Dori_Bashan

    1 Rookie

    6 Posts

    0

    0

    Posted 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?

  • DELL-Chris H

    7 Practitioner

    9682 Posts

    48046 Points

    0

    0

    Posted 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.
     

    DELL-Chris H

    Social Media and Communities Professional

    Dell Technologies | Enterprise Support Services

    #IWork4Dell

    Did I answer your query? Please click on ‘Mark as Accepted Answer’. ‘Thumbs up’ the posts you like!