Overclock.net banner
1 - 10 of 10 Posts

· Registered
Joined
·
244 Posts
Discussion Starter · #1 ·
Okay my situation is this. I have my home network with my NAS connected to slow DSL, but on the other hand I have a lot faster public WiFi connection. When I turn both my WiFi and Ethernet adapter on, the Ethernet adapter takes precedent with the slow DSL speeds. So i find myself basically toggling and jumping around networks when I am trying to access the internet (via WiFi) and when I want to access my NAS on my home network (via Ethernet).

Is it possible to setup my connections so that my main internet access is through WiFi but I will still have access to my home network resources (ie. NAS and Shared Printers).

Any ideas on how I can accomplish this?

TIA,
Jinx
 

· Registered
Joined
·
653 Posts
First print this off so you can undo this process should anything go wrong.

Now, you need to find the gateway for your Wi-FI card.
Go to: Start Menu >>> Run
Then type: cmd
Switch to Dos window and type: ipconfig

Write down the default gateway for the wireless card. (will be an IP address of some sort)

Go into the control panel and pull up the network connections. When you can see both cards you will need to right click and then select properties on the top one. Now go into Internet by double clicking "Protocal (TCP/IP)". Then click advanced. On the IP settings tab you will see "default gateways" on the bottom. Click add and enter the gateway IP from above. Click on all the "Ok / Apply" buttons to close all the windows. From this point you need to reboot to make sure nothing has decided to not play nicely.

When your system comes back it will either work through the wireless, or it will hang at the log in. If it hangs at the log in you will need to change the default gateway in the other card as well (been a while since I've done this >_<). Again reboot make sure it works... and then reboot one more time to make sure.
 

· Registered
Joined
·
96 Posts
it wouldve been also good that you said which OS you run

ill presume its win7

before you change your default gateway, or do a bunch of ip inserting, try this

go Control Panel\All Control Panel Items\Network and Sharing Center (this is direct path, you can c/p in address bar)

click change adapter settings on the left side, then above in menu bar click advanced >> advanced settings (if you dont have menu bar then for it to appear click organize >> layout >> menu bar )

now new window opened on the first tab called adapters and bindings

there under connections put your wi fi connection before/in front of local (ethernet) connection

and brief back when youre done to let me know how it went on
 

· Registered
Joined
·
244 Posts
Discussion Starter · #7 ·
Quote:
Originally Posted by krista031 View Post

it wouldve been also good that you said which OS you run

ill presume its win7

before you change your default gateway, or do a bunch of ip inserting, try this

go Control Panel\All Control Panel Items\Network and Sharing Center (this is direct path, you can c/p in address bar)

click change adapter settings on the left side, then above in menu bar click advanced >> advanced settings (if you dont have menu bar then for it to appear click organize >> layout >> menu bar )

now new window opened on the first tab called adapters and bindings

there under connections put your wi fi connection before/in front of local (ethernet) connection

and brief back when youre done to let me know how it went on
Yes I am running Win7 and I followed your instructions but my Ethernet connection is still taking precedent over my WiFi
 

· Registered
Joined
·
244 Posts
Discussion Starter · #8 ·
Quote:
Originally Posted by DarkPhoenix View Post

First print this off so you can undo this process should anything go wrong.

Now, you need to find the gateway for your Wi-FI card.
Go to: Start Menu >>> Run
Then type: cmd
Switch to Dos window and type: ipconfig

Write down the default gateway for the wireless card. (will be an IP address of some sort)

Go into the control panel and pull up the network connections. When you can see both cards you will need to right click and then select properties on the top one. Now go into Internet by double clicking "Protocal (TCP/IP)". Then click advanced. On the IP settings tab you will see "default gateways" on the bottom. Click add and enter the gateway IP from above. Click on all the "Ok / Apply" buttons to close all the windows. From this point you need to reboot to make sure nothing has decided to not play nicely.

When your system comes back it will either work through the wireless, or it will hang at the log in. If it hangs at the log in you will need to change the default gateway in the other card as well (been a while since I've done this >_<). Again reboot make sure it works... and then reboot one more time to make sure.
I tried this but my Ethernet connection is still taking precedent over my WiFi. Was I suppose to disable DHCP on my router (Ethernet connection)?
 

· Registered
Joined
·
96 Posts
no, your router has nothing to do with this, windows make priority for nic's

do a SS of both wifi and lan ip settings and your ipconfig /all and post them back here

and do a SS of that advanced settings window also

EDIT : also do a sketch of how is everything connected (WHOLE thing, not just your PC)
 

· Registered
Joined
·
476 Posts
Start your cmd prompt with elevated privileges.

C:\Windows\system32>ipconfig
Windows IP Configuration
Wireless LAN adapter Wireless Network Connection:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 10.1.1.62
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.1.1.1

Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
IPv4 Address. . . . . . . . . . . : 10.1.1.54
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 10.1.1.1

Check your current route metric. "route print"
You can see my wired connection metric is 10 where my wireless connection is 25 in the "route print" command below. You can also see my USB wireless card i put in for this test is index number 24.

C:\Windows\system32>route print
===========================================================================
Interface List
24...00 08 10 77 a3 f7 ......802.11 USB Wireless LAN Card
10...bc 5f f4 10 1f 42 ......Realtek PCIe GBE Family Controller
13...08 00 27 00 ec 15 ......VirtualBox Host-Only Ethernet Adapter
1...........................Software Loopback Interface 1
15...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
11...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
16...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
29...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.1.1.1 10.1.1.54 10
0.0.0.0 0.0.0.0 10.1.1.1 10.1.1.62 25
10.1.1.0 255.255.255.0 On-link 10.1.1.54 266
10.1.1.0 255.255.255.0 On-link 10.1.1.62 281
10.1.1.54 255.255.255.255 On-link 10.1.1.54 266
10.1.1.62 255.255.255.255 On-link 10.1.1.62 281
10.1.1.255 255.255.255.255 On-link 10.1.1.54 266
10.1.1.255 255.255.255.255 On-link 10.1.1.62 281
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.56.0 255.255.255.0 On-link 192.168.56.1 276
192.168.56.1 255.255.255.255 On-link 192.168.56.1 276
192.168.56.255 255.255.255.255 On-link 192.168.56.1 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.56.1 276
224.0.0.0 240.0.0.0 On-link 10.1.1.54 266
224.0.0.0 240.0.0.0 On-link 10.1.1.62 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.56.1 276
255.255.255.255 255.255.255.255 On-link 10.1.1.54 266
255.255.255.255 255.255.255.255 On-link 10.1.1.62 281
===========================================================================
Persistent Routes:
None

Add a route using the interface switch to your NAS. http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/sag_tcpip_pro_addstaticroute.mspx?mfr=true

In my case the "IF" number is 24 for my "Wireless Network Connection" so the route would look like this. The /P will make the route persistent.

In this example my printer IP is 10.1.1.4. Make sure to use the 255.255.255.255 mask to show it is a host address. I would also make your NAS a static IP if you haven't already.

C:\Windows\system32>route add 10.1.1.4 mask 255.255.255.255 10.1.1.1 metric 2 IF 24 /P
OK!

Show the routes again.

C:\Windows\system32>route print
===========================================================================
Interface List
24...00 08 10 77 a3 f7 ......802.11 USB Wireless LAN Card
10...bc 5f f4 10 1f 42 ......Realtek PCIe GBE Family Controller
13...08 00 27 00 ec 15 ......VirtualBox Host-Only Ethernet Adapter
1...........................Software Loopback Interface 1
15...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
11...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
16...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
29...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.1.1.1 10.1.1.54 10
0.0.0.0 0.0.0.0 10.1.1.1 10.1.1.62 25
10.1.1.0 255.255.255.0 On-link 10.1.1.54 266
10.1.1.0 255.255.255.0 On-link 10.1.1.62 281
10.1.1.4 255.255.255.255 10.1.1.1 10.1.1.62 27
10.1.1.54 255.255.255.255 On-link 10.1.1.54 266
10.1.1.62 255.255.255.255 On-link 10.1.1.62 281
10.1.1.255 255.255.255.255 On-link 10.1.1.54 266
10.1.1.255 255.255.255.255 On-link 10.1.1.62 281
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.56.0 255.255.255.0 On-link 192.168.56.1 276
192.168.56.1 255.255.255.255 On-link 192.168.56.1 276
192.168.56.255 255.255.255.255 On-link 192.168.56.1 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 192.168.56.1 276
224.0.0.0 240.0.0.0 On-link 10.1.1.54 266
224.0.0.0 240.0.0.0 On-link 10.1.1.62 281
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 192.168.56.1 276
255.255.255.255 255.255.255.255 On-link 10.1.1.54 266
255.255.255.255 255.255.255.255 On-link 10.1.1.62 281
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
10.1.1.4 255.255.255.255 10.1.1.1 25
===========================================================================

The traffic for 10.1.1.4 is now going out the 10.1.1.62 interface.

To get rid of the route run this using the ip address of the NAS: route delete 10.1.1.4 mask 255.255.255.255
 
1 - 10 of 10 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top