Re: how do I choose which network connection to use?

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance




Steve Winograd [MVP] wrote:
In article <1144394489.850632.124540@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"q_q_anonymous@xxxxxxxxxxx" <q_q_anonymous@xxxxxxxxxxx> wrote:
I have a LAN NIC and a dial up modem. Say I connect with both. Then my
dial up becomes my default. i.e. when I browse the web, it uses dial
up.

Fine.
But how do I choose which to use?

I heard that w2k has an' adaptor and bindings' menu somewhere that does
it, and you can assign a metric. Though, I use Win XP.

This answer applies to all versions of Windows. When multiple network
connections can access the Internet, Windows uses the one with the
lowest metric value for its associated default route.

By default, Windows uses a dial-up connection instead of a LAN
connection, because when you establish a dial-up connection:

1. It adds 1 to the metric of a LAN connection's default route.

2. It sets the metric of the dial-up connection's default route to 1.

To make Windows use the LAN connection when both connections are
active, you can:

1. Use the "route print" command to view the default routes for both
connections, noting the each one's default gateway address.

2. Use the "route delete" command to delete the default routes.

3. Use the "route add" command to create a default route for the
connection that you want to use.

For example, if the LAN gateway is 192.168.0.1 and the dial-up gateway
is 1.2.3.4, these commands would make Windows use the LAN connection
for Internet access:

route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 192.168.0.1

These commands would make it use the dial-up connection again:

route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 1.2.3.4

If you want both default routes to be active, you can assign the
desired metric to each. For example, this would make Windows use the
LAN connection:

route delete 0.0.0.0
route add 0.0.0.0 mask 0.0.0.0 192.168.0.1 metric 1
route add 0.0.0.0 mask 0.0.0.0 1.2.3.4 metric 2
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)


thanks, that works nicely

.



Relevant Pages

  • Re: ActiveSync Wont Sync
    ... connection between the PC and the device. ... Windows Firewall says its off and I ... Dumping Route information ... Dumping Ipconfig information ...
    (microsoft.public.pocketpc.activesync)
  • Re: how do I choose which network connection to use?
    ... This answer applies to all versions of Windows. ... Windows uses a dial-up connection instead of a LAN ... It adds 1 to the metric of a LAN connection's default route. ... To make Windows use the LAN connection when both connections are ...
    (microsoft.public.windowsxp.network_web)
  • Re: how do I choose which network connection to use?
    ... This answer applies to all versions of Windows. ... Windows uses a dial-up connection instead of a LAN ... It adds 1 to the metric of a LAN connection's default route. ... Use the "route delete" command to delete the default routes. ...
    (microsoft.public.windowsxp.network_web)
  • Re: PPP for accessing an embedded device (routing problem)
    ... message de news: ... Windows XP Pro. ... I still have to check if this can be configured on per connection ... only or few IP addresses it uses) instead of this default route. ...
    (comp.protocols.ppp)
  • Re: network win 2000 & win xp home
    ... the LAN connection I created has an error - limited or no connectivity - ... windows xp machine:- ... Ethernet adapter local area network connection 2 (this is for the ... If I type ipconfig on the windows 2000 laptop I only get:- ...
    (microsoft.public.win2000.networking)