🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.internals
Article #2380

IP routing on Unix systems

#2380
From: Christophe Wolfhugel
Date: Tue, 17 Nov 1992 18:21
25 lines
1733 bytes
I'd like to know how the lookups are done what an IP datagram is to be
sent out on a machine.

The datagram can be either for a station on one of the networks directly
attached to the system, or for a remote device, thus requiring the use
of a gateway.

(following example has a 3 bits subnetting, netmask 0xFFFFFFE0)
In the Unix routing table

Destination          Gateway              Flags    Refcnt Use        Interface
127.0.0.1            127.0.0.1            UH       0      0          lo0
default              192.70.106.62        UG       13     345643     en0
192.70.106.32        192.70.106.33        U        11     73981      en0
192.60.107.0         192.70.106.66        UG       0      0          en1
192.70.106.64        192.70.106.65        U        9      12345      en1

So once the datagram arrives to the IP routing function, do the routes
to the directly attached networks have some particular precedence
(ie parsed first) or are they having exactly the same importance as
other routes (ie those to a remote network, with the G flag).

-- 
Christophe Wolfhugel    |    Email: Christophe.Wolfhugel@grasp.insa-lyon.fr
  "Pour le bien-etre de tous, il est interdit de pisser dans le metro."
Technical Details
Message-ID: <1eb66jINNi4l@grasp1.univ-lyon1.fr>
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!caen!batcomputer!ghost.dsi.unimi.it!univ-lyon1.fr!not-for-mail

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!ogicse!uwm.edu!caen!batcomputer!ghost.dsi.unimi.it!univ-lyon1.fr!not-for-mail
From: Christophe.Wolfhugel@grasp.insa-lyon.fr (Christophe Wolfhugel)
Newsgroups: comp.unix.internals
Subject: IP routing on Unix systems
Summary: How are the lookups done ?
Message-ID: <1eb66jINNi4l@grasp1.univ-lyon1.fr>
Date: 17 Nov 92 18:21:39 GMT
Article-I.D.: grasp1.1eb66jINNi4l
Organization: INSA Informatique (Grasp), Lyon, France
Lines: 25
NNTP-Posting-Host: grasp1.univ-lyon1.fr