Aruba & ProVision-based
1754304 Members
3345 Online
108813 Solutions
New Discussion

Multiple internet gateway

 
SOLVED
Go to solution
Blaireau
Occasional Contributor

Multiple internet gateway

Hello,

 

I have a procurve E5406 and multiple VLAN e.g. VLAN 21, 22, 23, 24, 25 ... 50

 

I have two external Internet gateway the first gatweway is on 10.10.1.253 (VLAN1) and the second on 10.10.1.254 (VLAN1)

 

I want that the specific VLAN (for exemple 21 and 22) use the second gateway and all other VLAN use the first gateway.

I don't know how can make that.

I have added two ip route 0.0.0.0 0.0.0.0 <gateway number> but I don't know how can tell VLAN to use the correct gateway.

 

Help needed

Best regards

 

P.S. This thread has been moved from  Switches, Hubs, Modems (Legacy ITRC forum) to ProCurve / ProVision-Based. -HP Forum Moderator

3 REPLIES 3
Blaireau
Occasional Contributor
Solution

Re: Multiple internet gateway

I have asked to HP Support.

First the procurve must use only v2 modules with command :no allow-v1-modules WARNING this command will disable all modules v1.

We do not need two default route. Only one is required
ip route 0.0.0.0 0.0.0.0 10.10.1.253
Create a class for matching VLAN that must be use the gateway B
class ipv4 "MatchVlan"
     10 match ip 10.10.21.0 0.0.0.255 0.0.0.0 255.255.255.255
     20 match ip 10.10.22.0 0.0.0.255 0.0.0.0 255.255.255.255
   exit
Please refer procurve documentation for syntax

After class we need a policy pbr
policy pbr "<myname>"
     5 class ipv4 "MatchVlan"
      action ip next-hop 10.10.1.254
      action interface null
      exit
   exit

In vlan 21 and 22 add the following instruction
service-policy "<myname>" in

That all !
Every paquet from VLAN 21 and 22 to the Internet destination was rerouted to the gateway B

cenk sasmaztin
Honored Contributor

Re: Multiple internet gateway

Hi
Firstly second gateway must have another network address
and different vlan
for example

gateway 1 192.168.1.253 untag vlan 24
gateway 2 192.168.2.253 untag vlan 25

you must write ip routing command to two internet router
0.0.0.0 0.0.0.0 192.168.1.254
0.0.0.0 0.0.0.0 192.168.2.254

and create other vlan 21,22,23 etc.
all vlan have different network address
and ip routing enable on switch

in this way you can use two default gateway address on your network.

secondly
if you want vlan22 using gateway 1 and vlan 23 using gateway 2
for this operation you can use ACL (Access control list)

;)
cenk

SHAKIR_ALI
Occasional Visitor

Re: Multiple internet gateway

Hi,

 

i did similar way as mentioned and vlan is going through correct gateway as well. But the issues is that other vlans cannot reach this vlans. Also devices in this vlan cannot reach their vlan id.

 

i added another class under policy pbr and matched the next-hop to vlan id , still those devices are using below class and going to  default gateway that i created earlier.

 

pls help

 

thanks.