Wednesday, April 24, 2024
 Popular · Latest · Hot · Upcoming
3
rated 0 times [  3] [ 0]  / answers: 1 / hits: 8419  / 1 Year ago, mon, november 28, 2022, 6:33:03

I need to connect two Ubuntu machines directly via ethernet (i.e., no switch or router between them).



One of them is running Ubuntu Desktop, so I am happy to use the network manager for that. The other one is using Ubuntu Core, so the configuration will need to be done in /etc/network/interfaces.



What is the appropriate configuration on each side?


More From » networking

 Answers
6

The solution is to configure both sides as a static connection.



On the headless side in /etc/network/interfaces put:



auto eth0
iface eth0 inet static
address 192.168.1.100
gateway 192.168.1.254
netmask 255.255.255.0


On the Ubuntu desktop side, configure a static connection in the network-manager, but with a different address (in the same network range).


[#26663] Wednesday, November 30, 2022, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
gavgenerati

Total Points: 120
Total Questions: 126
Total Answers: 119

Location: Marshall Islands
Member since Wed, Feb 9, 2022
2 Years ago
gavgenerati questions
Wed, Jun 22, 22, 17:24, 2 Years ago
Fri, Jul 30, 21, 04:32, 3 Years ago
Fri, Jan 14, 22, 14:20, 2 Years ago
Tue, Jul 27, 21, 19:05, 3 Years ago
;