Connecting two PCs in a mini-LAN

From: patrick carosso (carossopatrick_at_yahoo.it)
Date: 10/06/04

  • Next message: Sybren Stuvel: "Re: Connecting two PCs in a mini-LAN"
    Date: Wed, 06 Oct 2004 11:56:43 GMT
    
    

    Hello,
    I'm trying to build a mini-lan with the two PCs I have at home.

    -I connected the two ethernet cards with a cable
    -I assigned to the PC_1 the address 192.30.30.1 (chosen at random)
    -I assigned to the PC_2 the address 192.30.30.2 (chosen at random)

    Here's a fragment of what I see with ifconfig:

    PC_1:
     eth0 Link encap:Ethernet HWaddr 00:0D:87:06:64:A7
               inet addr:192.30.30.1 Bcast:192.30.30.255 Mask:255.255.255.0
    PC_2:
     eth0 Link encap:Ethernet HWaddr 00:08:9B:80:88:41
               inet addr:192.30.30.2 Bcast:192.30.30.255 Mask:255.255.255.0

    And here's what I see which route:

    PC_1
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.30.30.0 * 255.255.255.0 U 0 0 0 eth0
    169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
    127.0.0.0 * 255.0.0.0 U 0 0 0 lo

    PC_2
    Kernel IP routing table
    Destination Gateway Genmask Flags Metric Ref Use Iface
    192.30.30.0 * 255.255.255.0 U 0 0 0 eth0
    169.254.0.0 * 255.255.0.0 U 0 0 0 eth0
    127.0.0.0 * 255.0.0.0 U 0 0 0 lo

    Now, a simple ping 192.30.30.2 from PC_1 gives:
    PING 192.30.30.2 (192.30.30.2) 56(84) bytes of data.
    >From 192.30.30.1 icmp_seq=22 Destination Host Unreachable
    >From 192.30.30.1 icmp_seq=23 Destination Host Unreachable
    >From 192.30.30.1 icmp_seq=24 Destination Host Unreachable
    >From 192.30.30.1 icmp_seq=25 Destination Host Unreachable
    >From 192.30.30.1 icmp_seq=26 Destination Host Unreachable
    >From 192.30.30.1 icmp_seq=27 Destination Host Unreachable

    --- 192.30.30.2 ping statistics ---
    29 packets transmitted, 0 received, +6 errors, 100% packet loss, time 28309ms
    , pipe 3, ipg/ewma 1011.047/0.000 ms

    Is that normal? How can I fix the problem?
    Thank you!


  • Next message: Sybren Stuvel: "Re: Connecting two PCs in a mini-LAN"

    Relevant Pages