ThurNet - Support - Einwahl in Jena unter Linux |
Das gilt nur fuer dynamisch vergebene IPs !
das ist /etc/ppp/ip-up, die muss vorhanden sein, die Rechte 755
und
root:root gehoeren. Dann machst noch im Verzeichnis ein
ln -sf ip-up ip-down
Als $IFCONFIG_* musst Deine definierte einsetzen !
-------------------------
#!/bin/sh
# (c) '97, S.u.S.E. GmbH, Fuerth, Germany
# Klaus Franken
# Carsten Hoeger
# 04.12.97
#
BASENAME=`basename $0`
INTERFACE=$1
DEVICE=$2
SPEED=$3
LOCALIP=$4
REMOTEIP=$5
. /etc/rc.config
# Substitute $IFCONFIG_2 with your configured interface
# in /etc/rc.config:
WHICHIF=$IFCONFIG_2
# A route has to exist in /etc/route.conf
DEST=`grep ${INTERFACE} /etc/route.conf | awk '{ print $1}'`
case "$BASENAME" in
ip-up)
/sbin/route add default
gw $REMOTEIP dev $INTERFACE
#/sbin/init.d/route start
$INTERFACE
;;
ip-down)
# delete interface-related
routes
/sbin/route del $REMOTEIP
/sbin/route del default
# also shut down interface
/sbin/ifconfig $INTERFACE
down
/sbin/ifconfig $INTERFACE
$WHICHIF
# add configured dummy-route
and gw
/sbin/route add -host $DEST
$INTERFACE
/sbin/route add default
gw $DEST dev $INTERFACE
;;
*)
;;
esac
-----------------------------------------------------------------------
jetzt /etc/ppp/ioptions
Rechte: 744 root:root
--------------------------
# /etc/ppp/ioptions
# for isdn4linux/syncPPP global options for ipppd
#
#
# Klaus Franken, kfr@suse.de
# Version: 15.05.97 (5.0)
#
#
lock
# Set 'debug' to create a lot of information in /var/log/messages
debug
# Set '+pwlog' for logging passwords in /var/log/messages
+pwlog
------------------------------------------------------------------------
jetzt options.ippp0
Rechte: 744 root:root
------------------------
# This file is copy by YaST from /etc/ppp/ioptions.YaST
# to options.<device>
# The device(s)
# for more than one device try:
# /dev/ippp0 /dev/ippp1 ...
/dev/ippp0
# The IP addresses: <local>:<remote>
# just "0.0.0.0:" or nothing for dynamic IP
#0.0.0.0:
# my user name
user <dein loginname>
# my system name (only for CHAP!)
name <dein system ohne domain>
# accept IP addresses from peer
# use with dynamic IP
ipcp-accept-local
ipcp-accept-remote
noipdefault
# try to get IP address from interface
# option specific to ipppd (as opposed to pppd)
# use only with static IP
#useifip
# disable all header-compression
-vj
-vjccomp
-ac
-pc
-bsdcomp
# sometimes you need this:
#noccp
# max receive unit
mru 1524
# max transmit unit
mtu 1500
# If this machine is a server, force authentication by uncommenting
one
# of the following. However, if this machine is a client, doing this
will
# prevent a succesful connection! (message "peer refused to authenticate").
# So, only uncomment on a server.
# "+pap" / "+chap" NUR AKTIVIEREN, WENN DIES EIN SERVER IST!!!
#+pap
#+chap
# if you have problems with handshaking (no response for first
# lcp-package) try to decrease the retry-cycle. Default is 3 sec,
# try for example 2 sec:
lcp-restart 2
--------------------------------------------------------------------------
jetzt die /etc/ppp/chap-secrets
Rechte: 600 root:root
---------------------------------
# Secrets for authentication using PAP
# client
server
secret IP addresses
"Dein loginname"
*
"Dein PW"
---------------------------------------------------------------------------
die oberen scripte sind fuer syncppp
jetzt meine /etc/resolv.conf
Rechte: 644 root:root
----------------------------
#
# /etc/resolv.conf
#
#
search jena.thur.de erfurt.thur.de thur.de
nameserver 193.174.15.34
---------------------------------------------------------------------------
/etc/hosts
Rechte: 644 root:root
#
# hosts This file describes
a number of hostname-to-address
#
mappings for the TCP/IP subsystem. It is mostly
#
used at boot time, when no name servers are running.
#
On small systems, this file can be used instead of a
#
"named" name server. Just add the names, addresses
#
and any aliases to this file...
#
#127.0.0.1
oneway.erfurt.thur.de oneway
127.0.0.1
localhost oneway
192.168.17.24
oneway.erfurt.thur.de oneway
193.174.15.34
jengate.thur.de jengate
193.174.15.49
ppp01.jena.thur.de
193.174.15.50
ppp02.jena.thur.de
193.174.15.51
ppp03.jena.thur.de
193.174.15.52
ppp04.jena.thur.de
193.174.15.53
ppp05.jena.thur.de
193.174.15.54
ppp06.jena.thur.de
193.174.15.55
ppp07.jena.thur.de
193.174.15.56
ppp08.jena.thur.de
----------------------------------------------------------------------------
Dank geht an Peter Koellner