Find the answer to your Linux question:
Results 1 to 2 of 2
Hi friends, I have come up with one question.Here follows my question. I want connect my two linux pcs running in 2.6 kernel via cross over cable.To do this i ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Dec 2010
    Posts
    5

    connecting two linux pcs via cross cable


    Hi friends,

    I have come up with one question.Here follows my question.

    I want connect my two linux pcs running in 2.6 kernel via cross over cable.To do this i have done the following settings after google search.

    In pc1

    1. ifconfig eth0 10.10.11.16 netmask 255.255.255.0 up
    2. route add default gw 10.10.11.13 eth0 (default gateway which is ip of pc2 )

    In pc2

    1. ifconfig eth0 10.10.11.13 netmask 255.255.255.0 up
    2. route add default gw 10.10.11.16 eth0 (default gateway which is ip of pc1 )

    Then i tried pinging i could not able to connect.Are these above settings enough or any thing am i missing?

    For your more information see the attached text file named ipdata.txt
    Attached Files Attached Files

  2. #2
    Just Joined!
    Join Date
    Jul 2010
    Posts
    13
    I thinks you problem is that you are setting two gateway.

    you can try this :

    pc1 ifconfig eth0 10.10.11.16/24
    pc2 ifconfig eth0 10.10.11.13/24

    without route command.

    Also it could be a firewall problem.

    are you trying to share internet?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •