LAN Routing
cancel
Showing results for 
Search instead for 
Did you mean: 

Routing between 2 seperate Procurves

narnold30
Occasional Contributor

Routing between 2 seperate Procurves

Hi,

 

So here's the scenario...

 

I have 2 Procurve 5412ZL switches. The first one sits on a 10.100.26.0/23 subnet and the other that sits on a 10.41.224.240/22 subnet. I need to route traffic between the 2. This is a precursor to setting up a trust between 2 domains. So, I've been researching the best way to do this for the last 2 days and I've settled on what I believe to be the correct path but would appriciate any pointers that anyone has to give.

My current thoughts are that I need to create a VLAN on each switch and assign it the IP address of the other switch on the other network. Then I would add a static route to point all traffic bound for the other network in each switch.

To better explain what I mean, see below...

 

Switch 1 - IP: 10.100.26.2/23

vlan 30

name VLAN30

tagged G2

ip address 10.41.224.241 255.255.252.0

 

ip route 10.41.224.240 255.255.252.0 10.41.224.241

 

 

Switch 2 - IP: 10.41.224.241/22

vlan 30

name VLAN30

tagged B2

ip address 10.100.26.2 255.255.254.0

 

ip route 10.100.26.0 255.255.254.0 10.100.26.2

 

I think I'm missing something as when the packets from one network appear on the other switch, they will still be contained within VLAN 30. Or at that point, does the switch now know where to route them as it already knows what to do with packets addressed to the subnet that each one  resides over?

 

Many thanks for any pointers you can give.

 

 

 

1 REPLY
Vince-Whirlwind
Honored Contributor

Re: Routing between 2 seperate Procurves

I think you're having the correct doubts, because I don't think that's a very good way of doing it.

 

Just imagine you have two different subnets in two different cities and you want to connect those two networks. You're never going to do this by extending each subnet geographically.

 

No, what you want to do is this:

 

Create a new VLAN on both switches: say, VLAN400.

On switch1, give the VLAN400 SVI the IP address 10.1.1.1/29

On switch2, give the VLAN400 SVI the IP address 10.1.1.4/29

Create an interlink port on each switch, make it untagged in VLAN400, patch the two ports together.

 

That's Step1 complete: you now have a single physical network, and both your "Core" switches are manageable from a single location.

 

Step2, you want to route traffic between the two networks: just add one static route on each switch, telling it where the other switch's subnet is.

EG

on switch1 you add

ip route 10.41.224.240/22 10.1.1.4

on switch2 you add

ip route 10.100.26.0/23 10.1.1.1