Multihoming on two networks

Tab

Lifer
Sep 15, 2002
12,145
0
76
I'm not sure if this deserves it's own thread or not but I think someone should be able to figure this out easily, I don't have that much experince or understanding when it comes to networks.

At my office computer I need to able to access the state network (10.56.3.1) and my companies network (10.201.24.1), therefore I've got two NICs in my PC.

The problem is, when I browse the web, check email, etc it goes through the state network which I don't want (I confirmed this using tracerout). I found this article but I'm not exactly sure how to make this work?

Code:
route add 10.56.3.1 mask 255.255.255.0 10.201.24.1

Wouldn't this force all traffic to that gateway? Or is this right? Or am I completely crazy?
 

seepy83

Platinum Member
Nov 12, 2003
2,132
3
71
You need to define a Default Gateway on the NIC on your network, and leave no default gateway on the state network NIC.
 

imagoon

Diamond Member
Feb 19, 2003
5,199
0
0
Most PC's don't handle multiholming well. You cannot have dual default gateways so if the stuff you are trying to access is outside the local network on the stateside you will no longer have access. In order to make this work with the default gateway on another LAN, you will likely need to set up routes to the other state network segments.

Might also want to check to make sure they will not have you arrested for doing this. You just created a hole in their network.

EDIT:

Code:
route add 10.56.3.1 mask 255.255.255.0 10.201.24.1

#1 That is invalid.
#2 That tells the machine that 10.56.3.0/24 is accessible via a router @10.201.24.1 so the PC will send all 10.56.3.0/24 data to your work side gateway which sounds like the opposite of what you want.
 
Last edited:

Tab

Lifer
Sep 15, 2002
12,145
0
76
Well, we're contracted out for the state and I obiviously don't want my internal traffic such as everytime I check my email (gmail.com) going through the state network. The guy who set this up previously is longer here and had "mental health" issuses...

EDIT

A co-worker of mine has this setup on their PC and appears to route properly

Persistant Routes
10.201.0.0 255.255.0.0 10.201.24.1
10.201.23.12 255.255.255.255 10.201.24.18

Does this help?
 
Last edited:

RebateMonger

Elite Member
Dec 24, 2005
11,586
0
0
When Windows needs to reach a network outside of the subnets connected to the NIC(s), it'll use the NIC with a Default Gateway set.

If you set the appropriate Default Gateway on the NIC connected to the non-State network (never have more than one Default Gateway on your PC), your Internet traffic will automatically go through that network. When you need to access a computer on the State network, your PC will know to use the correct NIC as long as the entire State network is on the same subnet.

If the desired PCs on the State network are on other subnets, you'll need to create routing statements so your PC will know which NIC to use.
 

imagoon

Diamond Member
Feb 19, 2003
5,199
0
0
Well, we're contracted out for the state and I obiviously don't want my internal traffic such as everytime I check my email (gmail.com) going through the state network. The guy who set this up previously is longer here and had "mental health" issuses...

EDIT

A co-worker of mine has this setup on their PC and appears to route properly

Persistant Routes
10.201.0.0 255.255.0.0 10.201.24.1
10.201.23.12 255.255.255.255 10.201.24.18

Does this help?

Using your previous information, it looks like he is sending web out the state IPs and only sending his internal work stuff out the work NIC.

I am going with this: "state network (10.56.3.1) and my companies network (10.201.24.1)"

To default gateway out your office connection you would but the default gw address in the network config of the work network card and put routes to the state networks using the 10.56.3.1 router.


Strange workstation configurations like this would give me mental health issues also ;)

An ipconfig /all posted here might help.
 

gsaldivar

Diamond Member
Apr 30, 2001
8,691
1
81
one alternative might be to install Virtualbox and bind it to one of your NICs.
then all of the activities you perform within the virtual environment will be sent over the NIC you specify, and everything done outsidwill be sent over the default Windows network. good luck!
 

Tab

Lifer
Sep 15, 2002
12,145
0
76
G:\>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : xxxxxx
Primary Dns Suffix . . . . . . . : xxxxxx.com
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : Yes
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : xxxxxx.com
xxxxxx.com

Ethernet adapter Local Area Connection 4:

Connection-specific DNS Suffix . : xxxxxx.com
Description . . . . . . . . . . . : Marvell Yukon 88E8057 PCI-E Gigabit
Ethernet Controller
Physical Address. . . . . . . . . : xxxxxx
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 10.201.24.150
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.201.24.1
DHCP Server . . . . . . . . . . . : 10.201.24.60
DNS Servers . . . . . . . . . . . : 10.201.24.60
10.201.23.60
Lease Obtained. . . . . . . . . . : Tuesday, November 02, 2010 3:10:41 P
M
Lease Expires . . . . . . . . . . : Monday, November 08, 2010 3:10:41 PM


Ethernet adapter Local Area Connection 3:

Connection-specific DNS Suffix . : xxxxxx.xxxxxx
Description . . . . . . . . . . . : Belkin F5D5005 v2000 Gigabit Desktop
PCI Card #2
Physical Address. . . . . . . . . : xxxxxx
Dhcp Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IP Address. . . . . . . . . . . . : 10.56.3.39
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.56.3.1
DHCP Server . . . . . . . . . . . : 10.59.48.40
DNS Servers . . . . . . . . . . . : 10.59.48.40
10.59.16.40
Primary WINS Server . . . . . . . : 10.2.2.40
Secondary WINS Server . . . . . . : 10.12.0.145
Lease Obtained. . . . . . . . . . : Thursday, November 04, 2010 9:10:44
AM
Lease Expires . . . . . . . . . . : Thursday, November 04, 2010 9:10:44
PM

G:\>tracert www.google.com

Tracing route to www.l.google.com [209.85.225.99]
over a maximum of 30 hops:

1 <1 ms <1 ms <1 ms xxxxxxcisco3750.xxxxxx.com [10.201.24.1]
2 <1 ms <1 ms <1 ms 10.201.24.18
3 46 ms 51 ms 47 ms id1c6509fe3-21.xxxxxx.net [64.21.238.1]
4 133 ms 95 ms 55 ms backbone-232-254.ideaone.net [64.21.232.254]
5 129 ms 186 ms 131 ms sl-gw13-che-4-0-0.sprintlink.net [144.223.68.73]

6 79 ms 52 ms 75 ms sl-crs2-che-0-8-0-0.sprintlink.net [144.232.15.1
34]
^C
G:\>tracert www.xxxxxx.com

Tracing route to ndrin.com [216.235.169.216]
over a maximum of 30 hops:

1 <1 ms <1 ms <1 ms xxxxx.xxxxxx.com [10.201.24.1]
2 <1 ms 71 ms 51 ms id1c6509fe3-21.ideaone.net [64.21.238.1]
3 72 ms 48 ms 125 ms backbone-232-254.ideaone.net [64.21.232.254]
4 60 ms 143 ms 186 ms ndtc79233.gondtc.com [76.10.79.233]
5 200 ms 211 ms 124 ms 216.147.160.190

Here are the settings, I tried replicating this on my pc but they won't stick? I tried using the ROUTE ADD -P...

Here's happens when I a traceroute

C:\Users\xxxx>tracert www.anandtech.com

Tracing route to www.anandtech.com [208.65.201.105]
over a maximum of 30 hops:

1 1 ms 1 ms 1 ms 10.56.3.1
2 1 ms 1 ms 1 ms

This is what I don't want, it should go through 10.201.24.1
 
Last edited:

imagoon

Diamond Member
Feb 19, 2003
5,199
0
0
You have 2 default gateways set which will confuse the IP stack. Correct me if I am wrong but 10.201.*.* is your office network right? That is where the traffic seems to be going.
 

Tab

Lifer
Sep 15, 2002
12,145
0
76
You have 2 default gateways set which will confuse the IP stack. Correct me if I am wrong but 10.201.*.* is your office network right? That is where the traffic seems to be going.

Yes, 10.201.*.* is the office network, where I want all everything to go through, for stuff like cnn.com, webmail, etc.

It's not letting me just change the gateway for 10.56.*.*, if I assign everything to static and leave the default gateway blank - it should work right? And, if so, what are the persistent route on my co-workers pc for in the first place?
 

imagoon

Diamond Member
Feb 19, 2003
5,199
0
0
Yes for the state network, leaving the default GW and setting routes should work. Like I said above, it looks like someone was trying to do the reverse at one point. Even with static routes, anything outside those routes will go to the default gateway so they could be remnants of another setup.
 

Tab

Lifer
Sep 15, 2002
12,145
0
76
I didn't set any routes for the state network, just left the default gateway blank. Should add some routes?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
Only if there are remote networks that you need to access via the state network. Windows should automatically send all traffic to the state network through that interface since it's defined there, although Windows networking is kinda ify with multiple interfaces...
 

Tab

Lifer
Sep 15, 2002
12,145
0
76
Well,

It seems to be working just fine, and routes everything were it needs to go. :D