Problem with router cannot connect to the internet?

Discussion in 'Hardware' started by nec209, Oct 20, 2010.

  1. nec209

    nec209 Private First Class

    I tried to get this problem answered at yahoo answers but it turn into alot of questions and I really do not understand what I'm doing.

    Post..
    Quote "Note I have 2 routers set at DHCP could this have some thing to do with it?"

    Of course that's the problem. You have two different routers giving out ip addresses for two different networks. However, only one of your routers is the actual Gateway for your network, even though they're both acting like it. The router with ip address 192.168.0.1 should be the only router with DHCP turned on. Turn off DHCP on the other router. Quote

    There is a working connection from computer to router but not router to other router .The first router has a gateway address 192.168.0.1 and hooked up to the modem but router 2 is hooked to router one to give more ports so I can hook up more computers it gateway address is 192.168.1.0 or 192.168.1.1 . Are you saying that is the problem ? router 2 needs the same gateway address has router 1.So both router 1 and 2 have to have the same gateway address .And DHCP should be turn off?

    Why is router 2 giving out a IP address 192.168.1.124 to the computer?What should the gateway be on router 2 and why can't it be different .Why is it router 2 cannot see router 1.

    Post

    Reply:Turn off DHCP on the second router, and do not use the WAN port. Just plug the LAN port into the first router, and the second router will act as a switch only.
    Set the second router's address to 192.168.0.2, so you can still get to it to administer it... All PCs will then be in the 192,168.0.x subnet.
    If you need more ports, add a cheap switch to either the first or second router.


    How can a switch know what computer the data to route it too?Also what is a LAN or WAN do? For the router what will it do with the data if it is a LAN or WAN?

    How can one router talk to other router?Why is router 2 not routing the data to router 1? How can both routers use same DHCP range for each computer with out getting confused?

    Sorry this new for me and I really do not understand how this works and how router and switch works and data does not get lost or at wrong computer.
     
    Last edited: Oct 20, 2010
  2. Break_Da

    Break_Da Sergeant

    ...
    Switch does just as the name sounds, changes the ports or plugs to allow connection from one device to another. Has nothing to do with giving out IP addresses rather letting the devices "see" the IP addresses necessary for connectivity.

    The second router "acts like" a switch, pointing the packets received and transmitted via the connection to the correct device.

    Since you aren't using the WAN (wide area network) port and only the LAN (local area network) port the router won't consider adding IP addresses and all devices are along the 'same plain of sight', working in a single plain instead of creating multiple levels of network. Sort of like stacking plates one on top of another; if you use only one plate you can see what is on top of that plate but put another plate on top and you can not see what was on the first plate anymore.

    Router 2 is creating a new set of IP address and fall into a new subnet. For all devices to be seen without configuring new routing information they need to fall into the 'same subnet'.

    The router(s) do not work together to give out IP addresses within the same DHCP range. Most of the time the routers do not work within the same subnet therefore the DHCP range is different.

    ...

    hope some was made clear, if it isn't someone will help out more
     
  3. nec209

    nec209 Private First Class

    Okay this is what I think is confusing me the relationship of router and switch.

    But how dows a switch know where to send the data.And hooking up a switch will not give out IP address at all.Hooking up more computers need 2 things for a working connection a IP address and gateway address.



    If computer 2 is hooked to router one and computer 2 IP address is 192.168.0.4 and computer 5 hooked to router 2 and computer 5 has the same IP address 192.168.0.4 how will the router know what computer to send it to?

    It does not matter if you have 2 routers or 15 routers no computer must use the same IP address but every router must have a different gateway address . It does not matter if you have 2 routers or 15 routers YOU cannot have the same IP address or same gateway address .

    The idea is if every computer has a different IP address and every router has a different gateway address the data will not get lost has to what computer the data should go to.
     
  4. Break_Da

    Break_Da Sergeant

    It knows to 'route' the information due to packet headers which is a little more than what is required to know to answer the question. Switches are like a light switch with the data going through them and the information contained within the data the switch will 'recognize' where to send the information from the header in the packet (data) being sent and received.

    You don't keep router 2's DHCP on, it would be turned off. This will eliminate different subnetting and different networks. Also, router 2 would be directly connected to router 1 via a LAN port, none other. DHCP will be handled via router 1 giving router 2 and all computers an IP address. No duplication of IP addresses would occur.

    For a larger network a more elaborate configuration(s) would be consider, configuring routers and switches themselves, but for home use the above is more than enough. The duplication of IP addresses is the real issue expressed above so having two devices having DHCP ability is not correct. Router closest to the modem or Internet would be handling DHCP, thus router 1 having DHCP enabled. Router 2, connected to LAN port to router 1, would then act as a switch. Router 2 would gain an IP address from router 1 just as all other computers would, whether wired or wireless.
     
  5. nec209

    nec209 Private First Class

    I thought network technicians like to turn off DHCP ability? And large networks that have 50 or 100 computers or more would have DHCP ability turn off .Why is it most computer books say in your home you should have only one DHCP?

    Router 1 only has 5 ports.So I think it can only support 5 computers that is 5 IP address .



    The router only has 5 ports that is 5 computers / 5 IP address !! How can a router give each port on a switch a IP address ?How does the router control the switch?

    What should the gateway address be on both routers? Every router or switch has to have a different gateway address.
     
  6. Break_Da

    Break_Da Sergeant

    DHCP should be allowed on only your closest device to the Internet/modem, the other should be turned of according to previous posting.
    Any DHCP device gives out IP addresses according to an IP address range.

    Gateway will be given via the modem to first routing device, no need to consider the gateway. If you are truly interested in more reading a Web search may yield some useful reading materials, I would lean towards Wikipedia to start.
     
  7. nec209

    nec209 Private First Class

    No I'm talking about the routers gateway. First router gateway is 192.168.0.1 and the other router 192.168.1.0 or 192.168.1.1 :yum
     
  8. Break_Da

    Break_Da Sergeant

    looks like the IP's are in different subnets, what exactly have you done so far?

    ... is DHCP turned off?
    ... how is the router 2 plugged into router 1?
    ... turned all devices off then starting closest to the Internet/modem turn the devices on waiting to start the next device until the prior is fully up and running?

    A mention of your equipment may be useful also.
     
  9. nec209

    nec209 Private First Class

    Should each router be on a different subnet? What about the routers gateway should it be all the same or different ?

    I thought every router needs to have its own gateway address .


    -- router 1 gateway address 192.168.0.1
    -- router 2 gateway address 192.168.1.0 or 192.168.1.1
     
  10. Break_Da

    Break_Da Sergeant

    ...what router is being used to reach the internet? 1 or 2?
    ...which router do you have DHCP enabled? should be the one used to reach the Internet
    ...use a LAN port for the second router to the first router...and disable DHCP on the second router...
    using different subnets will require configuring a 'large, smart' router to know what to do with the different subnets... ie: ***.***.0.1 versus ***.***.1.0
     
  11. nec209

    nec209 Private First Class

    The only thing I can dig up is this.

    Definition: router
    http://voip.about.com/od/hardware/p/whatisarouter.htm

    Definition: A subnet
    http://compnetworking.about.com/od/workingwithipaddresses/l/bldef_subnet.htm

    No this is not want I'm trying to do.



    What causes IP confict if 2 subnet are using the same IP address for the computer?




    How do I know if my router has this information?



    http://compnetworking.about.com/od/internetaccessbestuses/f/default_gateway.htm

    How do I know if I need more than one gateway ? Has of now both routers have the same gateway address.


    If I understand a router should only be use to link one subnet to other subnet.If no plans to have other subnet in home or office a switch should be used to give more Ethernet ports.A router should not be used to give more Ethernet ports a router job is to link one subnet to other subnet.So the gateway address is the link from one subnet to the other subnet.

    Many people and books say if you have more than one router in the home turn off DHCP on all routers other than the one hooked up to the modem. Why is that? For beginners is it too hard to set it up and that is why thay say that?
     
  12. Break_Da

    Break_Da Sergeant

    Subnets must match. Think of fractions and adding them or subtracting them, if the bottom number (denominator) is not the same they can not (see) to be added or subtracted. The denominator must be the same in order to have the fractions be manipulated.

    Subnets must match in order to be able to send information unless configured, which you already stated you are not wishing to do.

    it is gathered from your modem, DHCP handles the information of gateway and dynamic ip addressing (giving the device an ip address).

    you aren't configuring anything, it isn't up to you to decide, it's handle via DHCP.

    routers are simplified, for basic needs, no other reasoning ;) remember, KISS - keep is simple (omitted last word because we are not 'stupid' just uneducated, Lord knows this is me!)
     
  13. nec209

    nec209 Private First Class

    What ? sub-net just separates one network from other network.



    All the computer needs is gateway address.There can be many gateway in office building and billions of gateway on the internet.


    If DHCP is turn off and you can type routers IP address and long in password you can put gateway, DNS and IP address.
    [/QUOTE


    Tech never have DHCP enabled too much trouble they go into routers setting.
     
  14. Break_Da

    Break_Da Sergeant

    not sure what else you are looking for here, seems you have a mind on things already, good luck
     

MajorGeeks.Com Menu

Downloads All In One Tweaks \ Android \ Anti-Malware \ Anti-Virus \ Appearance \ Backup \ Browsers \ CD\DVD\Blu-Ray \ Covert Ops \ Drive Utilities \ Drivers \ Graphics \ Internet Tools \ Multimedia \ Networking \ Office Tools \ PC Games \ System Tools \ Mac/Apple/Ipad Downloads

Other News: Top Downloads \ News (Tech) \ Off Base (Other Websites News) \ Way Off Base (Offbeat Stories and Pics)

Social: Facebook \ YouTube \ Twitter \ Tumblr \ Pintrest \ RSS Feeds