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

  1. # Configuration for a gateway that connects a LAN to the Internet via ISDN
  2.  
  3. # The gateway needs to know to which LAN it is connected. If you are new
  4. # to the Internet, your Internet provider will give you a range of Internet
  5. # addresses that you can freely assign to the devices in your LAN. If you
  6. # already have official Internet addresses for your LAN, you can use these
  7. # if your Internet provider agrees. Note that you usually must not use the
  8. # first and the last address of an Internet network for any of your devices.
  9. #
  10. # Please fill in the following configuration section. If you don't know
  11. # what to enter, ask your Internet provider. Internet numbers have to
  12. # be given in decimal notation, separated by periods.
  13.  
  14. # The Internet address of the gateway. Just assign one of your official
  15. # Internet addresses to it.
  16. #
  17. set my_ip    X.X.X.X
  18.  
  19. # The network mask (netmask) that describes the range of Internet addresses
  20. # you've got. This netmask has to be identical in all devices connected to
  21. # the same LAN as the gateway.
  22. #
  23. set my_netmask    X.X.X.X
  24.  
  25. # How to connect to your Internet provider? You need to know the ISDN
  26. # number (including area code) that the gateway is supposed to call in
  27. # order to establish a connection to the Internet provider. If the gateway
  28. # is in the same area as the Internet provider you can omit the area code
  29. # when dialing out. In this case just separate the area code from the rest
  30. # of the ISDN number by a period. If you have an SPV (Semi-Permanente
  31. # Verbindung) to your Internet provider you need to append the letter 's'
  32. # to the ISDN number. Otherwise you're in for a surprise when you get the
  33. # next ISDN bill ...
  34. #
  35. set provider_isdn_number    XXXXXXX
  36.  
  37. # Which ISDN protocol do you want to use? Uncomment one of the choices
  38. # below. For more exotic protocols please look at `ISPA18.TXT'. Note
  39. # that you and the Internet provider have to agree on the same protocol.
  40. #
  41. #set isdn_protocol    -h 0    # IP-data, HDLC, no header
  42. #set isdn_protocol    -h 1    # IP-data, HDLC, UI header
  43. #set isdn_protocol    -h 2    # IP-data, HDLC, Cisco style header
  44.  
  45. # What timeout (in seconds) to use for idle connections? Chose zero
  46. # for permanent links, for instance SPVs.
  47. #
  48. set idle_timeout    60
  49.  
  50. # If you have EuroISDN (E-DSS1) please enter the index into the table
  51. # of ISDN numbers that was defined during the CAPI installation. The
  52. # ISDN number to which the index points is assigned to the interface
  53. # that is used to call the Internet provider. Note that the first number
  54. # in the table has the index zero.
  55. #
  56. # If you have the national German ISDN standard (1tr6) please enter the
  57. # EAZ (Endgeraeteauswahlziffer) you want to assign to this interface.
  58. #
  59. # Make sure to pick an index or EAZ that is not used for any other device
  60. # connected to the same ISDN line.
  61. #
  62. set my_index    3
  63.  
  64. # The LAN interface driver. Uncomment one of the choices below. You
  65. # need to pick a device driver that matches your LAN interface card,
  66. # and you have to also make sure that the card is configured in the
  67. # same way that you describe here.
  68. #
  69. #set LAN_driver    ne2000        # NE 2000 and clones
  70. #set LAN_irq    0x3        # IRQ vector
  71. #set LAN_io    0x300        # I/O address
  72.  
  73. #set LAN_driver    smc_wd        # WD/SMC 8003/8013 and clones
  74. #set LAN_irq    0x3        # IRQ vector
  75. #set LAN_io    0x280        # I/O address
  76. #set LAN_mem    0xd000        # memory address
  77.  
  78. #
  79. # END OF CONFIGURATION SECTION
  80. #
  81.  
  82. #---------------------------------------------------
  83. # Routes
  84. #---------------------------------------------------
  85.  
  86. route                # default route to the Internet provider
  87.     name internet
  88.     net default
  89.     interface isdn1
  90.     link inet-provider
  91.     metric 2
  92. endroute
  93.  
  94. #---------------------------------------------------
  95. # Links
  96. #---------------------------------------------------
  97.  
  98. link
  99.     name inet-provider
  100.     address $(provider_isdn_number)
  101.     options -d 1 -t $(idle_timeout) $(isdn_protocol)
  102. endlink
  103.  
  104. #---------------------------------------------------
  105. # Globals
  106. #---------------------------------------------------
  107.  
  108. global
  109. #    syslog
  110. #        host X.X.X.X    # where to send syslog status infos to?
  111. #        priority info
  112. #        logsource
  113. #            system
  114. #            routing
  115. #        endlogsource
  116. #    endsyslog
  117.  
  118.     prefix @echo off
  119.     suffix cls\n\
  120.         echo InterNet Access Router
  121. endglobal
  122.  
  123. #---------------------------------------------------
  124. # Interfaces
  125. #---------------------------------------------------
  126.  
  127. interface
  128.     name LAN
  129.     type ethernet
  130.     address $(my_ip)
  131.     netmask $(my_netmask)
  132.     metric 1
  133.  
  134.     attributes
  135.         send_rip
  136.         listen_rip
  137.         send_default_route
  138.     endattributes
  139.  
  140.     driver
  141.         command $(LAN_driver) 0x%x $(LAN_irq) $(LAN_io) $(LAN_mem)
  142.     enddriver
  143. endinterface
  144.  
  145. interface
  146.     name isdn1
  147.     type isdn
  148.     address $(my_ip)
  149.     metric 2
  150.  
  151.     driver
  152.         controller 0
  153.         index $(my_index)
  154.         syslog on
  155.         options -w
  156.     enddriver
  157. endinterface
  158.