• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

InterVlan Routing HP and Cisco


I have a network where we are trying to segment the network for a VoIP solution.  The next before was a flat network everything on the default VLAN with no segmentation.  They did however have two subnets on the default VLAN 192.168.1.x and 192.168.2.x.  Everything was fine.

Now we are segmenting the network with two VLANs as follows:

VLAN1 - Default Vlan with subnets 192.168.1.x and 2.x
VLAN2 - Voice - 192.168.3.x

The switch is a Procurve 8212 with the following config:

ip default-gateway
ip routing
vlan 1
   name "DEFAULT_VLAN"
   untagged A1-A24,B1-B22,C7-C24,D1-D24,E1-E8,F1-F8
   ip address
   no untagged C1-C6
vlan 2
   name "Voice"
   untagged C1-C6
   ip address
   tagged A1-A24,B1-B22,C7-C24,D1-D24,E1-E8,F1-F8
ip route
snmp-server community "public" unrestricted

THere is a problem routing between .2.x and the other subnets.  Is that because it is the second subnet on the Default VLAN that is not defined?

I tried using a separate router as a Router on a Stick and had a similar issue with routing but it was only one way.

Thanks for your thoughts!
2 Solutions
Vlan 1 is configured with a /24 mask. This would only include 192.168.1.x, but not 2.x.
Sandeep GuptaConsultantCommented:
how you can assign two IP networks on one vlan?

better to make it 192.168.x.x/16
You're in a tough situation.  This is an exercise in intermediate TCP/IP subnetting.

You want to make two networks contiguous ( and, but you're starting on an odd network so you can't "supernet" them because the natural boundary is in the middle of it.  You could do and with  If you want to do both and, then you need a 2nd ip address on your procurve interface (on a cisco it would be a secondary), so that the network could communicate with the rest of the network.  Everything that was addressed would need to point to the (default) gateway address.

Hope this helps.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now