[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

rsync fails to connect on kernel 2.6.10 over plip



I've successfully used rsync (2.6.4-6) to transfer files over a plip
connection via a cable connecting the parallel ports of my desktop and
laptop, using kernel 2.4.27.

Now, I'm trying to use kernel 2.6.10 and rsync won't establish a connection.

root #: rsync mydesktop::
rsync: failed to connect to mydesktop: Connection refused (111)
rsync error: error in socket IO (code 10 at clientserver.c(99)

I'm guessing the problem is the ipv6 in 2.6.10.  For 2.6.10, ifconfig
shows an inet6 line that isn't there under 2.4.27:

under 2.4.27:

plip0     Link encap:Ethernet  HWaddr FC:FC:C0:A8:01:01
          inet addr:192.168.1.1  P-t-P:192.168.1.2  Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:7 Base address:0x378

with 2.6.10:

plip0     Link encap:Ethernet  HWaddr FC:FC:C0:A8:01:01
          inet addr:192.168.1.1  P-t-P:192.168.1.2  Mask:255.255.255.0
          inet6 addr: fe80::fefc:c0ff:fea8:101/64 Scope:Link
          UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:1 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:7 Base address:0x378

In fact, I can't even ping with this.  So, I thought I'd try to
disable ipv6 on this link.  I added 'del 192.168.1.2' at the end of my
ifconfig to disable ipv6 (per man ifconfig) and now get:

root #: ifconfig

plip0     Link encap:Ethernet  HWaddr FC:FC:C0:A8:01:01
          inet addr:192.168.1.1  P-t-P:192.168.1.2  Mask:255.255.255.0
          inet6 addr: fe80::fefc:c0ff:fea8:101/64 Scope:Link
          UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:1 dropped:0 overruns:0 carrier:1
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
          Interrupt:7 Base address:0x378

plip0:0   Link encap:Ethernet  HWaddr FC:FC:C0:A8:01:01
          inet addr:192.168.1.2  P-t-P:192.168.1.2  Mask:255.255.255.0
          UP POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          Interrupt:7 Base address:0x378

Apparently, the plip0:0 listing is the subtraction of ipv6.  Now I can
successfully ping:

root :~# ping -c1 192.168.1.2
PING 192.168.1.2 (192.168.1.2) 56(84) bytes of data.
64 bytes from 192.168.1.2: icmp_seq=1 ttl=64 time=0.144 ms

--- 192.168.1.2 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 0.144/0.144/0.144/0.000 ms

'man rsync' says to add '-4' to the options to get the daemon use
ipv4, and I did this in /etc/defaults/rsync and it works:

root :~# ps aux |grep rsync
root      8349  0.0  0.3   1912   672 ?        Ss   11:02   0:00
/usr/bin/rsync --no-detach --daemon --config/etc/rsyncd.conf -4

However, when I try rsync with or without the '-4' option, on my
laptop, it still fails:

root #: rsync -4 mydesktop::
rsync: failed to connect to mydesktop: Connection refused (111)
rsync error: error in socket IO (code 10 at clientserver.c(99)

I went back to my original ifconfig, and tried rsync with the '-6'
option, but it also failed.

Anyone have any suggestions?

Is anyone successfully using rsync on kernel-2.6.10?  What did you
have to do to make it work?

TIA



Reply to: