Internet connection is lost after several minutes
Hi,
I'm using Ubuntu 7.04 on an IBM ThinkPad R51 laptop.
I'm connecting to the internet through standard l2tp scripts (which I've successfully run over Red Hat 9, Fedora Core 6, Zenwalk and Vector).
The problem is that after several minutes I lose my connection (though network-
I know the hardware is fine, because I've installed Fedora (After I've experienced the problem with Ubuntu) and it works fine.
I've tried using PPTP - but it refuses to connect (I get a "FATAL ERROR: bind: host not found) - again, the same scripts works perfectly on other distributions.
this is my l2tp script:
#!/bin/bash
LNS=172.26.255.197
IF=eth0
/sbin/ifdown $IF
/sbin/ifup $IF
CABLEGW=
/sbin/route add -host $LNS gw $CABLEGW
/sbin/route del default
/usr/local/
sleep 1
/usr/local/
sleep 1
echo "nameserver 192.114.47.4" > /etc/resolv.conf
echo "nameserver 192.114.47.52" >> /etc/resolv.conf
And this is my pptp script:
#!/bin/bash
USERNAME=
IF=eth0
/sbin/ifdown $IF
/sbin/ifup $IF
CABLEGW=
PNS=`host pns4.actcom.net.il 192.114.47.4 | awk '{print $4}' | tail -1`
/sbin/route add -host $PNS gw $CABLEGW
/sbin/route del default
/
sleep 10
echo "nameserver 192.114.47.4" > /etc/resolv.conf
echo "nameserver 192.114.47.52" >> /etc/resolv.conf
and that's my pap-secrets content:
"username@
(Of course, I use my own user and password here, as in the pptp script)
all of the address and hostnames are correct.
I would greatly appreciate any aid, I'm getting quite desperate...
Thanks,
Tom
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Tom Gur
- Solved:
- Last query:
- Last reply: