Showing results for 
Search instead for 
Did you mean: 

2 VLAN's sharing 1 Gateway


I have read through these forums, and have yet to find an answer to my scenario.

I have 2 VLAN's set up, but my Cisco WLC cannot reach the internet.

VLAN 10 Tagged is Cisco WLC 4402-50 Series assigning DHCP of 172.16.0.x / (Public Wifi)

VLAN 1 Untagged is Windows Server assigning out DHCP of 10.1.1.x / (Private LAN)

All of my switches are Layer 2 (Dell PowerConnect 5224) with the exception of 1 HP ProCurve 4104GL Layer 3.    

My firewall/gateway is set to, and cannot be trunked, tagged, and cannot accept the 252 subnet.

I need to somehow get my 172.16.0.x range to access the internet via

I have enabled and disabled IP Routing on the ProCurve, but it is not forwarding my traffic to the gateway.     

Is this possible?  My Cisco Wireless network can ping the HP ProCurve on, but can't get past there.

I need 2 VLAN's to share one Internet Gateway that cannot be VLAN'd.  Is this possible on the WLC 4400 or HP Switch?

Or must I buy a new gateway.


5 Replies 5

Aaron Ratcliffe

Hi Mark,

It’s impossible to share the gateway on the 172.16 subnet directly,

If im understanding your topology correctly,

You need a gateway on the 172.16 subnet that can route between vlans, is it possible (is not already) on your current topology to make a 172.16 interface (Vlan int or loopback of some sort) on the layer 3 switch then a default route from there to the gateway?

So basically the becomes the default gateway for that subnet then a default route to witch is configured on the layer 3 switch.

Hope this helps

Thanks Aaron,

I have attempted this, but so far unsuccessful.  Currently I have as the gateway configured on my WLC, and my wireless can successfully see the switch.  I then have configured as the default gateway on the HP Switch.  I have tried IP Routing, and an IP Helper Address, but so far, I can't get that to work.  If someone knows the HP Switches, I would appreciate some tips, most of the commands seem the same as Cisco, so even if you tell me how to do it on a Cisco switch, I might be able to get it working on the HP.

Aaron Ratcliffe

why don't you set up the layer 3 switch for inter vlan routing ? this is best practice . then a default route to your firewall .

the reason it's failing now is you are missing a route, the firewall has no route back to the 172 network .

Sent from Cisco Technical Support Android App

OK, I'll have to give this a try. so I need =

ip route

but then I also need =

ip route ???? 

Or does that just open up my 10. to access my 172.

If it were me i would enable the layer 3 switch for inter vlan routing ,

config on l3 switch :

ip routing

interface Vlan1

description WIFI-VLAN

ip address

ip helper-address *DHCP SERVER*


interface Vlan10

description PrivVLAN

ip address

ip helper-address *DHCP SERVER*

ip route

then the default gateways on all devices as there vlan interface address (Above), this will result in the layer 3 switch routing between the vlans , the default route for the rest of the traffic is to the internet gateway.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Recognize Your Peers