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

Re: Ethernet connection



Rodolfo Medina wrote:

> Some months ago I managed to connect my Hyundai and Acer laptops with an
> ethernet cable.  I can copy file from one PC to another with rsync.  The file
> `/etc/network/interfaces' is edited on the Acer as follows:
> 
> auto eth1
> allow-hotplug eth1
> iface eth1 inet static
> 	address 192.168.0.1
> 	netmask 255.255.255.0
> 
> , and on the Hyundai:
> 
> auto eth0
> allow-hotplug eth0
> iface eth0 inet static
> 	address 192.168.0.2
> 	netmask 255.255.255.0
>
> Now, I want to connect the Hyundai with an old desktop PC.  How do I
> know how to properly edit the same file?  I tried with eth0, eth1,
> 192.168.0.3, etc..., but they don't connect:


Camaleón <noelamac@gmail.com> writes:

> You can run "/sbin/ifconfig" in the old desktop PC to find out the IP 
> address in use.



>From the old desktop:

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:19:cb:d7:b6:c5  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          inet6 addr: fe80::219:cbff:fed7:b6c5/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:21 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:3452 (3.3 KiB)
          Interrupt:11 Base address:0xb800 

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:280 (280.0 B)  TX bytes:280 (280.0 B)


>From the Hyundai:

# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:03:0D:33:02:17
          inet addr:192.168.0.1  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::203:dff:fe33:217/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 b)  TX bytes:468 (468.0 b)
          Interrupt:201 Base address:0xd800

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:86 errors:0 dropped:0 overruns:0 frame:0
          TX packets:86 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:9358 (9.1 KiB)  TX bytes:9358 (9.1 KiB)


Note that, strangely, Hyundai lo's address 127.0.0.1 is the same as old desktop
main address.  I think this generates confusion (see below).


>From the old desktop:

$ ping 192.168.0.1
connect: Network is unreachable

>From the Hundai:

$ ping 127.0.0.1
PING 127.0.0.1 (127.0.0.1) 56(84) bytes of data.
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.050 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.037 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.038 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.039 ms


, but I suspect it confuses old desktop address: 127.0.0.1 with the same
address of Hyundai's lo.  In fact, when I run rsync, it apparently transfer
files:

$ rsync -vr test 127.0.0.1:/home/rodolfo
rodolfo@127.0.0.1's password:
building file list ... done

sent 97 bytes  received 20 bytes  33.43 bytes/sec
total size is 24934  speedup is 213.11


but not actually, since no directory `test' is present in old desktop.

Please help.

Thanks
Rodolfo


Reply to: