Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Is it possible to have Ethernet for internal network, and Wifi for Internet Access
New Posts  All Forums:Forum Nav:

Is it possible to have Ethernet for internal network, and Wifi for Internet Access

post #1 of 10
Thread Starter 
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
post #2 of 10
Should be able to accomplish this by setting the default gateway to that of your Wi-Fi.
post #3 of 10
Thread Starter 
Quote:
Originally Posted by DarkPhoenix View Post

Should be able to accomplish this by setting the default gateway to that of your Wi-Fi.

Please pardon me for my ignorance but I have no idea what you are talking about. How would I go about setting this up?
post #4 of 10
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.
post #5 of 10
there is an easier way, set static ips for each wired device and leave out dns numbers...badaboom bada bing.
Gaming Rig
(15 items)
 
Sons Rig
(11 items)
 
File Server
(13 items)
 
CPUMotherboardGraphicsGraphics
Core i7 4790K ASUS Z97-WS Gigabyte GeForce GTX 980 Gigabyte GeForce GTX 980 
RAMHard DriveCoolingOS
16 Gb's Mushkin DDR3 @ 1600 MHz Crucial M500 SSD 240gb Coolit ECO C240 Windows 7 Ultimate 
MonitorMonitorPowerCase
ASUS PB287Q 4K Monitor HTC Vive Coolermaster Silent Pro M 1000W Rosewill Blackhawk Ultra 
MouseMouse PadAudio
Razer Deathadder 2013 Steelseries Qck Mass Super Thick Cloth Mouse Pad Genius SW-G2.1 1250 4PC Gaming Speakers 
CPUMotherboardGraphicsGraphics
Core i7 3770k Asus P8Z68 Deluxe Galaxy Geforce GTX 780 Galaxy Geforce GTX 780 
RAMHard DriveCoolingOS
16 Gb's G.Skill DDR3 1866 Crucial M500 SSD 240Gb Coolit ECO C240 Windows 7 Ultimate 
MonitorPowerCase
Benq G2420HD Coolermaster Silent Pro 1000 Watt Deepcool Kendomen 
CPUMotherboardRAMHard Drive
Core i3 2120 Supermicro X9SCM-F 4 Gb Kingston 1600mhz DDR3 ECC 12 Segate 2tb drives (RAID 6) 
Hard DriveHard DriveOSPower
ADATA SP600 SSD 24 Toshiba DT01ACA200 drives (2 RAID 6's) Windows 7 Ultimate 64 bit. OCZ ZT750 Supermicro PWS-665-PQ 
CaseOtherOtherOther
Norco 4020 and Norco 4224 LSI 9260-4i Raid Card Intel RES2SV240 20 port Expander. HP SAS 24 por... Voltaire 410Ex Hca Infiniband HBA 
  hide details  
Reply
Gaming Rig
(15 items)
 
Sons Rig
(11 items)
 
File Server
(13 items)
 
CPUMotherboardGraphicsGraphics
Core i7 4790K ASUS Z97-WS Gigabyte GeForce GTX 980 Gigabyte GeForce GTX 980 
RAMHard DriveCoolingOS
16 Gb's Mushkin DDR3 @ 1600 MHz Crucial M500 SSD 240gb Coolit ECO C240 Windows 7 Ultimate 
MonitorMonitorPowerCase
ASUS PB287Q 4K Monitor HTC Vive Coolermaster Silent Pro M 1000W Rosewill Blackhawk Ultra 
MouseMouse PadAudio
Razer Deathadder 2013 Steelseries Qck Mass Super Thick Cloth Mouse Pad Genius SW-G2.1 1250 4PC Gaming Speakers 
CPUMotherboardGraphicsGraphics
Core i7 3770k Asus P8Z68 Deluxe Galaxy Geforce GTX 780 Galaxy Geforce GTX 780 
RAMHard DriveCoolingOS
16 Gb's G.Skill DDR3 1866 Crucial M500 SSD 240Gb Coolit ECO C240 Windows 7 Ultimate 
MonitorPowerCase
Benq G2420HD Coolermaster Silent Pro 1000 Watt Deepcool Kendomen 
CPUMotherboardRAMHard Drive
Core i3 2120 Supermicro X9SCM-F 4 Gb Kingston 1600mhz DDR3 ECC 12 Segate 2tb drives (RAID 6) 
Hard DriveHard DriveOSPower
ADATA SP600 SSD 24 Toshiba DT01ACA200 drives (2 RAID 6's) Windows 7 Ultimate 64 bit. OCZ ZT750 Supermicro PWS-665-PQ 
CaseOtherOtherOther
Norco 4020 and Norco 4224 LSI 9260-4i Raid Card Intel RES2SV240 20 port Expander. HP SAS 24 por... Voltaire 410Ex Hca Infiniband HBA 
  hide details  
Reply
post #6 of 10
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
post #7 of 10
Thread Starter 
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
post #8 of 10
Thread Starter 
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)?
post #9 of 10
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)
Edited by krista031 - 2/22/13 at 9:33am
post #10 of 10
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
1090T
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T GA-890FXA-UD5 HIS 4670 G.SKILL ECO Series 4GB (1600) 
Hard DriveOSPowerCase
WD Black (Raid 0) Win 7 Home Premium x64 CORSAIR 850W COOLER MASTER Storm Sniper 
  hide details  
Reply
1090T
(13 items)
 
  
CPUMotherboardGraphicsRAM
1090T GA-890FXA-UD5 HIS 4670 G.SKILL ECO Series 4GB (1600) 
Hard DriveOSPowerCase
WD Black (Raid 0) Win 7 Home Premium x64 CORSAIR 850W COOLER MASTER Storm Sniper 
  hide details  
Reply
New Posts  All Forums:Forum Nav:
  Return Home
  Back to Forum: Networking & Security
Overclock.net › Forums › Software, Programming and Coding › Networking & Security › Is it possible to have Ethernet for internal network, and Wifi for Internet Access