Comware Based
cancel
Showing results for 
Search instead for 
Did you mean: 

HP A5500 routing by source

lebideau
Occasional Visitor

HP A5500 routing by source

Hy

I search to configure 2 default route for 2 VLAN

i have this conf :

 

interface Vlan-interface1
 ip address 192.168.1.254 255.255.255.0

 

interface Vlan-interface2
 ip address 192.168.2.254 255.255.255.0

 

 ip route-static 0.0.0.0 0.0.0.0 192.168.1.1

 

I want  vlan 2 use another default-route 192.168.1.2

 

I think I have to use ACL but i don't find sample configuration

If someone can help me,thanks ?

1 REPLY
NCGnet
Occasional Advisor

Re: HP A5500 routing by source

Hi there,

 

I had to do this on our 10500's a while ago, for us we had to seperate private IP address ranges from public and then pass the public (internet ranges) to a different default gateway form our usual one.

 

I started with the ACL's

 

acl number 3006 name XXXX_selectRFC1918
description Select RFC1918 private address ranges from XXXX
rule 0 remark select private address ranges
rule 5 permit ip source 172.19.0.0 0.0.255.255 destination 10.0.0.0 0.255.255.255 logging
rule 10 permit ip source 172.19.0.0 0.0.255.255 destination 172.16.0.0 0.15.255.255 logging
rule 15 permit ip source 172.19.0.0 0.0.255.255 destination 192.168.0.0 0.0.255.255 logging

acl number 3007 name XXXXDefault
description Select all traffic from XXXX - rule goes after private ranges
rule 0 remark select source traffic
rule 5 permit ip source 172.19.0.0 0.0.255.255 logging
rule 10 permit ip source 10.84.0.0 0.3.255.255 logging
rule 15 permit ip source 172.27.18.0 0.0.0.255 logging

 

Once you have ACL's to check the traffic you can then write the Policy based route for them

 

policy-based-route XXXXTraffic deny node 1
if-match acl 3006
apply ip-address next-hop 172.28.9.1
policy-based-route XXXXTraffic permit node 2
if-match acl 3007
apply ip-address next-hop 10.10.10.20

 

I made this using the information is this post which was very helpful.

http://h30499.www3.hp.com/t5/Comware-Based/Policy-Based-Routing-in-A5820X/td-p/6411240#.VZEEm-FCguB

 

Hope this helps