[Ilugc] [OT] doubt on Networking on linux

  • From: binand@xxxxxxxxx (Binand Sethumadhavan)
  • Date: Mon Apr 25 13:29:20 2005

On 25/04/05, peevee <peevee.chaitanya@xxxxxxxxx> wrote:

 sorry for that wrong question on route and gateway ,,
 i mean to ask, is route table used to specify a predefined  incoming
 packets, to be sent to a destination address??
 if its case, how is gateway differnt from a  route table??

Routing table in default configuration is consulted only on the basis
of the destination address. The source of the packet does not matter.
With ip(8) you could configure policy routing by which you can make
routing decisions on a number of other parameters - source IP, ports
being used etc.

I still don't understand what you mean by asking the difference
between a gateway and a routing table. A gateway (the term nowadays is
a router) is usually a machine with a routing table - either
statically configured or dynamically learned, and can forward packets
between interfaces.

Binand

Other related posts: