@echo off

echo.>>m:\xenia\ipc\ppp.flg

if %1 == 1 goto PPPLINE1
if %1 == 2 goto PPPLINE2
if %1 == 3 goto PPPLINE3
if %1 == 4 goto PPPLINE4
if %1 == 5 goto PPPLINE5
if %1 == 6 goto PPPLINE6

:PPPLINE1
REM PPP ON LINE 1 COM2   (RECHNER 2) Teilnetz 192.168.3.x
 ppp.exe com2 %6 mru 1500 rtscts modem 192.168.3.1:192.168.3.11 netmask 255.255.255.0 priority 1 restart silent exit name gate1
GOTO ENDE

:PPPLINE2
REM PPP ON LINE 2 COM3   (RECHNER 2) Teilnetz 192.168.3.x
 ppp.exe com3 %6 mru 1500 rtscts modem 192.168.3.2:192.168.3.12 netmask 255.255.255.0 priority 1 restart silent exit name gate2
GOTO ENDE

:PPPLINE3
REM PPP ON LINE 3 COM5   (RECHNER 1) Teilnetz 2.x
 ppp.exe com5 %6 mru 1500 rtscts modem 192.168.2.1:192.168.2.11 netmask 255.255.255.0 priority 1 restart silent exit name gate3
GOTO ENDE

:PPPLINE4
REM PPP ON LINE 4 COM6   (RECHNER 1) Teilnetz 2.x
 ppp.exe com6 %6 mru 1500 rtscts modem 192.168.2.2:192.168.2.12 netmask 255.255.255.0 priority 1 restart silent exit name gate4
GOTO ENDE

:PPPLINE5
REM PPP ON LINE 5 COM5   (RECHNER 2) Teilnetz 3.x
  ppp.exe com5 %6 mru 1500 rtscts modem 192.168.3.3:192.168.3.13 netmask 255.255.255.0 priority 1 restart silent exit name gate5
GOTO ENDE

:PPPLINE6
REM PPP ON LINE 6 COM6   (RECHNER 2) Teilnetz 3.x
  ppp.exe com6 %6 mru 1500 rtscts modem 192.168.3.4:192.168.3.14 netmask 255.255.255.0 priority 1 restart silent exit name gate6
GOTO ENDE

:ENDE
