home *** CD-ROM | disk | FTP | other *** search
- # Configuration for a gateway that connects a LAN to the Internet via ISDN
- # and additionally has ISDN connections to some other sites
-
- # 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.
- #
- # All Internet and ISDN numbers in this sample file are purely fictional,
- # but logically correct.
-
- #---------------------------------------------------
- # Routes
- #---------------------------------------------------
-
- route # default route to the Internet provider
- name internet
- net default
- interface isdn1
- link inet-provider
- metric 2
- endroute
-
- route # some private dialup site
- name siteA
- net 193.200.100.64
- netmask 255.255.255.240
- interface isdn2
- link siteA
- metric 2
-
- attributes
- hidden_route
- endattributes
- endroute
-
- route # the company we work at
- name siteB-net1
- net 193.200.150.0
- netmask 255.255.255.0
- interface isdn2
- link siteB
- metric 2
- endroute
-
- route # the company we work at
- name siteB-net2
- net 193.200.151.0
- netmask 255.255.255.0
- interface isdn2
- link siteB
- metric 2
- endroute
-
- route # the company we work at
- name siteB-net3
- net 193.200.152.0
- netmask 255.255.255.0
- interface isdn2
- link siteB
- metric 2
- endroute
-
- #---------------------------------------------------
- # Source routes
- #---------------------------------------------------
-
- source # don't route anything to Internet
- net default
- attach internet
- route deny
- endsource
-
- source # our own LAN and siteA are routed to Internet
- refer LAN,siteA
- attach internet
- route permit
- endsource
-
- #---------------------------------------------------
- # Links
- #---------------------------------------------------
-
- link
- name inet-provider
- address 030.12345678s
- options -d 1 -t 0 -h 0
- endlink
-
- link
- name siteA
- address 030.87654321
- options -d 0 -t 60 -h 1 # dialin, only
- endlink
-
- link
- name siteB
- address 030.43211234
- options -d 1 -t 300 -h 0
- endlink
-
- #---------------------------------------------------
- # Globals
- #---------------------------------------------------
-
- global
- syslog
- host 193.200.100.90
- 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 193.200.100.89
- netmask 255.255.255.248
- metric 1
-
- attributes
- send_rip
- listen_rip
- send_default_route
- endattributes
-
- driver
- command ne2000 0x%x 0x3 0x300
- enddriver
- endinterface
-
- interface
- name isdn1
- type isdn
- address 193.200.100.89
- metric 2
-
- driver
- controller 0
- index 3
- syslog on
- options -w
- enddriver
- endinterface
-
- interface
- name isdn2
- type isdn
- address 193.200.100.89
- metric 2
-
- driver
- controller 0
- index 4
- syslog on
- enddriver
- endinterface
-