Ubuntu – Connecting 2 ubuntu machines as a LAN


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


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

Best Answer

Just set the IPs manually using the 'network connection' GUI to, say, on ubuntu 11.04 machine and on ubuntu 12.04 machine. Set the netmask to 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.)

Related Question