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

Different default gateways for each VLAN on HP switch

I'm trying to set a different default gateway for one of my VLANs on an HP 5406zl switch. The reason being I want clients on that VLAN to take a different path the the internet. Overall I have ip route set up on the switch which is fine for the majority, but for one VLAN I want its default gateway to be
How can I do this?
Current config attached.
Thanks in advance!
2 Solutions
Routing is generally done by matching destination address.  You are asking to route based on matching a source address as well.  This requires 'policy based routing' (PBR).

According the the spec sheet, The 5400zl supports PBR on v2 modules.

Ref: http://h17007.www1.hp.com/us/en/products/switches/HP_5400_zl_Switch_Series/index.aspx#Layer 3 routing

I don't have a procurve to verify the commands though - some else will need to help out there.
Don JohnstonInstructorCommented:
The Advanced Traffic Management Guide has the commands you'll need (starting on page 379).

Something like:

class ipv4 Homer
 match ip any
policy pbr Simpson
 class ipv4 Homer
 action ip next-hop
vlan 10
 service-policy Simpson in

Open in new window

browswAuthor Commented:
I appears PBR can only be done on the 5406zl with new v2 modules.
Thanks all for you comments.

Featured Post

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

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