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

  1. # Configuration for a gateway that connects a LAN to the Internet via SLIP
  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. # Also note that the SLIP device driver bundled with INAR cannot dial out
  11. # on its own. It is designed for permanent or dialin lines, only. If you
  12. # want on-demand dialout you either need a rather "intelligent" modem or
  13. # a more sophisticated SLIP driver.
  14. #
  15. # Please fill in the following configuration section. If you don't know
  16. # what to enter, ask your Internet provider. Internet numbers have to
  17. # be given in decimal notation, separated by periods.
  18.  
  19. # The Internet address of the gateway. Just assign one of your official
  20. # Internet addresses to it.
  21. #
  22. set my_ip    X.X.X.X
  23.  
  24. # The network mask (netmask) that describes the range of Internet addresses
  25. # you've got. This netmask has to be identical in all devices connected to
  26. # the same LAN as the gateway.
  27. #
  28. set my_netmask    X.X.X.X
  29.  
  30. # Which serial port and baud rate do you want to use?
  31. #
  32. set slip_port        1        # COM1 (range: COM1 to COM4)
  33. set slip_baud_rate    38400        # 38400 bps (max: 115200 bps)
  34.  
  35. # Uncomment the next line if you want Van Jacobson TCP header compression.
  36. #
  37. #set slip_compression    c    # header compression enabled
  38.  
  39. # The LAN interface driver. Uncomment one of the choices below. You
  40. # need to pick a device driver that matches your LAN interface card,
  41. # and you have to also make sure that the card is configured in the
  42. # same way that you describe here.
  43. #
  44. #set LAN_driver    ne2000        # NE 2000 and clones
  45. #set LAN_irq    0x3        # IRQ vector
  46. #set LAN_io    0x300        # I/O address
  47.  
  48. #set LAN_driver    smc_wd        # WD/SMC 8003/8013 and clones
  49. #set LAN_irq    0x3        # IRQ vector
  50. #set LAN_io    0x280        # I/O address
  51. #set LAN_mem    0xd000        # memory address
  52.  
  53. #
  54. # END OF CONFIGURATION SECTION
  55. #
  56.  
  57. #---------------------------------------------------
  58. # Routes
  59. #---------------------------------------------------
  60.  
  61. route                # default route to the Internet provider
  62.     name internet
  63.     net default
  64.     interface slip1
  65.     metric 2
  66. endroute
  67.  
  68. #---------------------------------------------------
  69. # Globals
  70. #---------------------------------------------------
  71.  
  72. global
  73. #    syslog
  74. #        host X.X.X.X    # where to send syslog status infos to?
  75. #        priority info
  76. #        logsource
  77. #            system
  78. #            routing
  79. #        endlogsource
  80. #    endsyslog
  81.  
  82.     prefix @echo off
  83.     suffix cls\n\
  84.         echo InterNet Access Router
  85. endglobal
  86.  
  87. #---------------------------------------------------
  88. # Interfaces
  89. #---------------------------------------------------
  90.  
  91. interface
  92.     name LAN
  93.     type ethernet
  94.     address $(my_ip)
  95.     netmask $(my_netmask)
  96.     metric 1
  97.  
  98.     attributes
  99.         send_rip
  100.         listen_rip
  101.         send_default_route
  102.     endattributes
  103.  
  104.     driver
  105.         command $(LAN_driver) 0x%x $(LAN_irq) $(LAN_io) $(LAN_mem)
  106.     enddriver
  107. endinterface
  108.  
  109. interface
  110.     name slip1
  111.     type point2point
  112.     address $(my_ip)
  113.     metric 2
  114.  
  115.     driver
  116.         command $(slip_compression)slipper com$(slip_port) vec=%x \
  117.             baud=$(slip_baud_rate) ether
  118.     enddriver
  119. endinterface
  120.