I have problems setting up a SLIP connection using dip in dialout mode.
The script I use seems to work fine. ifconfig tells me I am connected to
my service provider. But I can't send any data using ping, neither can
netscape or similar programs set up a connection.
My script file looks like this:
main:
get $local terhech.berlin.snafu.de
get $remote berlin.snafu.de
netmask 255.255.255.255
port cua0
speed 38400
reset
send ATQ0V1E1X1\r
wait OK 2
dial p25431288
print $errlvl
login:
sleep 3
send \r\n\r\n
wait ogin: 20
send (her comes my loginname)\n
wait ord: 20
send (here comes my password)\n
loggedin:
get $mtu 1006
default
done:
print CONNECTED $locip ---> $rmtip
mode SLIP
goto exit
exit:
exit
Afterwards ifconfig gives me the following messages:
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:2000 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:30 errors:0 dropped:0 overruns:0
sl0 Link encap:Serial Line IP
inet addr:194.64.152.95 P-t-P:194.64.64.1 Mask:255.255.255.0
UP POINTOPOINT RUNNING MTU:1006 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
This looks like a connection has been made, doesn't it?
The only thing I find confusing is that in the dip script I have set Netmask
to 255.255.255.255, but ifconfig tells me it's 255.255.255.0
After that when I use ping to test the connection, I keep getting the
message "Network unreachable".
I am using LINUX version 1.2.9. What is it that I am doing wrong?
---------------------------------------------------
Christoph Terhechte who hates emoticons
---------------------------------------------------