comp.os.linux.networking
[Top] [All Lists]

Re: Almost got it (routing)

Subject: Re: Almost got it routing
From: Unruh
Date: 11 May 2005 04:44:42 GMT
Newsgroups: comp.os.linux.networking
Allen McIntosh <nospam@xxxxxxxxxxxxxxxx> writes:

>> 192.168.0.0     192.168.1.1     255.255.255.0   UG    0      0        0 
>> eth1
>This entry says "send traffic for 192.168.0.0/24 to 192.168.1.1 (via eth1).
>> 192.168.0.0     0.0.0.0         255.255.255.0   U     0      0        0 
>> eth0
>This entry says "send traffic for 192.168.0.0/24 via eth0 (it's a direct 
>connection).

>Which one is correct?

It depends on what your connections are. If all of the 192.168.0.x are on
the same ethernet wire as your computer, then the second. If not and if
192.168.1.1 knows how to get the packets to the right ethernet loop, then
the first is.

In the second case if say you want to send something to 192.168.0.23, your
system will put a broadcast message ( to 192.168.0.255) onto the ethernet
wire saying "who is 192.168.0.23". The computer whose address it is will
send back and say "192.168.0.23 is a0:13:22:35:f2 " (ie the mac address of
the ethernet card on that net whose IP is 192.168.0.23). You computer will
then post a direct ethernet packet to the MAC address a0:13:22:35:f2.

In the first case, your computer will do the same for the address
192.168.1.1 but the packet which is sent will contain the message "pls
forward this to 192.168.0.23"


<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy