Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Hi i am trying to connect 2 ubuntu computers as a LAN.

In my current setup I have:

One machine running ubuntu 11.10 with Realtek Semiconductor Co., Ltd. RTL8101E/RTL8102E PCI Express Fast Ethernet controller

While the other machine is running Ubuntu 12.04 with an Atheros Communications Inc AR8152 v1.1 Fast Ethernet

The two machines are connected via a switch (Edimax ES-3205P).

Unfortunately I still cannot connect the two machines together. Can somebody please show me what to do and how to go about solving this issue?

Thank you

ANSWERED

All I had to do was set up both ip's maually, subnet mask to 255.255.255.0 and left blank both gateway and DNS.

share|improve this question
    
A brief explanation about what you did to achieve the connection may be proved useful –  Anwar Shah Jun 16 '12 at 14:58

2 Answers 2

up vote 5 down vote accepted

Just set the IPs manually using the 'network connection' GUI to, say, 192.168.1.1 on ubuntu 11.04 machine and 192.168.1.2 on ubuntu 12.04 machine. Set the netmask to 255.255.255.0 on both of them. Leave the dns and gateway fields blank (I am assuming you only want each other to talk with no internet). This will work. If you wish to connect just these 2 machines, then there is no need of a switch - directly connect each other with the ethernet cable.
(I assume you know how to create a new connection in ubuntu and set the ip manually.)

share|improve this answer
    
+1. Can you see this question about doing the same thing on a virtual machine –  Anwar Shah Jun 16 '12 at 15:11
    
Is there a guide - step-by-step instructions for a newbie - on how to connect two ubuntu machines over WLAN so that they can share files, etc between themselves and also be able to connect to the internet. –  deshmukh Jun 16 '12 at 15:48

You can manually set the IP's on both of them,Ip can be consecutive where as all the other, subnet, gateway and DNS should be same. I think this should work!

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.