I am trying to have 2 lans link automatically using a modem when one of
the workstations on the one side wants to access the server on the
other side.
I have been trying for a long time now, but I keep having 2 problems:
1: the link isn't brought up when a station other then a server tries
to access the other side.
2: I can't ping between a workstation and the server at the other side
at all.
The communication between the 'servers' is fine.
I suspect that I am doing something wrong with the routing but can't
figure out what. Hopefully I have included enough information below.
Any help will be greatly appreciated.
Thanks in advance,
Marcel
In my test setup I've got one workstation ('term1', tomsrtbt, 2.0.36?)
connected to
a 'server' ('double', suse 6.1, 2.2.5) by ethernet. Term one is
192.168.10.101 and double 192.168.10.99. This server has a modem and
runs diald. Then I've got an other 'server' ('willow', suse 6.2,
2.2.13) also with modem and diald. This one is on 192.168.1.99.
Diald is started from initab with
dd:2345:respawn:/usr/sbin/diald -f /etc/diald.test -daemon
The relevant sections of diald.test are as follows (on willow):
-----
# general options
mode ppp
accounting-log /var/log/diald.log
pppd-options 192.168.1.99:
# device configuration
connect /usr/lib/diald/connect.test
device /dev/modem
speed 115200
modem
lock
crtscts
# network configuration
local 192.168.1.99
remote 192.168.10.99
netmask 255.255.255.0
mtu 576
mru 576
# window may need to be changed for optimum performance, see man diald
window 2048
addroute /etc/diald/addroute.test
#defaultroute
two-way
-----
/etc/diald/addroute.test contains (on willow):
-----
#!/bin/sh
# <iface> <netmask> <local-ip> <remote-ip> <metric>
if [ "$1" = "ppp0" ]; then
sleep 2
/sbin/route add -net 192.168.10.0 \
netmask 255.255.255.0 gw "$4" \
window 2048 metric "$5" dev "$1"
fi
-----
on dialdin on the other side the following is executed as the login
shell:
-----
#!/bin/sh
#
# /etc/ppp/ppplogin
#
exec /usr/sbin/pppd modem netmask 255.255.255.0 passive 192.168.10.99:
-----
following are the routing tables before starting diald, after starting
diald and after establishing the link.
-----
before starting diald:
term1:/ # route -n
Destination Gateway Genmask Flags MSS Window Use
Iface
192.168.10.0 * 255.255.255.0 U 1500 0 1
eth0
127.0.0.0 * 255.0.0.0 U 3584 0 0
lo
default 192.168.10.99 * UG 1500 0 1
eth0
willow:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
double:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.10.99 0.0.0.0 255.255.255.255 UH 1 0 0
dummy0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
after starting diald:
willow:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.10.99 0.0.0.0 255.255.255.255 UH 0 0 0
sl0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0
sl0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0
sl0
double:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.99 0.0.0.0 255.255.255.255 UH 0 0 0
sl0
192.168.10.99 0.0.0.0 255.255.255.255 UH 0 0 0
dummy0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
sl0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0
sl0
after starting link from willow:
willow:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.10.99 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
192.168.10.0 192.168.10.99 255.255.255.0 UG 0 0 0
ppp0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0
ppp0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0
ppp0
double:~ # route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use
Iface
192.168.1.99 0.0.0.0 255.255.255.255 UH 0 0 0
ppp0
192.168.1.99 0.0.0.0 255.255.255.255 UH 0 0 0
sl0
192.168.10.99 0.0.0.0 255.255.255.255 UH 0 0 0
dummy0
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0
sl0
192.168.10.0 0.0.0.0 255.255.255.0 U 0 0 0
eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0
lo
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0
sl0
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]