2 NICs, 2 Networks issue.

/usr/home

Supreme [H]ardness
Joined
Mar 18, 2008
Messages
6,160
So I have another interesting problem I need help with. Today I had to swap out a dead computer with a new one for one of our clients. I can't boot the old one so I don't know how the old one was setup. Anyways, the old one connected to two networks via two NICs. One network is for their internet and general network and server and the other is for the POS systems. I didn't originally setup the network or the computers, we got them on as clients just in January. Here's how it sets up:

NIC 1 pulls an IP of 10.10.5.x with a mask of 255.255.255.128 and a gateway of 10.10.5.1.
NIC 2 pulls an IP of 10.10.5.x (>129) with a mask of 255.255.255.128 and a gateway of 10.10.5.129.

There is no internet on the NIC 2, just the first NIC.

The client needs to access the server on the first network and also access another server on the other network. I can either access one network or the other, but not both. It seems to default to the 1st NIC and I can access the internet and server fine but I can't ping the server on the other network or access it. How do I get it to also let me access the server on the second network? BTW - The IP of the server on the second network is 10.10.8.130. Do I need to setup a static route? If so, what's the syntax? If not, how was this setup before and how can I accomplish this? The PC is Windows XP Pro.
 
So I have another interesting problem I need help with. Today I had to swap out a dead computer with a new one for one of our clients. I can't boot the old one so I don't know how the old one was setup. Anyways, the old one connected to two networks via two NICs. One network is for their internet and general network and server and the other is for the POS systems. I didn't originally setup the network or the computers, we got them on as clients just in January. Here's how it sets up:

NIC 1 pulls an IP of 10.10.5.x with a mask of 255.255.255.128 and a gateway of 10.10.5.1.
NIC 2 pulls an IP of 10.10.5.x (>129) with a mask of 255.255.255.128 and a gateway of 10.10.5.129.

There is no internet on the NIC 2, just the first NIC.

The client needs to access the server on the first network and also access another server on the other network. I can either access one network or the other, but not both. It seems to default to the 1st NIC and I can access the internet and server fine but I can't ping the server on the other network or access it. How do I get it to also let me access the server on the second network? BTW - The IP of the server on the second network is 10.10.8.130. Do I need to setup a static route? If so, what's the syntax? If not, how was this setup before and how can I accomplish this? The PC is Windows XP Pro.

NIC 2 is being set to a different sub-net than the server you can't reach is on (effectively, they're connected to completely different networks), so it has to go through it's default gateway to get there. Is there actually a router with the IP address 10.10.5.129 that can reach the 10.10.8.128 subnet?
 
The .129 router can reach the 10.10.8.x subnet, it has a VPN tunnel or something. I don't have access to the router as it's another company that does that.

If I have just the NIC1 plugged in, it can access the internet and the server but not the 10.10.8.130 server and can't ping it. If I have just NIC2 plugged in, I can only access the 10.10.8.130 server and can ping it as well. I I have both plugged in I can access the internet and the server, but not the 10.10.8.130 nor can I ping it.

Also, what number would I want in the metric spot?

EDIT: So what my setup would look like would be this -

NIC1
IP Address: 10.10.5.103
Subnet: 255.255.255.128
Gateway: 10.10.5.1

NIC2
IP Address: 10.10.5.152
Subnet: 255.255.255.128
Gateway: none

ROUTE add 10.10.8.130 mask 255.255.255.128 10.10.5.129 metric 2 if "interface#" -p OR
ROUTE add 10.10.8.130 mask 255.255.255.128 10.10.5.129 metric 2 -p

Which command is right?

(For the IP after the mask, do I want the IP of the router of the second network or do I want the IP that I assigned to the second NIC?)

This should accomplish what I want right? Give both NICs those static IPs. (Each one is in the range of the proper network.) Sorry for the all the questions, having to play with routes is something new to me.
 
Last edited:
Got it fixed on my own. Gave them both static IPs and used

route add 10.10.8.0 mask 255.255.255.0 10.10.5.129 metric 2 -p

Thanks for the help.
 
Back
Top