Re: Two Routers, One NAT

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



In article <1167134450.586018.98290@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
"Nipi" <yamen.k@xxxxxxxxx> wrote:
I would like to share this experience and ask one question about one
home network configuration.
I have two routers at home, one provided by the ISP, not wireless,
which I will call router "A"
and another wireless one i recently got for the laptop, I will call it
router "B"
The router A is connected directly to the ISP and there are two
computers connected to the internet through it. And since I can't
connect the router B to the ISP cable directly (their decision) I first
connected the WAN port of router B to one LAN port of router A, which
allowed my laptop to access the internet but i didn't like it that way
because this had to put the laptop behind two NATs.
So i thought of another configuration, to use the router B like a
"wireless HUB only" by connecting one of its LAN ports (instead of the
WAN port) to the router A, which I figured would make the laptop able
to access the ISP's router A directly.
Here came the problem, I noticed that not only the laptop (which is
connected directly to router B) is taking an IP address from the router
B's DHCP, but also the two computers which are connected to the router
A!, and of course this made them all unable to access the internet,
because router B has nothing on the WAN port.
I could solve this problem with one of two methods, either force all
the computers to take IPs from router A, by specifying fixed IPs within
router A's range and use its IP as default gateway, or by completely
disabling the DHCP service on router B, which is a better idea since i
don't need it if i'm using it only like a HUB.
But my question is, what made all the computers including those
connected directly to router A, to connect and take IPs only from the
router B, and on what does it depend that a computer chooses one router
if more than one are on the same network?
(All the computers are running windows XP)

You've correctly diagnosed the problem and its solution in a
complicated setup. I agree that disabling the DHCP service on router
B is the best idea.

With router B connected to a LAN port of router A, both routers, and
their DHCP servers, are on the network. When a computer requests a
DHCP address, both routers' DHCP servers receive the request, and both
of them can reply with a DHCP offer. It's then a timing issue: the
computer accepts the DHCP offer that it receives first. It appears
that router B's DHCP server replied sooner than router A's DHCP
server. The result might be different at another time.
--
Best Wishes,
Steve Winograd, MS-MVP (Windows Networking)

Please post any reply as a follow-up message in the news group
for everyone to see. I'm sorry, but I don't answer questions
addressed directly to me in E-mail or news groups.

Microsoft Most Valuable Professional Program
http://mvp.support.microsoft.com
.



Relevant Pages

  • Re: Linksys BEFSR41, running cards at 100-full mode...
    ... The router, other computers, nothing. ... > We do have DHCP enabled in the router. ... Uninstall all firewalls and other internet security ...
    (comp.security.firewalls)
  • Re: Cant Access Printer!!!
    ... These addresses are assigned from out of the DHCP pool. ... So the DHCP server (one of the computers always, or could it be in the ... It is usually the router, but it can be a computer running DHCP server ...
    (comp.sys.mac.misc)
  • Re: sharing a wireless router- need suggestions
    ... computers are pretty locked down. ... I configured the router and I ... provides 5 IPs (DHCP, not static), and just between my stuff I'm ... Modem plugged into switch ...
    (microsoft.public.windowsxp.network_web)
  • Re: Linksys BEFSR41, running cards at 100-full mode...
    ... The router, other computers, nothing. ... We do have DHCP enabled in the router. ... the port forwarding about 6-8 months ago IIRC. ...
    (comp.security.firewalls)
  • Re: Home networking--DHCP or static?
    ... I went into the setup screen and told it to limit DHCP ... My network connection was gone. ... then let "visitors" pick up an IP address from the router. ... >>>I have several computers at home connected to a network. ...
    (microsoft.public.windowsxp.network_web)