Find the answer to your Linux question:
Results 1 to 5 of 5
hello frnzzzzz.... i feel nice to being here. i m new linux user n i m using debian 4. i have two pcs and i want to connect them by ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2009
    Posts
    2

    [SOLVED] how to connect two debian pcs by LAN


    hello frnzzzzz....

    i feel nice to being here.
    i m new linux user n i m using debian 4.
    i have two pcs and i want to connect them by LAN.

    i had tried some command like-

    #ifconfig eth0 10.0.0.2 netmask 255.0.0.0 up

    above command works on both the pc.


    then i had given the route command for communication between them. these command are---

    #route add -host <ip of other pc> gw 10.0.0.2<ip of one pc say pc1,same in both pc>

    And

    #route add default gw 10.0.02 eth0

    But cant able to make connection between them.


    does i m doing any mistake of some thing is missing.
    plz let me know...... how to do this.

    Plzzzzzzzzzzzzzzzzz....... Help me out of this.

  2. #2
    Just Joined!
    Join Date
    Mar 2009
    Posts
    3
    Quote Originally Posted by shanu_16 View Post
    hello frnzzzzz....

    i feel nice to being here.
    i m new linux user n i m using debian 4.
    i have two pcs and i want to connect them by LAN.

    i had tried some command like-

    #ifconfig eth0 10.0.0.2 netmask 255.0.0.0 up

    above command works on both the pc.


    then i had given the route command for communication between them. these command are---

    #route add -host <ip of other pc> gw 10.0.0.2<ip of one pc say pc1,same in both pc>

    And

    #route add default gw 10.0.02 eth0

    But cant able to make connection between them.


    does i m doing any mistake of some thing is missing.
    plz let me know...... how to do this.

    Plzzzzzzzzzzzzzzzzz....... Help me out of this.
    Are you trying to connect them to transfer files, etc? You could use SSH/SFTP.

    Make sure SSH is installed, you can do this through apt-get, or synaptic package manager.

    Then, you can simply log into the computer: >ssh user@10.0.0.2 (or other ip)
    If you wanted to run applications remotely, use -X option

    For file transfer, >sftp user@10.0.0.2 (or other ip)

    Hope this helps.

  3. #3
    Just Joined!
    Join Date
    Apr 2009
    Posts
    2
    Thnx Rendered.....!

    i'll try it but is there any other way.

    Actually, i have to establish a small office network or 8 pcs. 1st i got success in this then i'll try for more PC.

    And my boss said that- try to make connection without any package n dont use GUI, do only on command line.

    so.... is there any othere way,,,,,,

  4. #4
    Linux Guru reed9's Avatar
    Join Date
    Feb 2009
    Location
    Boston, MA
    Posts
    4,651
    Quote Originally Posted by shanu_16 View Post
    Thnx Rendered.....!

    i'll try it but is there any other way.

    Actually, i have to establish a small office network or 8 pcs. 1st i got success in this then i'll try for more PC.

    And my boss said that- try to make connection without any package n dont use GUI, do only on command line.

    so.... is there any othere way,,,,,,
    SSH and FTP can both be done from the command line. You can also use NFS. Network File System (NFS) Configuration in Debian. Or Samba: Samba Server Configuration in Debian

    EDIT: Without any package?? That doesn't make any sense. If you don't have the tools installed, how would you do it?

  5. #5
    Linux Guru coopstah13's Avatar
    Join Date
    Nov 2007
    Location
    NH, USA
    Posts
    3,149
    you should configure the network interface cards on debian using the /etc/network/interfaces file, there should be a man page on it to get the syntax, you can do it via command line

Posting Permissions

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