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

  1. # Configuration for a gateway that connects a LAN to the Internet via ISDN
  2. # and additionally has ISDN connections to some other sites
  3.  
  4. # The gateway needs to know to which LAN it is connected. If you are new
  5. # to the Internet, your Internet provider will give you a range of Internet
  6. # addresses that you can freely assign to the devices in your LAN. If you
  7. # already have official Internet addresses for your LAN, you can use these
  8. # if your Internet provider agrees. Note that you usually must not use the
  9. # first and the last address of an Internet network for any of your devices.
  10. #
  11. # All Internet and ISDN numbers in this sample file are purely fictional,
  12. # but logically correct.
  13.  
  14. #---------------------------------------------------
  15. # Routes
  16. #---------------------------------------------------
  17.  
  18. route                # default route to the Internet provider
  19.     name internet
  20.     net default
  21.     interface isdn1
  22.     link inet-provider
  23.     metric 2
  24. endroute
  25.  
  26. route                # some private dialup site
  27.     name siteA
  28.     net 193.200.100.64
  29.     netmask 255.255.255.240
  30.     interface isdn2
  31.     link siteA
  32.     metric 2
  33.  
  34.     attributes
  35.         hidden_route
  36.     endattributes
  37. endroute
  38.  
  39. route                # the company we work at
  40.     name siteB-net1
  41.     net 193.200.150.0
  42.     netmask 255.255.255.0
  43.     interface isdn2
  44.     link siteB
  45.     metric 2
  46. endroute
  47.  
  48. route                # the company we work at
  49.     name siteB-net2
  50.     net 193.200.151.0
  51.     netmask 255.255.255.0
  52.     interface isdn2
  53.     link siteB
  54.     metric 2
  55. endroute
  56.  
  57. route                # the company we work at
  58.     name siteB-net3
  59.     net 193.200.152.0
  60.     netmask 255.255.255.0
  61.     interface isdn2
  62.     link siteB
  63.     metric 2
  64. endroute
  65.  
  66. #---------------------------------------------------
  67. # Source routes
  68. #---------------------------------------------------
  69.  
  70. source                # don't route anything to Internet
  71.     net default
  72.     attach internet
  73.     route deny
  74. endsource
  75.  
  76. source                # our own LAN and siteA are routed to Internet
  77.     refer LAN,siteA
  78.     attach internet
  79.     route permit
  80. endsource
  81.  
  82. #---------------------------------------------------
  83. # Links
  84. #---------------------------------------------------
  85.  
  86. link
  87.     name inet-provider
  88.     address 030.12345678s
  89.     options -d 1 -t 0 -h 0
  90. endlink
  91.  
  92. link
  93.     name siteA
  94.     address 030.87654321
  95.     options -d 0 -t 60 -h 1        # dialin, only
  96. endlink
  97.  
  98. link
  99.     name siteB
  100.     address 030.43211234
  101.     options -d 1 -t 300 -h 0
  102. endlink
  103.  
  104. #---------------------------------------------------
  105. # Globals
  106. #---------------------------------------------------
  107.  
  108. global
  109.     syslog
  110.         host 193.200.100.90
  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 193.200.100.89
  131.     netmask 255.255.255.248
  132.     metric 1
  133.  
  134.     attributes
  135.         send_rip
  136.         listen_rip
  137.         send_default_route
  138.     endattributes
  139.  
  140.     driver
  141.         command ne2000 0x%x 0x3 0x300
  142.     enddriver
  143. endinterface
  144.  
  145. interface
  146.     name isdn1
  147.     type isdn
  148.     address 193.200.100.89
  149.     metric 2
  150.  
  151.     driver
  152.         controller 0
  153.         index 3
  154.         syslog on
  155.         options -w
  156.     enddriver
  157. endinterface
  158.  
  159. interface
  160.     name isdn2
  161.     type isdn
  162.     address 193.200.100.89
  163.     metric 2
  164.  
  165.     driver
  166.         controller 0
  167.         index 4
  168.         syslog on
  169.     enddriver
  170. endinterface
  171.