Re: Which NIC Will Windows Use?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Doug Thews (dougthews_at_removeme.ddconsult.com)
Date: 07/06/04


Date: Tue, 6 Jul 2004 10:27:31 -0500

I was planning on doing that. What I was wondering is how does Windows
decide which NIC/IP to use if they're both the same length away from the
destination (and yes, they obviously will have the same DG). My guess since
all I'm reading is about "umpredictability" is that the OS will pick the
NIC/IP with the highest bind # in the registry that matches the criteria
(i.e. closest to the destination).

-- 
Doug Thews
Director, Customer Solutions
D&D Consulting Services
----------------
Visit my Tech Blog at:
http://www.ddconsult.com/blogs/illuminati/
"Phillip Windell" <@.> wrote in message
news:%23vHKA0pYEHA.384@TK2MSFTNGP10.phx.gbl...
> If you truely need two IP#s, then run both IP#s on the same Nic. Get rid
of
> the second Nic.
>
>
> -- 
>
> Phillip Windell [MCP, MVP, CCNA]
> www.wandtv.com
>
>
> "Doug Thews" <dougthews@removeme.ddconsult.com> wrote in message
> news:%23yq9LTLYEHA.1764@TK2MSFTNGP10.phx.gbl...
> > OK, I see.  I mis-spoke when I said they were on different subnets.
They
> > are in fact on the same 10.x subnet and they both have the same default
> > gateway.
> >
> > Let's say NIC1= 10.100.1.8 and NIC2=10.100.1.49, with the DG for
> > both=10.100.1.1.
> >
> > Now, there's nothing special set up in the routing table (from my
> > perspective), so my question is ... If I have an application that opens
a
> > port 80 connection to a web service (like Amazon's web services ... on a
> > 206.x.x.x address), how does Windows determine which NIC should be used
to
> > send the packets?  My guess is that in this case, the card with the
lowest
> > binding number will always get called.
> >
> > Thanks in advance for your help.
> >
> > -- 
> > Doug Thews
> > Director, Customer Solutions
> > D&D Consulting Services
> > ----------------
> > Visit my Tech Blog at:
> > http://www.ddconsult.com/blogs/illuminati/
> >
> >
> >
> > "Phillip Windell" <@.> wrote in message
> > news:uyK6VuDYEHA.2016@TK2MSFTNGP11.phx.gbl...
> > > "Doug Thews" <dougthews@removeme.ddconsult.com> wrote in message
> > > news:eNkCqD8XEHA.3716@TK2MSFTNGP10.phx.gbl...
> > > > I have a Windows 2003 Server with two separate NICs and 2 separate
IPs
> > > (the
> > > > NICs do not support teaming).  Both connect to the same gateway, but
> are
> > > > actually on different private subnets (don't ask me why it was set
up
> > this
> > > > way ... probably one was private and one was public at some point in
> > this
> > > > server's infancy).
> > >
> > > Well in this particular case only one will work properly.  The Default
> > > Gateway *must* be in the same subnet as the Interface.  So since you
say
> > > that they are different subnets but yet the same gateway, that means
one
> > has
> > > an incompatible gateway and will not do anything outside of it own
> subnet.
> > >
> > > When things are correctly configured,..it is the routing table that
> makes
> > > the decision for which interface to use based on routes entered into
the
> > > table.  The Default Gateway is only for "unspecified routes",...there
> can
> > bo
> > > only **one**. Other nics must leave theirs blank. You can have only
> *one*
> > > gateway to an "unknown" location via and "unknown" route.  All others
> must
> > > be "known" destinations via a "known" route.  The Internet is always
> > > classified as an "unknown".
> > >
> > > -- 
> > >
> > > Phillip Windell [MCP, MVP, CCNA]
> > > www.wandtv.com
> > >
> > >
> >
> >
>
>


Relevant Pages

  • How to configure Windows 2003 as a Router ?
    ... different subnets. ... does it mean that the default gateway ... for those workstations connected to that Windows 2003 Server will use its IP ...
    (microsoft.public.windows.server.networking)
  • Re: Basic firewall/networking question
    ... apollyon wrote: ... > The two subnets are connected using windows xp with two nic's in it. ... You cannot have a default gateway in another subnet. ...
    (comp.security.firewalls)
  • Workgroup that spans more than one subnet in Samba
    ... I want a workgroup that spands two IP subnets. ... eth0:192.168.0.1 and gateway of the 192.168.0.0/24 ... The Gateway is a Fedora Core 3 box where I have Samba ... running with this configuration: ...
    (comp.os.linux.networking)
  • Re: Cant see all the XP systems on my network in workgroup
    ... Quoted from Does Windows 2000/2003 domain needs WINS ... Networking, Internet, Routing, VPN Troubleshooting on ... Do you have a router between two subnets? ... >> systems in the workgroup. ...
    (microsoft.public.windowsxp.network_web)
  • Re: Brow-beaten by browsing
    ... Windows 2000 and Windows XP replace the computer browser service". ... and all my PCs in others. ... The good news is that all of the subnets are connected to the servers via ... in the server subnet? ...
    (microsoft.public.windows.server.networking)