Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
Photo

Two connections. But need to use only one for internet access.


  • Please log in to reply

#1
suneelgv

suneelgv

    Member

  • Member
  • PipPip
  • 17 posts
Hi,

My PC is connected to two networks, wireless and physical. When I'm connected to wireless only, I'm able to access internet. But when I'm connected to both networks, windows is trying to connect to internet using physical network connection. Is there a way to force windows to connect to internet using wireless when both networks are connected?

Thanks
Suneel
  • 0

Advertisements


#2
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
try this

open up a command prompt (start > run > type "cmd" without quotes and press enter)

at the prompt type "ipconfig /all" (no quotes and note the space between ipconfig and /all)

look for your wireless connection and take note of the number following "default gateway"

now in the command prompt type

"route add 0.0.0.0 mask 0.0.0.0 <ip of your default gateway>" and press enter (again...no quotes and where <ip of your default gateway> is put the address that was listed in the ipconfig step next to the default gateway section)

see if this makes a difference
  • 0

#3
suneelgv

suneelgv

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
Thanks for the fast reply. This is what I got:

C:\Users\suneel>route add 0.0.0.0 mask 0.0.0.0 172.16.200.1
The route addition failed: The object already exists.
  • 0

#4
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
ok... open a command prompt and type "route print" (without quotes) and post the results
  • 0

#5
suneelgv

suneelgv

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
C:\Users\suneel>route print
===========================================================================
Interface List
14 ...00 23 4d e9 63 c1 ...... Bluetooth Device (Personal Area Network)
11 ...00 21 6a 2a 20 28 ...... Intel® WiFi Link 5300 AGN
10 ...00 21 70 e9 0b c2 ...... Intel® 82567LM Gigabit Network Connection
1 ........................... Software Loopback Interface 1
22 ...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #3
12 ...00 00 00 00 00 00 00 e0 isatap.{EC7B6859-DA23-4658-905E-85EDDB64C003}
23 ...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
===========================================================================

IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 172.16.200.1 172.16.200.181 25
0.0.0.0 0.0.0.0 172.16.42.254 172.16.42.40 20
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
172.16.42.0 255.255.255.0 On-link 172.16.42.40 276
172.16.42.40 255.255.255.255 On-link 172.16.42.40 276
172.16.42.255 255.255.255.255 On-link 172.16.42.40 276
172.16.200.0 255.255.255.0 On-link 172.16.200.181 281
172.16.200.181 255.255.255.255 On-link 172.16.200.181 281
172.16.200.255 255.255.255.255 On-link 172.16.200.181 281
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 172.16.200.181 281
224.0.0.0 240.0.0.0 On-link 172.16.42.40 276
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 172.16.200.181 281
255.255.255.255 255.255.255.255 On-link 172.16.42.40 276
===========================================================================
Persistent Routes:
None

IPv6 Route Table
===========================================================================
Active Routes:
If Metric Network Destination Gateway
1 306 ::1/128 On-link
11 281 fe80::/64 On-link
10 276 fe80::/64 On-link
11 281 fe80::1045:3322:d0cb:79ef/128
On-link
10 276 fe80::297b:3950:8f1b:5eb5/128
On-link
1 306 ff00::/8 On-link
11 281 ff00::/8 On-link
10 276 ff00::/8 On-link
===========================================================================
Persistent Routes:
None
  • 0

#6
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
can you do an ipconfig /all and post the results as well
  • 0

#7
suneelgv

suneelgv

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
C:\Users\suneel>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : ORCL-VISTA
Primary Dns Suffix . . . . . . . :
Node Type . . . . . . . . . . . . : Hybrid
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : xxx.com

Ethernet adapter Bluetooth Network Connection:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Bluetooth Device (Personal Area Network)
Physical Address. . . . . . . . . : 00-23-4D-E9-63-C1
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes

Wireless LAN adapter Wireless Network Connection:

Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Intel® WiFi Link 5300 AGN
Physical Address. . . . . . . . . : 00-21-6A-2A-20-28
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::1045:3322:d0cb:79ef%11(Preferred)
IPv4 Address. . . . . . . . . . . : 172.16.200.181(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Thursday, July 16, 2009 8:24:28 AM
Lease Expires . . . . . . . . . . : Thursday, July 16, 2009 10:55:34 AM
Default Gateway . . . . . . . . . : 172.16.200.1
DHCP Server . . . . . . . . . . . : 172.16.200.1
DNS Servers . . . . . . . . . . . : 198.246.150.9
198.246.150.10
NetBIOS over Tcpip. . . . . . . . : Enabled

Ethernet adapter Local Area Connection:

Connection-specific DNS Suffix . : xxx.com
Description . . . . . . . . . . . : Intel® 82567LM Gigabit Network Connection
Physical Address. . . . . . . . . : 00-21-70-E9-0B-C2
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::297b:3950:8f1b:5eb5%10(Preferred)
IPv4 Address. . . . . . . . . . . : 172.16.42.40(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Lease Obtained. . . . . . . . . . : Thursday, July 16, 2009 9:35:11 AM
Lease Expires . . . . . . . . . . : Thursday, July 23, 2009 9:35:11 AM
Default Gateway . . . . . . . . . : 172.16.42.254
DHCP Server . . . . . . . . . . . : 172.16.93.16
DNS Servers . . . . . . . . . . . : 172.16.93.15
172.16.93.16
Primary WINS Server . . . . . . . : 172.16.93.16
Secondary WINS Server . . . . . . : 172.16.93.15
NetBIOS over Tcpip. . . . . . . . : Enabled

Tunnel adapter Local Area Connection* 7:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : Microsoft ISATAP Adapter #3
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 11:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : isatap.{EC7B6859-DA23-4658-905E-85EDDB64C003}
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

Tunnel adapter Local Area Connection* 13:

Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : xxx.com
Description . . . . . . . . . . . : Microsoft ISATAP Adapter
Physical Address. . . . . . . . . : 00-00-00-00-00-00-00-E0
DHCP Enabled. . . . . . . . . . . : No
Autoconfiguration Enabled . . . . : Yes

C:\Users\suneel>

Edited by suneelgv, 16 July 2009 - 10:01 AM.

  • 0

#8
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
ok type "route delete 0.0.0.0 mask 0.0.0.0 172.16.42.254" and press enter
  • 0

#9
suneelgv

suneelgv

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
That didn't help either. It also took away access to physical lan network. So added it back.
  • 0

#10
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
ok type "route delete 0.0.0.0 mask 0.0.0.0 172.16.42.254" and press enter

then type "route add 172.16.42.0 mask 255.255.255.0 172.16.42.254"

having two cards active and working is doable..it's just difficult as there's no real way to set a preference...what we're trying to do here is force routing to follow the path we want

0.0.0.0 with a netmask of 0.0.0.0 basically tells the computer to send any traffic that it doesn't know a specific destination for to go over the suggested route...so if we tell your computer to route all 0.0.0.0 traffic over the wireless card then anything destined for a network that it doesn't know about should go that way (such as the internet)...the problem is that when you connect an interface that has a default gateway on it it will automatically create the 0.0.0.0 route so that it doesn't have to add other such routes


what does the wired lan connection plug into? a router? do all the other devices that plug into that router have the same ip subnet? (172.16.42.x)
  • 0

#11
suneelgv

suneelgv

    Member

  • Topic Starter
  • Member
  • PipPip
  • 17 posts
Tried that. Able to access internet over wifi. But lost access to physical network. So had to add 0.0.0.0 mask 0.0.0.0 172.16.42.254 again to gain access. Then I lost wifi.

what does the wired lan connection plug into? Not sure. It is connected to a corporate network. So don't know where the wire goes to. (Probably a router)
do all the other devices that plug into that router have the same ip subnet? (172.16.42.x) Don't know.

Thank you very much for your help. I thought this would be common problem and would have an easy solution.
  • 0

#12
dsenette

dsenette

    Je suis Napoléon!

  • Community Leader
  • 26,047 posts
  • MVP
ok...you said the magic C(orporate) word... you need to talk to your IS group about this

there are VERY few instances that i can think of (Being in corporate IS)where i would let someone attempt to do what you're doing unsupervised at work....
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP