A similar posting that I answered on another "Help Forum". Not exactly the same problem, but similar.....
Q: I have 2 PCs I need to connect using a gigabit segment. One has 2 gigabit NICs (one connected to a wireless router, the other connected to the second PC using a crossover cable), the other has a gigabit NIC and a USB wireless adapter. They are already connected through the wireless network. I am not sure how I would add the gigabit segment to this network, so that the second PC can pull files off the first PC through the gigbit segment, but connect to the Internet through the wireless segment.
How should I assign IP addresses?
Any ideas?
A: How about this?
Let the Wireless Router the Default Gateway for the first Gigabit NIC on the first PC.
Let the Wireless Router automatically assign an IP address, subnet mask, DNS server, and Default Gteway to that NIC.
Let the Wireless Router the Default Gateway for the wireless NIC on the second PC.
Let the Wireless Router automatically assign an IP address, subnet mask, and DNS server, and Default Gateway to that NIC.
Assign a pair of static IP addresses and subnet masks (i.e. 10.0.100.1 and 10.0.100.2, both with subnet mask 255.255.255.0) to the two Gigabit NICs that are connected via crossover cable. Enter nothing for the DNS server and enter nothing for the Default Gateway for these two connected NICs. You can have only one Default Gateway for a PC. And you won't need DNS services for contacting the other PC located on the same subnet.
This will make the wireless router the Default Gateway for both PCs. This will be necessary when trying to contact "foreign" IP addresses (i.e. Internet addresses). So both PCs will use the wireless router when trying to find Internet addresses.
On the other hand, when trying to find addresses on your Gigabit network, the two PCs will use NetBIOS for name resolution and, since the IP addresses of the other PC is on the same subnet, should have no problem contacting the other PC via the Gigabit NIC.
Note that, upon first connection, it might take a while for the NetBIOS function to get the names of the two PCs. So you might not be able to browse the other PC for a few minutes. You should be able to immediately browse it using its IP address (i.e. \\10.0.100.1).
Q: Thanks a million! Awesome post.
It finally worked, I can now browse files over the gigabit connection.
Now the only problem is how I can make sure that Internet traffic gets sent over the wireless, and local traffic over the gigabit connection.
A:In this case, it should be automatic. The setting for the Default Gateway should ensure this.
Say, for instance, you request a connection to 40.28.44.233 (an Internet address). Since your PC doesn't know how to reach this address, it will send the request to the Default Gateway, which is the Wireless Router that is connected to the Internet.
On the other hand, a request to 10.0.100.x will be considered part of the local network and will go out on the local (Gigabit) interface. There's no way that your PC would send a request to 40.28.44.233 (an Internet address) over the 10.0.100.x interface, since there's guarantee of a router there to route the request beyond the 10.0.100.x subnet.