Link to home
Start Free TrialLog in
Avatar of Howco
HowcoFlag for United Kingdom of Great Britain and Northern Ireland

asked on

HP 2920 switch VLAN routing

Hi all,

I have a stack of 4 x new HP 2920-24 switches that are connected using the HP stacking modules.

I now see 96 ports on my stack plus the ports on the 10GB modules in the back of each switch.

I have untagged all of the odd numbered ports and assigned them to VLAN25 and assigned ip 192.168.25.242 to the VLAN.

I have also tagged all of the even numbered ports and assigned them to VLAN30 and then assigned ip 192.168.30.242 to that VLAN.

I now want to set up routing between the two VLANs but cannot for the life of me work out how.

Originally I had tagged ALL of the ports but found I could not connect to the web interface of the stack using the 192.168.25.242 url.  This is why I have now untagged them.

Could someone please advise me on what I need to do here?  There appears to be very little in the way of documentation available for this feature.

Many thanks.
Avatar of Member_2_6582184
Member_2_6582184
Flag of Germany image

Hello,

you need to enable ip routing gloabally and set the subnets for each VLAN (please double check the subnets, I assumed /24):
ip routing
vlan 35
ip address 192.168.25.0 255.255.255.0
exit
vlan 30
ip address 192.168.30.0 255.255.255.0
exit
show ip route

Open in new window

The VLANs should be shown as 'connected' now.
This should do the trick for inter-vlan routing...
Avatar of Howco

ASKER

Hi Helge,

That is exactly what I have done already.  At least you have confirmed this.

The only other thing I can think of is, is it not correct that I have tagged all of the ports in VLAN30?  I had to mark the ports in VLAN25 as untagged or I lost connection to the web interface.

Should I mark all of the ports as untagged?  How have you got yours set?

Also, if they are all set as untagged and they do connect from one subnet to the other and vice-versa, is this proper routing i.e. broadcasts will not be routed; which is what I am trying to achieve?

Thanks for your reply.  I was starting to bang my head on the wall :o)
Avatar of Howco

ASKER

BTW - They did say connected. I forgot to add that at the beginning of my reply.  So tagged or untagged they still say connected.
How do you test inter vlan routing in your setup?

I would suggest to untag one port for each VLAN. Connect a device, set the IP, and as gateway set the IP of the switch VLAN 192.168.[25|30].242 in your case.

Can you now ping the device from the other VLAN?

Note: to my knowledge you need to enable ip routing on every switch as well as set VLAN IPs.
Avatar of Howco

ASKER

Hi Helge,

I tried that yesterday and yes it does prove that the routing works.  However, this means we would need to put the 6 IP addresses of the 2 x Vlan, 3 x stacks as gateways for ALL of the devices on the network including DHCP and static devices.

Should I really need a GW setting?  I thought that as the first hop was the switch, the switch would then automatically work out where to send the next hop.  

Thanks again.  Still looking to see if there is something I can set on the switches to say go to next hop if not the same VLAN.

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of Member_2_6582184
Member_2_6582184
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Howco

ASKER

You were most of the way there.  I have finally managed to get someone at HP to assist and they say that if not using a router (which I want to avoid in order to reduce failure points) then the only way is to use multiple gateways on devices.  These can be provided using DHCP providing the IP Helper-address command is used for each VLAN.

This means that I will need two DHCP servers, one on each subnet/vlan, or both vlans will try to get the same range.

Many thanks, you pointed me most of the way there.