Ola,  Lista....

(net jet pci chip teles)

Estou com uma placa isdn instalada no meu cl6.0
e estou tendo problemas com a conecxao  128

if [ ${ML_128K} = "yes" ]; then
 isdnctrl addlink $DEVICE1     esta dano erro aqui
fi

outro prob com este script e que a demanda nao
esta funcionado, sempre que a liga�ao cai  a rota
default da prob e por causa disto nao ha uma nova
discagem

ser� que alguem poderia me dar um scrip melhor
o me ajudar a resolver o prob deste .....
-----------------------------------------------
#!/bin/bash
#set -x

DEVICE="ippp0"
DEVICE1="ippp1"

case "$1" in
start)

USER="usuario"

#ML_128K=no
ML_128K=yes

LOCAL_NUMBER1="3272xxxx:3272xxxx"
LOCAL_NUMBER2="3272xxxx:3272xxxx"
REMOTE_NUMBER="32491300"

MY_IP_ADDRESS="10.01.1"
DEST_IP_ADDRESS="10.0.2.1"

 killall -9 ipppd 2 > /dev/null
 /sbin/ifconfig  $DEVICE down  2> /dev/null
 isdnctrl delif  $DEVICE  2> /dev/null
 isdnctrl delif  $DEVICE1 2> /dev/null
 isdnctrl delif  $DEVICE2 2> /dev/null

sleep 2

# hisaxctrl HiSax 1  0x3ff
# hisaxctrl HiSax 11 0x3ff
# hisaxctrl HiSax 13 0x3ff
# rm junk
# cat /dev/isdnctrl0 > junk &
# forget to stop the background cat
# by uncommenting the corresponding
# lines in the stop script
# isdnctrl verbose 7

isdnctrl addif  $DEVICE

isdnctrl addphone $DEVICE out $REMOTE_NUMBER
isdnctrl eaz $DEVICE $LOCAL_NUMBER1
isdnctrl l2_prot $DEVICE hdlc
isdnctrl l3_prot $DEVICE trans
isdnctrl encap $DEVICE syncppp
isdnctrl huptimeout $DEVICE 490
isdnctrl ihup $DEVICE off
isdnctrl chargehup $DEVICE off
isdnctrl secure $DEVICE off
isdnctrl dialmode $DEVICE auto

if [ ${ML_128K} = "yes" ]; then
isdnctrl addslave $DEVICE $DEVICE1
isdnctrl addphone $DEVICE1 out $REMOTE_NUMBER
isdnctrl eaz $DEVICE1 $LOCAL_NUMBER2
isdnctrl l2_prot $DEVICE1 hdlc
isdnctrl l3_prot $DEVICE1 trans
isdnctrl encap $DEVICE1 syncppp
isdnctrl huptimeout $DEVICE1 490
isdnctrl ihup $DEVICE1 off
isdnctrl chargehup $DEVICE1 off
isdnctrl secure $DEVICE1 off
isdnctrl dialmode $DEVICE1 auto
fi

#/sbin/ifconfig $DEVICE  $MY_IP_ADDRESS pointopoint $DEST_IP_ADDRESS
#/sbin/ifconfig $DEVICE $MY_IP_ADDRESS
#route add default gw $MY_IP_ADDRESS $DEVICE

 ipppd user $USER \
 name $USER \
 +mp \
 mru 1500 \
 ipcp-accept-local ipcp-accept-remote \
 noipdefault \
 -vjccomp -ac -pc \
 -vj \
 -lzs \
        -bsdcomp \
        -detach \
 debug \
        useifip \
 defaultroute \
 /dev/$DEVICE /dev/$DEVICE1 &

 sleep 2

isdnctrl dial $DEVICE

ifconfig $DEVICE  $MY_IP_ADDRESS pointopoint $DEST_IP_ADDRESS
route add default gw $MY_IP_ADDRESS $DEVICE

if [ ${ML_128K} = "yes" ]; then
 isdnctrl addlink $DEVICE1
fi
sleep 2

;;

stop)

 kill -9 $(/bin/ps ax | \
    /bin/grep ipppd | \
    /bin/grep -v grep | \
    /bin/awk '{print $1}') 2 > /dev/null

 kill -9 $(/bin/ps ax | \
   /bin/grep cat | \
   /bin/grep -v grep | \
   /bin/awk '{print $1}') 2 > /dev/null

 /sbin/ifconfig $DEVICE down  2 > /dev/null
 /usr/sbin/isdnctrl delif $DEVICE

 killall -9 ipppd

;;

*)
echo "Usage: $0 start | stop"
exit 1
esac
exit 0



Assinantes em 24/06/2001: 2305
Mensagens recebidas desde 07/01/1999: 119691
Historico e [des]cadastramento: http://linux-br.conectiva.com.br
Assuntos administrativos e problemas com a lista: 
            mailto:[EMAIL PROTECTED]

Responder a