Solved

May u give brief knowledge how router work?

Posted on 2006-10-23
10
192 Views
Last Modified: 2013-11-29
How does it forwards or map ip in different subnet simplely.

What is the definition of it and how is the basic function?
0
Comment
Question by:turbot_yu
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 43

Accepted Solution

by:
Steve Knight earned 500 total points
ID: 17794026
Each interface has an IP address.  In that basic state the router will take any packets that arrive on one interface with a destination address on the same subnet as another interface and send them out to it.  Client devices generally reach a router through their default gateway setting or from being being redirected there by another network device (another router or L3 switch).

One interface may have a default gateway, any packets that come into the router that it doesn't have a specific route for go out that interface.

The router builds up routing tables either defined manually (static routes) or automatically by talking to other router devices so that it knows out of interfaceA it can get to 10.1.0.x and out of InterfaceB it can to get 192.168.x.x for instance.

http://en.wikipedia.org/wiki/Router
0
 

Author Comment

by:turbot_yu
ID: 17795447
Thanks a lot, quite clear,
May u give a bit more on
'Client devices generally reach a router through their default gateway setting or from being being redirected there by another network device '

And how and where to set the gateway.
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17795605
'Client devices generally reach a router through their default gateway setting or from being being redirected there by another network device '

OK, this is basic TCP/IP stuff and there are many tutotials out there, but will give a brief run down.

Each PC has an IP address, and subnet mask as a minimum.
The IP address and subnet mask are combined to identify if another IP address is on the same subnet and therefore contacted directly or on another subnet in which case to be sent to the default gateway.

e.g.


your ip is 10.0.1.2 and subnet mask is 255.255.255.0  defult gatrway is 10.0.1.1
router ip is 10.0.1.1
other ip #1 is 10.0.1.100
other ip #2 is 10.0.2.100
other ip #3 is 220.1.220.1

to get from 10.0.1.2 to 10.0.1.100 it is on the same subnet so it sends direct
to get from 10.0.1.2 to 10.0.2.100 it is on a different subnet so it sends to 10.0.1.1 which may or not know how to get to 10.0.2.100.  Same with 220.1.220.1


0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

Author Comment

by:turbot_yu
ID: 17800685
At least router will have 2 ports, does each one has a ip of gateway?
0
 
LVL 43

Assisted Solution

by:Steve Knight
Steve Knight earned 500 total points
ID: 17801104
Not normally.  The gateway you mention is the default gateway and therefore where any unknown traffic is sent.  If multiple interfaces have a default gateway where do you send a packet?

Normally the router will either learn from other routers or have speciifc routes programmed into it so that it knows what is out each interface.

The one tiime this might not be the case is if the router has tow indepenedent routes through different internet connections in which case both would have a default gateway and some for of load balancing would be needed to decide which one was used.
0
 

Author Comment

by:turbot_yu
ID: 17803492
So multiple interfaces have a multi gateway, each interface has a gateway for itself, right?

How does the router make the traffice direction in router as double direction?
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17803676
If a packet comes in anywhere then the router checks tis routing tables to determine wher to point it.  Type ROUTE PRINT from a CMD.EXE console on a Windows box to get an idea of what it uses to end packets different ways.
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17855874
Thanks for the point, glad it helped
0
 

Author Comment

by:turbot_yu
ID: 17863627
Thanks a lot, Any simple and good book I can go further?
:))
0
 
LVL 43

Expert Comment

by:Steve Knight
ID: 17864448
Don't know sorry, learnt all this 10-15 years ago :-)   Bit of experience, set up some test network then get hold of a CCNA Cisco course perhaps?
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
FTP server backups 5 45
Cisco router external connection issues. 6 34
Ping general failure windows 7 5 79
Visio Crashes when Running from a Share 6 44
Even if you have implemented a Mobile Device Management solution company wide, it is a good idea to make sure you are taking into account all of the major risks to your electronic protected health information (ePHI).
In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

733 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question