lug-bg: ppp ipcp local and remote ip negotiation problem
- Subject: lug-bg: ppp ipcp local and remote ip negotiation problem
- From: whitefang@xxxxxx (Angel Valkov)
- Date: Fri Apr 21 14:17:49 2000
imam slednia problem.
PPPD pusnato v demand dialing mode.Remote-a polsva PAP.
Za da mi varvi PPPD-to v demand dialing mode triabva da imam stati4ni IP-ta /no az na practita imam dinami4no IP,no tova ne pre4i-pone ne pre4eshe pri staria dostav4ik,t,k s opcii ipcp-accept-local,ipcp-accept-remote,PPPD priema IP-tata koito asign-va remote-a./S novia dostav4ik problemyt e 4e sled kato PPPD izrazi ve4e svoeto vijdane za tova kakvi IP-ta tirabva da imat local i remote,remote-a vaobshte i ne se oplacva ako te ne mu dopadnat,i ne iniciira ipcp ip-negotiation.Remote-a vinagi ima edno i syshto IP ,taka 4e problemyt e s local IP-to.Ako kogato se log-na ,ve4e ima drug potrebitel s tova IP koeto as sym poiskal,otsreshtnata strana iavno niama da napravi nkakvi promeni po routing table si,a ottam az ne niama da moga da vidia nishto ot vynshnia sviat./izklu4aia otsreshnata mashina ot ppp connection-a/,koeto ne zvu4i nikak priatno ;-).
Ako niakoi ima ideia kak da nakram remote-a vinagi da pravi ipcp-negotiation shte sam mu bezkraino blagodaren.
Eto i scripta s koito si startiram PPPD.
#!/bin/sh
#
# Script to initiate a ppp connection. This is the first part of the
# pair of scripts. This is not a secure pair of scripts as the codes
# are visible with the 'ps' command. However, it is simple.
#
# These are the parameters. Change as needed.
TELEPHONE=636-750 # The telephone number for the connection
ACCOUNT=account # The account name for logon (as in 'George Burns')
PASSWORD=passwd # The password for this account (and 'Gracie Allen')
LOCAL_IP=212.124.76.131 # Local IP address if known. Dynamic = 0.0.0.0
REMOTE_IP=212.124.76.1 # Remote IP address if desired. Normally 0.0.0.0
NETMASK=255.255.255.0 # The proper netmask if needed
#REMOTE_IP=0.0.0.0
#LOCAL_IP=0.0.0.0
#
# Export them so that they will be available at 'ppp-on-dialer' time.
export TELEPHONE ACCOUNT PASSWORD
#
# This is the location of the script which dials the phone and logs
# in. Please use the absolute file name as the $PATH variable is not
# used on the connect option. (To do so on a 'root' account would be
# a security hole so don't ask.)
#
DIALER_SCRIPT=/etc/ppp/ppp-on-dialer-inetbg
DISCONNECT_SCRIPT=/etc/ppp/ppp-off-hook
#
# Initiate the connection
#
# I put most of the common options on this command. Please, don't
# forget the 'lock' option or some programs such as mgetty will not
# work. The asyncmap and escape will permit the PPP link to work with
# a telnet or rlogin connection. You are welcome to make any changes
# as desired. Don't use the 'defaultroute' option if you currently
# have a default route to an ethernet gateway.
#
exec /usr/sbin/pppd debug lock modem crtscts /dev/ttyS2 115200 \
asyncmap 20A0000 escape FF kdebug 0 $LOCAL_IP:$REMOTE_IP \
noipdefault netmask $NETMASK defaultroute connect $DIALER_SCRIPT \
disconnect $DISCONNECT_SCRIPT name b2c3efos \
ipcp-accept-local ipcp-accept-remote demand holdoff 30 idle 180
----------------------------------------------------
Áåçïëàòíà ïîùà îò dir.bg! Free e-mail from dir.bg!
http://www.dir.bg
----------------------------------------------------
==================================================================
A mail-list of Linux Users Group - Bulgaria (bulgarian linuxers)
Otpiswaneto RABOTI !!! : Majordomo@xxxxxxxxxxxxxxxxxx UNSUBSCRIBE LUG-BG
http://www.linux-bulgaria.org/ Hosted by Internet Group Ltd. - Stara Zagora
|