home *** CD-ROM | disk | FTP | other *** search
/ PC Press: Internet / PC_PRESS.ISO / software / dos / misc / inar-100.exe / SAMPLES / INETISDN.2 < prev    next >
Encoding:
Text File  |  1995-05-21  |  3.1 KB  |  128 lines

  1. # Configuration for a gateway that connects a LAN to the Internet via ISDN
  2. # and additionally has an interface to a second LAN that is not officially
  3. # connected to the Internet
  4.  
  5. # The gateway needs to know to which LAN it is connected. If you are new
  6. # to the Internet, your Internet provider will give you a range of Internet
  7. # addresses that you can freely assign to the devices in your LAN. If you
  8. # already have official Internet addresses for your LAN, you can use these
  9. # if your Internet provider agrees. Note that you usually must not use the
  10. # first and the last address of an Internet network for any of your devices.
  11. #
  12. # The gateway also has an interface to a second LAN that is not officially
  13. # connected to the Internet. This is a common case within companies that
  14. # don't need all of their devices connected directly to the Internet. So
  15. # while there is no direct connection possible between the unofficial
  16. # LAN and the Internet, the official LAN can communicate with both the
  17. # unofficial LAN and the Internet. Note that this is only possible if
  18. # the unofficial LAN uses Internet addresses that are reserved for this
  19. # purpose. Please refer to RFC 1597 for more informations.
  20. #
  21. # All Internet and ISDN numbers in this sample file are purely fictional,
  22. # but logically correct.
  23.  
  24. #---------------------------------------------------
  25. # Routes
  26. #---------------------------------------------------
  27.  
  28. route                # default route to the Internet provider
  29.     name internet
  30.     net default
  31.     interface isdn1
  32.     link inet-provider
  33.     metric 2
  34. endroute
  35.  
  36. #---------------------------------------------------
  37. # Source routes
  38. #---------------------------------------------------
  39.  
  40. source                # deny data traffic from the unofficial
  41.     net 10.0.0.0        # LAN to the Internet
  42.     netmask 255.0.0.0
  43.     attach internet
  44.     route deny
  45. endsource
  46.  
  47. #---------------------------------------------------
  48. # Links
  49. #---------------------------------------------------
  50.  
  51. link
  52.     name inet-provider
  53.     address 030.12345678s
  54.     options -d 1 -t 0 -h 0
  55. endlink
  56.  
  57. #---------------------------------------------------
  58. # Globals
  59. #---------------------------------------------------
  60.  
  61. global
  62.     syslog
  63.         host 193.200.100.10
  64.         priority info
  65.         logsource
  66.             system
  67.             routing
  68.         endlogsource
  69.     endsyslog
  70.  
  71.     prefix @echo off
  72.     suffix cls\n\
  73.         echo InterNet Access Router
  74. endglobal
  75.  
  76. #---------------------------------------------------
  77. # Interfaces
  78. #---------------------------------------------------
  79.  
  80. interface
  81.     name LAN-official
  82.     type ethernet
  83.     address 193.200.100.1
  84.     netmask 255.255.255.0
  85.     metric 1
  86.  
  87.     attributes
  88.         send_rip
  89.         listen_rip
  90.         send_default_route
  91.     endattributes
  92.  
  93.     driver
  94.         command ne2000 0x%x 0x3 0x300
  95.     enddriver
  96. endinterface
  97.  
  98. interface
  99.     name LAN-unofficial
  100.     type ethernet
  101.     address 10.73.0.5
  102.     netmask 255.255.0.0
  103.     metric 1
  104.  
  105.     attributes
  106.         send_rip
  107.         listen_rip
  108.     endattributes
  109.  
  110.     driver
  111.         command ne2000 0x%x 0x5 0x320
  112.     enddriver
  113. endinterface
  114.  
  115. interface
  116.     name isdn1
  117.     type isdn
  118.     address 193.200.100.1
  119.     metric 2
  120.  
  121.     driver
  122.         controller 0
  123.         index 3
  124.         syslog on
  125.         options -w
  126.     enddriver
  127. endinterface
  128.