• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 774
  • Last Modified:

Wired and wireless Connection

Hello,

Assuming I have 2 internet source connection.
First, DSL where our Router is connected to it. Then my PC is Wired to this router.
Second, Hotspot where my wireless is connected to.

My question is, would it be possible to assign Port 80 or Web Browser to be connected to this wireless through the hotspot instead and kept other ports like for LAN or MS Outlook on the DSL-Router?

Answers are muchly appreciated.

Thank you.
0
randybucao
Asked:
randybucao
  • 5
  • 4
1 Solution
 
Darr247Commented:
You should be able to do it with the route command.

Open a CMD window and run
route print
right-click and choose Mark
Hold down a Shift key, arrow down+right to select all of the output, and hit Enter to copy it to clipboard. Then paste it into a message here.
0
 
randybucaoAuthor Commented:
Hi, this is what I got:

===========================================================================
Interface List
 19...00 ff 80 18 a0 b8 ......TAP-Win32 Adapter V9
 16...88 53 2e cc 10 24 ......Microsoft Virtual WiFi Miniport Adapter #2
 15...88 53 2e cc 10 24 ......Microsoft Virtual WiFi Miniport Adapter
 12...88 53 2e cc 10 23 ......Intel(R) Centrino(R) Advanced-N 6230
 11...84 8f 69 cc 2b b5 ......Realtek PCIe GBE Family Controller
  1...........................Software Loopback Interface 1
 29...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 17...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
 28...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
 30...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
 31...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
 32...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #5
 18...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0   192.168.80.191    192.168.80.41     10
          0.0.0.0          0.0.0.0   192.168.26.254   192.168.26.134     30
        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.26.0    255.255.255.0         On-link    192.168.26.134    286
   192.168.26.134  255.255.255.255         On-link    192.168.26.134    286
   192.168.26.255  255.255.255.255         On-link    192.168.26.134    286
     192.168.80.0    255.255.255.0         On-link     192.168.80.41    266
    192.168.80.41  255.255.255.255         On-link     192.168.80.41    266
   192.168.80.255  255.255.255.255         On-link     192.168.80.41    266
        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.80.41    266
        224.0.0.0        240.0.0.0         On-link    192.168.26.134    286
  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.80.41    266
  255.255.255.255  255.255.255.255         On-link    192.168.26.134    286
===========================================================================
Persistent Routes:
  None

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    306 ::1/128                  On-link
  1    306 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None


Thanks!
0
 
Darr247Commented:
Sorry for taking so long on this... it's been a busy week already. :-)

OK... what you want is to delete the 'everywhere else' route that tries to talk to the internet through the wired adapter.
That should be the line near the top that says
0.0.0.0          0.0.0.0   192.168.80.191    192.168.80.41     10

Because I'm assuming your wired LAN, even though it's a gigabit adapter, is connected at 100Mbps... and I'm assuming that the hotspot is connecting at less than 20Mbps, even though your wireless adapter is 802.11n.

Those assumptions are made according to the top table at http://support.microsoft.com/kb/299540
(the bottom table is for XP SP2 only... e.g. XP MCE).

i.e. I'm assuming
 12...88 53 2e cc 10 23 ......Intel(R) Centrino(R) Advanced-N 6230 (metric 30)
and
 11...84 8f 69 cc 2b b5 ......Realtek PCIe GBE Family Controller  (metric 10)


So (also assuming Win7) you'd need to open an Administrator command prompt(*) and run
route delete 0.0.0.0 mask 0.0.0.0 192.168.80.191 metric 10 if 11

After that,
all traffic for addresses in the 192.168.80.0 /24 LAN should continue going through interface #11, which I'm assuming is the Realtek wired adapter. It doesn't matter if that gets the same IP every time, but it DOES matter that it gets the same Gateway IP address each time it connects to the LAN... if not, you need to change that "192.168.80.191" Gateway address in the 'route delete' command each time the Gateway changes.

all traffic for addresses in the 192.168.26.0 /24 LAN and everywhere else (except for 192.168.80.0 /24, because the routing table is processed from the bottom up) should still go through 192.168.26.134, which I'm assuming was (when you ran 'route print') the Centrino wireless adapter (interface #12)... that could change each time you connect to the hotspot and it won't matter.

Let's see if that works the way you want before we go making it persistent.

Without making it persistent, rebooting, or even just disconnecting and reconnecting the LAN cable will restore the routing table to what it was before... once it's persistent, you won't have to run that route delete command after every boot/reboot.

(*) To open an Administrator command prompt.
click the 'start' orb
type cmd in the search box
hold down Ctrl+Shift and hit Enter
(or right-click the result that appears at the top of the start menu, under Programs (1), and choose Run as administrator)
answer Yes to the UAC prompt.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
randybucaoAuthor Commented:
Hi, thank you for the effort on relying this.

1. How did you know that my interface 11 is connected at 100mbps?
2. Thank you for the link, I just learned.
3. So i went to the interface tcp\ip metric setting and I have setup #11 to 30 and  #12 to 40.
However, which interface would it go if it is more than 20Mb?
4.My previous route; wireless was connected to the WAP. Here's the new line after I delete the Route you mention above then I have it connected to my actual Hotspot:
          0.0.0.0          0.0.0.0         10.0.0.1         10.0.0.2     40
5. How about for port wise, would it be possible to setup to which interface can use to?

Thanks Again!
0
 
randybucaoAuthor Commented:
I've just changed to: Interface #11 to metric 10, then #12 to metric 30. I think, it should be like this, right?
0
 
Darr247Commented:
Please do not change the metrics manually.

All you need to do is open an Administrator command prompt and run
route delete 0.0.0.0 mask 0.0.0.0 192.168.80.191 metric 10 if 11

I used the automatic metrics that windows assigned (per the top table in KB299540) to deduce which interface was which in the routing table, rather than also asking for the output from ipconfig /all.

The only way the ethernet port could have been metric 30 was if your LAN was running at 10Mbps, and I figured it was much more likely to be connected at 100Mb (even though it is a 1000Mb adapter) and the WiFi to be connected below 20Mbps... that's not unusual for WiFi, as that would still give real world throughput of 10Mbps or so, which is about 7x faster than a T1, and nearly 2x faster than the typical cable internet connection... so you would not notice a slower wireless connection to the internet as you would a 10Mbps LAN connection.

Running that command should change your routing table to look like
===========================================================================
Interface List
 19...00 ff 80 18 a0 b8 ......TAP-Win32 Adapter V9
 16...88 53 2e cc 10 24 ......Microsoft Virtual WiFi Miniport Adapter #2
 15...88 53 2e cc 10 24 ......Microsoft Virtual WiFi Miniport Adapter
 12...88 53 2e cc 10 23 ......Intel(R) Centrino(R) Advanced-N 6230
 11...84 8f 69 cc 2b b5 ......Realtek PCIe GBE Family Controller
  1...........................Software Loopback Interface 1
 29...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
 17...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
 28...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
 30...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
 31...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #4
 32...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #5
 18...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination        Netmask          Gateway       Interface  Metric
          0.0.0.0          0.0.0.0   192.168.26.254   192.168.26.134     30
        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.26.0    255.255.255.0         On-link    192.168.26.134    286
   192.168.26.134  255.255.255.255         On-link    192.168.26.134    286
   192.168.26.255  255.255.255.255         On-link    192.168.26.134    286
     192.168.80.0    255.255.255.0         On-link     192.168.80.41    266
    192.168.80.41  255.255.255.255         On-link     192.168.80.41    266
   192.168.80.255  255.255.255.255         On-link     192.168.80.41    266
        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.80.41    266
        224.0.0.0        240.0.0.0         On-link    192.168.26.134    286
  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.80.41    266
  255.255.255.255  255.255.255.255         On-link    192.168.26.134    286
===========================================================================
Persistent Routes:
  None

IPv6 Route Table
===========================================================================
Active Routes:
 If Metric Network Destination      Gateway
  1    306 ::1/128                  On-link
  1    306 ff00::/8                 On-link
===========================================================================
Persistent Routes:
  None

Open in new window


which should always force the internet traffic through the WiFi adapter, because there is no longer a route to 'everywhere else' (0.0.0.0)  through the wired adapter.

You can confirm that by running
route print
before you run the route delete command, then again after, and compare the 2 outputs.
0
 
Darr247Commented:
In what way was the solution disatisfactory ?
0
 
randybucaoAuthor Commented:
not much, but I learned something. Thank you!
0
 
Darr247Commented:
You might consult this Help page in the future:
http://www.experts-exchange.com/help/viewHelpPage.jsp?helpPageID=26

Thanks.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now