Solved

switch to switch different ips

Posted on 2015-01-16
11
120 Views
Last Modified: 2015-01-25
I have two switches, two IP addresses. One switch with IP from first subnet, Second switch with IP from second subnet. I need one port to connect the two.

What do I need to do and how to get these two to talk and be able to access both of them from my machine?
0
Comment
Question by:Jennifer
11 Comments
 
LVL 82

Expert Comment

by:Dave Baldwin
ID: 40554467
You need two network cards.
0
 

Author Comment

by:Jennifer
ID: 40554532
I am not sure I understand. I have two network cards on my server that I will be configuring them on. I just need to know how to configure them to talk to each other through one port. (One is going to be for phones and the other for data)

As far as accessing them I want to remote into them using the IP address. I currently do for the two switches I have here (same subnet) and the two routers I have externally (each with a different subnet different from here)
0
 
LVL 10

Expert Comment

by:Rafael
ID: 40554595
What kind of switches are you using? Are they managed or unmanged ? Depending on what type of switch you have, you might have to update your server route table and add static routes. This will allow the specific traffic to follow the path you tell it.
0
 

Author Comment

by:Jennifer
ID: 40554679
One is HP Procurve the other is Luxul XMS
They are both managed
0
 
LVL 3

Expert Comment

by:Dimitris Ioakimoglou
ID: 40554706
The following will make sense mainly if you want to keep your current management IPs for your switches. If not, things are a lot simpler, change the management IP of switch2 to be in the same subnet as switch1 for example. But I don't think you'd ask about that, so here's what I think you need.

You need to use a common subnet between the two, in order for them to talk to each other. You will then need to use routing (don't know if it's supported on your switch models) in order for your machine to connect to the second switch through the first one.

Here's an example for you. SWITCH1 = 172.16.1.1/24, PC = 172.16.1.2/24 , SWITCH2 = 192.168.1.1/24. (I'm only using /24s to keep it a bit simple.)
You need PC to be able to connect to SWITCH2.
a) An easy way out would be to create a second management interface on Switch2 -if it's supported by your model- so that SWITCH2 could be managed through 172.16.1.3 and 192.168.1.1 at the same time.

b) The other way would be to create a second interface with the IP 172.16.1.3 so that 172.16.1.1 and 2 would get that far, and 192.168.1.1 would be accessible through routing. You'd need to configure your default gateway with a command that sets 172.16.1.3 as the next hop for the network 192.168.1.0/24. Then you'd also need SWITCH2 to be able to route between the 2 networks, depends on model.

c) The third way would be to use a completely different subnet to connect the two switches. So what you'd end up with would be something like this:

PC (172.16.1.2) <====> S1 (172.16.1.1)<>S1(172.16.2.1)<====>S2(172.16.2.2)<>S2(192.168.1.1)

Now, the above will also need routing to be an option, this time on both switches. You'd also need static routes on your default gateway (stating that the next hop for 192.168.1.0/24 is 172.16.1.1), on S1 (stating that next hop for 192.168.1.0/24 is 172.16.2.2)  and on S2 (stating that next hop for 172.16.1.0/24 is 172.16.2.1).
0
Zoho SalesIQ

Hassle-free live chat software re-imagined for business growth. 2 users, always free.

 

Assisted Solution

by:Jennifer
Jennifer earned 0 total points
ID: 40557947
Thank  you. They have to be different subnets. One is PC's and one is phones.

HP1 (172.16.4.x, along with HP2 is all pcs and servers) will have one port going to Luxul1 (172.16.20.X, along with Luxul2 is all phones)

I would like to know how to configure routing for HP1 to connect to Luxul1 and talk to the rest of my network.

I will worry accessing later but I should at least be able to ping the Luxul from any pc.
0
 

Accepted Solution

by:
Jennifer earned 0 total points
ID: 40558747
I have...

HP1 - gateway, configuration

hostname "Procurve Switch 1"
no qos dscp-map 101110
interface 45
   name "VOICE"
exit
ip default-gateway 172.16.4.1
ip routing
snmp-server community "public" Unrestricted
snmp-server host 172.16.4.131 "public"
vlan 1
   name "DEFAULT_VLAN"
   untagged 1-44,46-48
   ip address 172.16.4.2 255.255.255.0
   tagged 45
   exit
vlan 2
   name "Voice"
   untagged 45
   ip address 172.16.20.3 255.255.255.0
   exit
ip route 0.0.0.0 0.0.0.0 172.16.4.1
spanning-tree


Luxul 1 - I need to be phones
I have set an ip address of 172.16.20.2
I have added a vlan, under qos there is a place to set voice vlan, I have tagged port 24. I am just learning Luxul switches so I am not sure how to get a config print, or exactly how to set some of this up, here is a link http://luxul.com/wp-content/documents/UG/LUX-UG-XMS-1024P.pdf

I am using a server to configure. I have two network connections. I have one set with an ip of 172.16.4.4 using 172.16.4.2 as gateway. I have the other set using 172.16.20.4 with gateway of 172.16.20.2

If I disable the connection for 172.16.4.X then I can no longer reach that subnet, I can only reach 172.16.20.X ip's
If I disable connection for 172.16.20.X then I can't access it anymore I can only access 172.16.4.X ip's

What this is telling me that I the phones on subnet 172.16.20.x are not going to talk to my network...?
0
 
LVL 3

Assisted Solution

by:Dimitris Ioakimoglou
Dimitris Ioakimoglou earned 200 total points
ID: 40560955
Ok so you have port 45 set up as access for vlan 2.  I suppose you've connected it to port 24 on the luxul switch and you've been able to ping 172.16.20.2 from the HP switch. That's a prerequisite for all of the stuff below.

If so, you don't need a route on your HP switch, cause the switch will see 172.16.20.x as a directly connected network. Directly connected networks have the highest priority on the routing table, higher than static routes even.

Let's assume you turn your 172.16.20.4 NIC off on your pc. You're left with 172.16.4.4. Your packets destined for 172.16.20.2 will go to the HP switch. The HP switch will then route them to vlan 2 without any help cause it has a vlan 2 interface itself. Then the packets will reach Luxul via L2. So far so good.
Now, luxul will have to return the packets. However it won't know how, cause it has no info on how to reach 172.16.4.0.
You will therefore need to set a command to route 172.16.4.0 255.255.255.0 over 172.16.20.3.
I did take a look on the pdf you posted, it does not look like your Luxul supports routing at all. It does however have a "default gateway" setting, which you could set as 172.16.20.3.

And that should be it.

Note1, having 2 gateways on your pc at once makes no sense, I guess you did it on order to test by disabling NIC1 and the NIC2 etc.
Note2, your phone network and your PC network SHOULD be seperated, you will have to use ACLS to regulate what should be allowed to be accesed by whom etc.

Hope this helped!
0
 
LVL 3

Expert Comment

by:Dimitris Ioakimoglou
ID: 40562023
I'm not really objecting to anything, however according to the pdf you linked us to, I did not see routing as a feature anywhere.
Did I miss it?

This question has nothing to do with points or anything.
0
 

Author Comment

by:Jennifer
ID: 40562126
I was told that it did. They say yes but I too am not seeing it. I had to contact the manufacturer.
0
 

Author Closing Comment

by:Jennifer
ID: 40569025
Thank you, however I figured out how to configure with the help of outside consultant. Sorry, I did this before reading the post. I will give partial points for both of the post in trying to help me. Also, the post is not completely accurate, not for my setup. The Luxul does support Routing.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Suggested Solutions

Patch Management is administrated by page 129 of  the following document:     http://support.dell.com/support/edocs/software/smdmc/11/en/ug/ug.pdf However, there are issues with Patch Management with FTP (for instance, a slow Internet connectio…
This tutorial will go through the steps required to write a script that will back up the configuration settings of a HP-ProCurve switch. You will need to get the following things to follow this tutorial: Telnet Scripting Tool e.g. TST10.exe …
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now