Yanal wrote:
> Routers are used to connect two (or more) unsimilar networks.
Scratch "unsimilar". They're also used to connect similar networks.
> thats why you would use a router to connect your home newtort(for
> example) to the world since the home network (assuming MS Neighborhood
> uses netbuei)
Somebody please translate that into English...
> but, what if the LAN use tcp/ip and then one of the computers wanted to
> view something on the internet.
> how does the router know what is local traffic and what is intended to
> go to the internet?
> is it because local networks use differnt IP number set than that of
> whatever is on the internet? or is it the network mask?
Combination of IP address and netmask. The routing information resides in
the routing table, which is manipulated with the 'route' command. When a
packet arrives to the network stack of the computer, it checks whether the
destination address belongs to any of the networks listed in the routing
table. If yes, then the packet is sent out thru the interface listed in the
routing table. If not, then the packet is sent to the default gateway.
The topic is bit too wide to be handled in a single usenet post. I'd
recommend obtaining a book on TCP/IP networking. IIRC "Linux Network
Administrator's Guide" by Dawson, Terry/Kirch, Olaf, published by O'Reilly,
ISBN 1565924002 has a good explanation on the topic.
HTH,
-Timo
--
Timo Voipio | Helsinki, Finland | ICBM at: 60 11.800 N 024 52.760 E
GeekCode ver 3: GU>CC d s-: a--- C++ UL(+)$>+++$ P+>+++ L++(+) E- W++ N++
o? K? w O M- V- PS PE Y+ PGP+ t 5++ X R tv- b++(++++) DI+ D G e- h! r !y
|