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

Different default gateways for each VLAN on HP switch

Hi,
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 0.0.0.0 0.0.0.0 172.16.0.1 set up on the switch which is fine for the majority, but for one VLAN I want its default gateway to be 172.16.0.8.
How can I do this?
Current config attached.
Thanks in advance!
config.txt
0
browsw
Asked:
browsw
2 Solutions
 
unfragmentedCommented:
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.
0
 
Don JohnstonInstructorCommented:
The Advanced Traffic Management Guide has the commands you'll need (starting on page 379).

Something like:

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

Open in new window

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

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