[OpenIndiana-discuss] OpenIndiana server networking problem.

Gary Mills gary_mills at fastmail.fm
Tue Jul 2 12:41:56 UTC 2013


On Tue, Jul 02, 2013 at 07:05:48AM -0400, James Carlson wrote:
> On 07/01/13 20:21, Christopher Chan wrote:
> > Wait, what do you mean by "the gateway ip is the same as your nic address"?
> 
> He's mistakenly reading the interface route as though it were a
> "gateway" entry.

Here's an example from a server on my home network:

    Routing Table: IPv4
      Destination           Gateway           Flags  Ref     Use     Interface 
    -------------------- -------------------- ----- ----- ---------- --------- 
    default              192.168.0.1          UG        2        448 e1000g0   
    127.0.0.1            127.0.0.1            UH        2        304 lo0       
    192.168.0.0          192.168.0.12         U         3       1810 e1000g0

This table is used by the kernel for sending packets to a destination,
according to the destination IP address.  The first column in the
table lists destination networks.  The kernel attempts to match the
destination IP address against those networks.  If it succeeds, it
sends the packet to the corresponding gateway address.  If it fails,
it uses the default entry.  In this example, 192.168.0.12 is the IP
address of the host's ethernet interface, and 192.168.0.0 is a
directly connected network with a range from 192.168.0.0 to
192.168.0.255.  Once the packet reaches the local network, one of the
hosts there will recognize it as its own.  For the default network,
the gateway host at 192.168.0.1 will reroute it to the final
destination.

-- 
-Gary Mills-		-refurb-		-Winnipeg, Manitoba, Canada-



More information about the OpenIndiana-discuss mailing list