home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / unix / internal / 1958 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.7 KB

  1. Path: sparky!uunet!ogicse!uwm.edu!caen!batcomputer!ghost.dsi.unimi.it!univ-lyon1.fr!not-for-mail
  2. From: Christophe.Wolfhugel@grasp.insa-lyon.fr (Christophe Wolfhugel)
  3. Newsgroups: comp.unix.internals
  4. Subject: IP routing on Unix systems
  5. Summary: How are the lookups done ?
  6. Message-ID: <1eb66jINNi4l@grasp1.univ-lyon1.fr>
  7. Date: 17 Nov 92 18:21:39 GMT
  8. Article-I.D.: grasp1.1eb66jINNi4l
  9. Organization: INSA Informatique (Grasp), Lyon, France
  10. Lines: 25
  11. NNTP-Posting-Host: grasp1.univ-lyon1.fr
  12.  
  13. I'd like to know how the lookups are done what an IP datagram is to be
  14. sent out on a machine.
  15.  
  16. The datagram can be either for a station on one of the networks directly
  17. attached to the system, or for a remote device, thus requiring the use
  18. of a gateway.
  19.  
  20. (following example has a 3 bits subnetting, netmask 0xFFFFFFE0)
  21. In the Unix routing table
  22.  
  23. Destination          Gateway              Flags    Refcnt Use        Interface
  24. 127.0.0.1            127.0.0.1            UH       0      0          lo0
  25. default              192.70.106.62        UG       13     345643     en0
  26. 192.70.106.32        192.70.106.33        U        11     73981      en0
  27. 192.60.107.0         192.70.106.66        UG       0      0          en1
  28. 192.70.106.64        192.70.106.65        U        9      12345      en1
  29.  
  30. So once the datagram arrives to the IP routing function, do the routes
  31. to the directly attached networks have some particular precedence
  32. (ie parsed first) or are they having exactly the same importance as
  33. other routes (ie those to a remote network, with the G flag).
  34.  
  35. -- 
  36. Christophe Wolfhugel    |    Email: Christophe.Wolfhugel@grasp.insa-lyon.fr
  37.   "Pour le bien-etre de tous, il est interdit de pisser dans le metro."
  38.