home *** CD-ROM | disk | FTP | other *** search
- # Configuration for a gateway that connects a LAN to the Internet via SLIP
-
- # The gateway needs to know to which LAN it is connected. If you are new
- # to the Internet, your Internet provider will give you a range of Internet
- # addresses that you can freely assign to the devices in your LAN. If you
- # already have official Internet addresses for your LAN, you can use these
- # if your Internet provider agrees. Note that you usually must not use the
- # first and the last address of an Internet network for any of your devices.
- #
- # Also note that the SLIP device driver bundled with INAR cannot dial out
- # on its own. It is designed for permanent or dialin lines, only. If you
- # want on-demand dialout you either need a rather "intelligent" modem or
- # a more sophisticated SLIP driver.
- #
- # Please fill in the following configuration section. If you don't know
- # what to enter, ask your Internet provider. Internet numbers have to
- # be given in decimal notation, separated by periods.
-
- # The Internet address of the gateway. Just assign one of your official
- # Internet addresses to it.
- #
- set my_ip X.X.X.X
-
- # The network mask (netmask) that describes the range of Internet addresses
- # you've got. This netmask has to be identical in all devices connected to
- # the same LAN as the gateway.
- #
- set my_netmask X.X.X.X
-
- # Which serial port and baud rate do you want to use?
- #
- set slip_port 1 # COM1 (range: COM1 to COM4)
- set slip_baud_rate 38400 # 38400 bps (max: 115200 bps)
-
- # Uncomment the next line if you want Van Jacobson TCP header compression.
- #
- #set slip_compression c # header compression enabled
-
- # The LAN interface driver. Uncomment one of the choices below. You
- # need to pick a device driver that matches your LAN interface card,
- # and you have to also make sure that the card is configured in the
- # same way that you describe here.
- #
- #set LAN_driver ne2000 # NE 2000 and clones
- #set LAN_irq 0x3 # IRQ vector
- #set LAN_io 0x300 # I/O address
-
- #set LAN_driver smc_wd # WD/SMC 8003/8013 and clones
- #set LAN_irq 0x3 # IRQ vector
- #set LAN_io 0x280 # I/O address
- #set LAN_mem 0xd000 # memory address
-
- #
- # END OF CONFIGURATION SECTION
- #
-
- #---------------------------------------------------
- # Routes
- #---------------------------------------------------
-
- route # default route to the Internet provider
- name internet
- net default
- interface slip1
- metric 2
- endroute
-
- #---------------------------------------------------
- # Globals
- #---------------------------------------------------
-
- global
- # syslog
- # host X.X.X.X # where to send syslog status infos to?
- # priority info
- # logsource
- # system
- # routing
- # endlogsource
- # endsyslog
-
- prefix @echo off
- suffix cls\n\
- echo InterNet Access Router
- endglobal
-
- #---------------------------------------------------
- # Interfaces
- #---------------------------------------------------
-
- interface
- name LAN
- type ethernet
- address $(my_ip)
- netmask $(my_netmask)
- metric 1
-
- attributes
- send_rip
- listen_rip
- send_default_route
- endattributes
-
- driver
- command $(LAN_driver) 0x%x $(LAN_irq) $(LAN_io) $(LAN_mem)
- enddriver
- endinterface
-
- interface
- name slip1
- type point2point
- address $(my_ip)
- metric 2
-
- driver
- command $(slip_compression)slipper com$(slip_port) vec=%x \
- baud=$(slip_baud_rate) ether
- enddriver
- endinterface
-