home *** CD-ROM | disk | FTP | other *** search
- # Configuration for a gateway that connects a LAN to the Internet via ISDN
-
- # 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.
- #
- # 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
-
- # How to connect to your Internet provider? You need to know the ISDN
- # number (including area code) that the gateway is supposed to call in
- # order to establish a connection to the Internet provider. If the gateway
- # is in the same area as the Internet provider you can omit the area code
- # when dialing out. In this case just separate the area code from the rest
- # of the ISDN number by a period. If you have an SPV (Semi-Permanente
- # Verbindung) to your Internet provider you need to append the letter 's'
- # to the ISDN number. Otherwise you're in for a surprise when you get the
- # next ISDN bill ...
- #
- set provider_isdn_number XXXXXXX
-
- # Which ISDN protocol do you want to use? Uncomment one of the choices
- # below. For more exotic protocols please look at `ISPA18.TXT'. Note
- # that you and the Internet provider have to agree on the same protocol.
- #
- #set isdn_protocol -h 0 # IP-data, HDLC, no header
- #set isdn_protocol -h 1 # IP-data, HDLC, UI header
- #set isdn_protocol -h 2 # IP-data, HDLC, Cisco style header
-
- # What timeout (in seconds) to use for idle connections? Chose zero
- # for permanent links, for instance SPVs.
- #
- set idle_timeout 60
-
- # If you have EuroISDN (E-DSS1) please enter the index into the table
- # of ISDN numbers that was defined during the CAPI installation. The
- # ISDN number to which the index points is assigned to the interface
- # that is used to call the Internet provider. Note that the first number
- # in the table has the index zero.
- #
- # If you have the national German ISDN standard (1tr6) please enter the
- # EAZ (Endgeraeteauswahlziffer) you want to assign to this interface.
- #
- # Make sure to pick an index or EAZ that is not used for any other device
- # connected to the same ISDN line.
- #
- set my_index 3
-
- # 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 isdn1
- link inet-provider
- metric 2
- endroute
-
- #---------------------------------------------------
- # Links
- #---------------------------------------------------
-
- link
- name inet-provider
- address $(provider_isdn_number)
- options -d 1 -t $(idle_timeout) $(isdn_protocol)
- endlink
-
- #---------------------------------------------------
- # 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 isdn1
- type isdn
- address $(my_ip)
- metric 2
-
- driver
- controller 0
- index $(my_index)
- syslog on
- options -w
- enddriver
- endinterface
-