Page 4 of 4 FirstFirst ... 234
Results 31 to 39 of 39

Thread: routers??

  1. #31
    Member
    Join Date
    Sep 2007
    Posts
    51
    sorry, i still don't understand. so what process does the router go through for packets which are addressed to IP addresses that are not on the router's LAN (e.g. accessable via the Internet), and the router it's own connection to the ISP?
    Last edited by user0182; July 28th, 2008 at 04:07 PM.

  2. #32
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    You'll need to understand about ip addresses and subnet masks. Especially what's the network and host address of an IP.

    The router will look at the destination IP and compare that to it's routing table. If it cannot find a match it will send it to the default gateway.

    The next router (usually on your ISPs network) will do the same, and the next router, and the next until the end point is reached.
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  3. #33
    Member
    Join Date
    Sep 2007
    Posts
    51
    yeah, i do have a pretty good understanding of routing tables.

    i think that answered my question. i know that, as far as machines on one's LAN are concerned, one's router (which has an Internet connection) is the default gateway. i was just wondering how that router routes packets?

    so it too has a default gateway, which is a router at one's ISP, where packets with a destination that is not on one's LAN are routed. so, for example, if you were to request a web-page, the HTTP request would probably be sent to the router on your LAN, then your ISPs router, then an Internet backbone router etc. am i correct?


    regards,

    - user0182

  4. #34
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    Quote Originally Posted by user0182
    i think that answered my question. i know that, as far as machines on one's LAN are concerned, one's router (which has an Internet connection) is the default gateway. i was just wondering how that router routes packets?

    so it too has a default gateway, which is a router at one's ISP, where packets with a destination that is not on one's LAN are routed. so, for example, if you were to request a web-page, the HTTP request would probably be sent to the router on your LAN, then your ISPs router, then an Internet backbone router etc. am i correct?
    Yep, that's it. Each router forwards it to the next depending on it's routing table.

    On your PC and/or home network router the routing table is usually pretty simple, 1 or 2 local networks and a default gateway. The routing tables on the backbone of a big ISP can get pretty large. ISPs usually don't have static routes but use BGP to dynamically build the routing tables. With BGP routers can talk to each other so information about what network is reachable via what route gets automatically distributed.
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  5. #35
    Member
    Join Date
    Sep 2007
    Posts
    51
    so, how does a home router figure-out what it's default gateway should be (i.e. how does one's LAN router get the IP address of the ISP's router)?

  6. #36
    A home router usually either a) gets an IP from the ISP automatically via DHCP, which is leased to the router's WAN port, or b) has the WAN IP set manually, either by instructions sent from the ISP or other means. Usually, when DHCP is involved, not only is the IP for the router itself sent, but also other information, such as the IP of the default gateway, IP(s) of the DNS server(s), IP(s) of the DHCP server(s), lease time, etc...

  7. #37
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    NukEvil is correct.

    You either get the default gateway from DHCP or you set it by hand.
    Oliver's Law:
    Experience is something you don't get until just after you need it.

  8. #38
    Member
    Join Date
    Sep 2007
    Posts
    51
    thanks guys, that's been really helpful and interesting.

    so, does that mean that a typical home router acts differently on it's different interface types (i.e. uplink, standard). i mean; as many home routers act as a DHCP router for their LAN nodes, does this mean that the router acts as a router/server on it's standard interfaces and as a client on it's uplink interface?


    many thanks,

    - user0182

  9. #39
    Just Another Geek
    Join Date
    Jul 2002
    Location
    Rotterdam, Netherlands
    Posts
    3,401
    If it's set up that way, yes. Most home routers are a DHCP client on the WAN interface and a DHCP server for their internal (W)LAN interface(s).
    Oliver's Law:
    Experience is something you don't get until just after you need it.

Similar Threads

  1. Auditing Routers: The Checklist - Looking for Feeback
    By KuiXing-2005 in forum Network Security Discussions
    Replies: 2
    Last Post: April 4th, 2005, 04:44 PM
  2. Routers and Hyper Terminal
    By soma56 in forum Hardware
    Replies: 6
    Last Post: October 12th, 2004, 10:15 PM
  3. Services Behind Linksys Routers
    By SonofGalen in forum The Security Tutorials Forum
    Replies: 9
    Last Post: February 6th, 2004, 01:13 AM
  4. Routers v. Switches
    By hot_ice in forum Other Tutorials Forum
    Replies: 6
    Last Post: March 1st, 2002, 12:03 AM
  5. Traceroute: under the hood
    By antihaxor in forum Non-Security Archives
    Replies: 0
    Last Post: January 24th, 2002, 05:42 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •