--- 17 Jun 1996 Jochen Wiedmann jochen.wiedmann@neckar-alb.de ISS Internet Service Stuttgart http://www.neckar-alb.de/iss/jochen #!/bin/sh # # Skript zur Verwendung zweier SPV's an einem NTBA mit einer ICN-Karte # und isdn4linux # PATH=/usr/local/sbin:/sbin:$PATH # # Karte durch Laden der Module initialisieren, natuerlich wird # 1tr6 verwendet. # insmod /lib/modules/`uname -r`/misc/isdn.o insmod /lib/modules/`uname -r`/misc/icn.o icnctrl load /usr/local/isdn4linux-0.7.3/lib/loadpg.bin /usr/local/isdn4linux-0.7.3/lib/pc_1t_ca.bin # # Leitung 1 ist die Defaultleitung # isdnctrl addif isdn0 # Interface "isdn0" erzeugen isdnctrl addphone isdn0 in 0712797122* # Ankommende Telefonnummer isdnctrl addphone isdn0 out S07127971221 # Zu waehlende Telefonnummer; # 'S' fuer SPV isdnctrl eaz isdn0 2 # Lokale EAZ isdnctrl huptimeout isdn0 180 # Timeout isdnctrl secure isdn0 on # Nur obige Telefonnummer # akzeptieren isdnctrl l2_prot isdn0 hdlc # Protokolltyp hdlc/transparent isdnctrl l3_prot isdn0 trans # # Jetzt noch das Routing ... # ifconfig isdn0 194.23.154.201 pointopoint 194.77.118.36 route add -net 0.0.0.0 netmask 0.0.0.0 isdn0 # # Leitung 2 betreut die Netze 194.221.103.0 und 194.221.104.0 # isdnctrl addif isdn1 isdnctrl addphone isdn1 in 0747197373 # Ankommende Telefonnummer isdnctrl addphone isdn1 out S0747197373 # Zu waehlende Telefonnummer; # 'S' fuer SPV isdnctrl eaz isdn1 2 # Lokale EAZ isdnctrl huptimeout isdn1 180 # Timeout isdnctrl secure isdn1 on # Nur obige Telefonnummer akzeptieren isdnctrl l2_prot isdn1 hdlc # Protokolltyp hdlc/transparent isdnctrl l3_prot isdn1 trans # # Routen setzen # ifconfig isdn1 194.23.154.201 pointopoint 194.221.103.1 route add -net 194.221.103.0 netmask 255.255.255.0 isdn1 route add -net 194.221.104.0 netmask 255.255.255.0 isdn1