[SOLVED] ssh login through LAN cable keeps disconneting Odroid N2

Post Reply
kpaw
Posts: 9
Joined: Sun Oct 06, 2019 8:13 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 0
Contact:

[SOLVED] ssh login through LAN cable keeps disconneting Odroid N2

Unread post by kpaw » Sun Dec 08, 2019 2:21 pm

Hi All,

I am having this strange problem with ssh login to odroid-N2.

I am able to connect to the odroid-N2 terminal using ssh but the connection keeps on disconneting after few minutes.
This is not the problem with terminal being ideal because even when I am typing in the terminal, it just freezes.
After this I need to reconnect by physically removing the ethernet and connecting back.
Doing this makes the frozen terminal again alive!
But I need to this after every few minutes.
Did anyone had this issue or any solution for it?

User avatar
mad_ady
Posts: 7558
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 391 times
Been thanked: 296 times
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by mad_ady » Sun Dec 08, 2019 3:57 pm

Hmm, are you using DHCP? Can you check that your odroid IP is unique in your LAN? Can you ping it continuously and check:
- when it's working the output of arp -an | grep odroid-ip on the client/PC
- when it's not working, is ping still working? Can you run the command above and compare that you get the MAC of the odroid?


Do the ethernet LEDs change color when the problem happens?
These users thanked the author mad_ady for the post:
kpaw (Fri Jan 24, 2020 8:19 pm)

User avatar
odroid
Site Admin
Posts: 33649
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 500 times
Been thanked: 504 times
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by odroid » Mon Dec 09, 2019 11:33 am

Which OS image and Kernel version do you use?

kpaw
Posts: 9
Joined: Sun Oct 06, 2019 8:13 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by kpaw » Mon Jan 06, 2020 3:26 pm

odroid wrote:
Mon Dec 09, 2019 11:33 am
Which OS image and Kernel version do you use?
Thanks for the reply.

I am using the following configuration:

Operating System: Ubuntu 18.04.2 LTS
Kernel: Linux 4.9.177-28

User avatar
odroid
Site Admin
Posts: 33649
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean, Japanese
ODROIDs: ODROID
Has thanked: 500 times
Been thanked: 504 times
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by odroid » Mon Jan 06, 2020 6:01 pm

You are using an old Kernel and image.
Please try this latest one.
https://wiki.odroid.com/odroid-n2/os_im ... u/20190812

kpaw
Posts: 9
Joined: Sun Oct 06, 2019 8:13 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by kpaw » Thu Jan 23, 2020 4:16 pm

odroid wrote:
Mon Jan 06, 2020 6:01 pm
You are using an old Kernel and image.
Please try this latest one.
https://wiki.odroid.com/odroid-n2/os_im ... u/20190812
I update the os and kernel to the latest version but the problem still persist.
I use the same laptop for raspberry pi and it works seamlessly without any problem.
Appreciate any thoughts on this.

kpaw
Posts: 9
Joined: Sun Oct 06, 2019 8:13 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by kpaw » Thu Jan 23, 2020 4:49 pm

mad_ady wrote:
Sun Dec 08, 2019 3:57 pm
Hmm, are you using DHCP? Can you check that your odroid IP is unique in your LAN? Can you ping it continuously and check:
- when it's working the output of arp -an | grep odroid-ip on the client/PC
- when it's not working, is ping still working? Can you run the command above and compare that you get the MAC of the odroid?


Do the ethernet LEDs change color when the problem happens?
Thanks mad_ady for the suggestion, it was useful to get to know the real issue but I could not find any solution to it. Here are answers to your questions and some other things that I found:

1. Yes I am using DHCP.
2. When it is working, "arp -an" on the client gives me the list of all the devices and it does contain the IP for odroid. (lets assume ip for odroid at this time is xxx.xxx.44.222)
3. When it stops working, I can still ping the odroid using the same IP address of ordoid (ping xxx.xxx.44.222). However the logged in terminal for the odroid is frozen now.
4. In order to unfreeze my frozen odroid terminal, I need to physically pull out the ethernet cable connected to odroid for ~2 sec and put it back, the frozen terminal again starts working.

Now here comes the tricky bit !
Although my frozen terminal have now started working but the IP of my odroid is changed now to new IP (xxx.xxx.251.255).
Now ping to the old IP (xxx.xxx.44.222) stopped working but ping to the new IP (xxx.xxx.251.255) started working.
I am not sure how my frozen terminal stared again working even when the IP for odroid has changed.

Some information that might be useful.
I login to the odroid using "ssh odroid@odroid.local"
I can never ping odroid.local, it says "ping: cannot resolve odroid.local: Unknown host"
I am using macOS and always need to find the IP of the connected odroid from system network preferences and I can ping to that IP, lets say ping xxx.xxx.100.230.
However, I cannot login to the odroid using "ssh odroid@xxx.xxx.100.230", I always need to use "ssh odroid@odroid.local"

Hope this information help in finding the solution to this.

User avatar
mad_ady
Posts: 7558
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 391 times
Been thanked: 296 times
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by mad_ady » Thu Jan 23, 2020 5:17 pm

Ok, based on your output please clarify the following:
1. What is your dhcp lease time set to?
2. What is the network/subnet that you are using? Based on output it looks like a /16 network. Is this a private network? If yes you can safely share the addresses.
3. What is the mac on your odroid's eth0 interface? (please share it). Does it remain the same when you unplug and plug back the cable? (it should)
4. The dhcp client on linux is very stubborn and tries to get back the previous IP by sending DHCPREQ packets with the old ip. The dhcp server should give back the old ip if it doesn't have a lease for it and it's not in use. This means the MAC of the odroid for the DHCPREQ needs to be same as before. If it can't secure the old ip it then asks for a new one.
What is your dhcp server and can we get some logs for it? I'm interested in the odroid related messages to understand what's going on...
5. Can we get a arp -an from your MAC PC when it works innitially, then when it doesn't work (before pulling the plug) and then after you replug the cable.

Also, you can try to set a fixed ip (via dhcp or manual) for your odroid.
These users thanked the author mad_ady for the post:
kpaw (Fri Jan 24, 2020 8:20 pm)

kpaw
Posts: 9
Joined: Sun Oct 06, 2019 8:13 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by kpaw » Fri Jan 24, 2020 2:28 pm

mad_ady wrote:
Thu Jan 23, 2020 5:17 pm
Ok, based on your output please clarify the following:
1. What is your dhcp lease time set to?
2. What is the network/subnet that you are using? Based on output it looks like a /16 network. Is this a private network? If yes you can safely share the addresses.
3. What is the mac on your odroid's eth0 interface? (please share it). Does it remain the same when you unplug and plug back the cable? (it should)
4. The dhcp client on linux is very stubborn and tries to get back the previous IP by sending DHCPREQ packets with the old ip. The dhcp server should give back the old ip if it doesn't have a lease for it and it's not in use. This means the MAC of the odroid for the DHCPREQ needs to be same as before. If it can't secure the old ip it then asks for a new one.
What is your dhcp server and can we get some logs for it? I'm interested in the odroid related messages to understand what's going on...
5. Can we get a arp -an from your MAC PC when it works innitially, then when it doesn't work (before pulling the plug) and then after you replug the cable.

Also, you can try to set a fixed ip (via dhcp or manual) for your odroid.
Thanks, here are the answers to your questions
1. The lease time is set to lease_time (uint32): 0x1c20
2. All ips are there in the point no 5, with arp -an
3. The mac of odroid remains same before and after unplug.
here is the output of ifconfig eth0
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::a075:562b:3605:9759 prefixlen 64 scopeid 0x20<link>
ether 00:1e:06:42:0e:07 txqueuelen 1000 (Ethernet)
RX packets 3242 bytes 634155 (634.1 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 2653 bytes 431237 (431.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 22

4. I am not sure how to get logs for dhcp?
5. here are the outputs of the arp -an, for these test I switched off my wifi and internet connetion
when the dhcp is not set manually
# ----- Odroid connected for the first time ---- #
? (169.254.255.255) at ff:ff:ff:ff:ff:ff on en7 [ethernet]
? (255.255.255.255) at ff:ff:ff:ff:ff:ff on en7 ifscope [ethernet]

# ---- after ping to 169.254.255.255 ---- #
? (169.254.224.148) at 0:e1:20:0:27:4a on en7 permanent [ethernet]
? (169.254.255.255) at ff:ff:ff:ff:ff:ff on en7 [ethernet]
? (255.255.255.255) at ff:ff:ff:ff:ff:ff on en7 ifscope [ethernet]

# --- stopped working and plugged in ---- #
? (169.254.224.148) at 0:e1:20:0:27:4a on en7 permanent [ethernet]
? (169.254.255.255) at ff:ff:ff:ff:ff:ff on en7 [ethernet]
? (255.255.255.255) at ff:ff:ff:ff:ff:ff on en7 ifscope [ethernet]

# --- stopped working and plugged out ---- #
noting is printed, but if I keep the plug out for long then it is not able to reconnect and says the pipeline broken

# --- started working after plugged in ---- #
? (169.254.255.255) at ff:ff:ff:ff:ff:ff on en7 [ethernet]
? (255.255.255.255) at ff:ff:ff:ff:ff:ff on en7 ifscope [ethernet]

# --- after ping 169.254.255.255 ---- #
? (169.254.93.221) at 0:e1:20:0:27:4a on en7 permanent [ethernet]
? (169.254.255.255) at ff:ff:ff:ff:ff:ff on en7 [ethernet]
? (255.255.255.255) at ff:ff:ff:ff:ff:ff on en7 ifscope [ethernet]

and the output when the dhcp is set manually
# ---- Odroid connected for the first time --- #
? (169.254.85.222) at 0:e1:20:0:27:4a on en7 permanent [ethernet]

# ---- after ping to 169.254.85.222 --- #
? (169.254.85.222) at 0:e1:20:0:27:4a on en7 permanent [ethernet]
? (255.255.255.255) at ff:ff:ff:ff:ff:ff on en7 ifscope [ethernet]

# --- stopped working and plugged in ---- #
? (169.254.85.222) at 0:e1:20:0:27:4a on en7 permanent [ethernet]
? (255.255.255.255) at ff:ff:ff:ff:ff:ff on en7 ifscope [ethernet]

# --- stopped working and plugged out ---- #
noting is printed

# --- started working after plugged in ---- #
? (169.254.85.222) at 0:e1:20:0:27:4a on en7 permanent [ethernet]

# --- started working after plugged in and ping ---- #
? (169.254.85.222) at 0:e1:20:0:27:4a on en7 permanent [ethernet]
? (255.255.255.255) at ff:ff:ff:ff:ff:ff on en7 ifscope [ethernet]

User avatar
mad_ady
Posts: 7558
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 391 times
Been thanked: 296 times
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by mad_ady » Fri Jan 24, 2020 6:50 pm

Ok, now it's more clear what is happening. Not sure how you managed to work yourself into such a corner case though. You've made some unusual networking mistakes though, so it's an interesting situation.

The root problem is you are using IPv4 Link-local addresses (169.254.0.0/16) https://www.iana.org/assignments/iana-i ... stry.xhtml. These are reserved to be self-assigned by a host when it can't get an IP address over DHCP. They are not meant to be distributed by DHCP (I wonder if the DHCP server even allows it). You can assign them manually to an interface if you want, but they are just for point-to-point communication. Furthermore, you're trying to communicate by using the subnet's broadcast address (which is meant for certain types of traffic only and shouldn't ever be used for TCP).

So, in your case I don't think there is a DHCP server running (or if it is, it's not giving away IPs).

So, let's start fresh. Tell us again what you are trying to do between your Odroid and PC and we'll work from there. You will need to define what you want the Odroid to be able to access, like:
- the odroid should be on a isolated network, accessible only by the PC, without access to any other resources -- in this case you can configure link-local addresses on both odroid and PC
- the odroid needs to access the wider network/internet through the PC -- this has two possible solutions:
1. network bridge on the PC between its LAN and WIFI and the odroid gets an IP from the wifi dhcp server (and can't work without wifi up). Advantage is - the odroid can get broadcast messages from the lan, so things like DLNA will work.
2. pc routing with nat - requires a dhcp server on your pc (bound only to your lan interface!) and nat configuration. Having two dhcp servers in the same lan is desastruous! Disadvantage: other lan hosts can't initiate connections to the odroid (would need port forwarding)
3. pc routing without nat. You need dhcp server like in #2. You also need to distribute the new network prefix via your router's dhcp so other gosts in your lan know how to reach your odroid.
These users thanked the author mad_ady for the post:
kpaw (Fri Jan 24, 2020 8:20 pm)

kpaw
Posts: 9
Joined: Sun Oct 06, 2019 8:13 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by kpaw » Fri Jan 24, 2020 8:24 pm

mad_ady wrote:
Fri Jan 24, 2020 6:50 pm
Ok, now it's more clear what is happening. Not sure how you managed to work yourself into such a corner case though. You've made some unusual networking mistakes though, so it's an interesting situation.

The root problem is you are using IPv4 Link-local addresses (169.254.0.0/16) https://www.iana.org/assignments/iana-i ... stry.xhtml. These are reserved to be self-assigned by a host when it can't get an IP address over DHCP. They are not meant to be distributed by DHCP (I wonder if the DHCP server even allows it). You can assign them manually to an interface if you want, but they are just for point-to-point communication. Furthermore, you're trying to communicate by using the subnet's broadcast address (which is meant for certain types of traffic only and shouldn't ever be used for TCP).

So, in your case I don't think there is a DHCP server running (or if it is, it's not giving away IPs).

So, let's start fresh. Tell us again what you are trying to do between your Odroid and PC and we'll work from there. You will need to define what you want the Odroid to be able to access, like:
- the odroid should be on a isolated network, accessible only by the PC, without access to any other resources -- in this case you can configure link-local addresses on both odroid and PC
- the odroid needs to access the wider network/internet through the PC -- this has two possible solutions:
1. network bridge on the PC between its LAN and WIFI and the odroid gets an IP from the wifi dhcp server (and can't work without wifi up). Advantage is - the odroid can get broadcast messages from the lan, so things like DLNA will work.
2. pc routing with nat - requires a dhcp server on your pc (bound only to your lan interface!) and nat configuration. Having two dhcp servers in the same lan is desastruous! Disadvantage: other lan hosts can't initiate connections to the odroid (would need port forwarding)
3. pc routing without nat. You need dhcp server like in #2. You also need to distribute the new network prefix via your router's dhcp so other gosts in your lan know how to reach your odroid.


Thanks for digging out the real cause.
My purpose is very simple, I just want access odroid through my PC. However, I want to access the internet on odroid thorough its own wifi dongle.

User avatar
mad_ady
Posts: 7558
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 391 times
Been thanked: 296 times
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by mad_ady » Fri Jan 24, 2020 9:25 pm

Then you can use fixed (manually set) link-local addresses, or simply use a different subnet on both PC and Odroid.
If you use dhcp in your context there would be more configuration to be done (setting up the dhcp server on either odroid or PC and remembering never to plug that port into the actual lan).

In order to access the odroid by name, the simplest solution is to add the ip - name to /etc/hosts (or whatever the equivalent is for your os)

kpaw
Posts: 9
Joined: Sun Oct 06, 2019 8:13 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by kpaw » Sat Jan 25, 2020 6:31 pm

mad_ady wrote:
Fri Jan 24, 2020 9:25 pm
Then you can use fixed (manually set) link-local addresses, or simply use a different subnet on both PC and Odroid.
If you use dhcp in your context there would be more configuration to be done (setting up the dhcp server on either odroid or PC and remembering never to plug that port into the actual lan).

In order to access the odroid by name, the simplest solution is to add the ip - name to /etc/hosts (or whatever the equivalent is for your os)
Thanks mad_ady, It turn out that my ipv4 addr for odroid was never set.

This is what I was getting from the ifconfig on odroid:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::a075:562b:3605:9759 prefixlen 64 scopeid 0x20<link>
ether 00:1e:06:42:0e:07 txqueuelen 1000 (Ethernet)
RX packets 144 bytes 27976 (27.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 141 bytes 25831 (25.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 22

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 1676 bytes 120460 (120.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1676 bytes 120460 (120.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


Later I set the ip add for eth0 on ordoid manually and now it started working. Now I do not need to plug in and out !

Now the ifconfig show the ipv4 add:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.85.222 netmask 255.255.0.0 broadcast 169.254.255.255
ether 00:1e:06:42:0e:07 txqueuelen 1000 (Ethernet)
RX packets 762 bytes 131557 (131.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 479 bytes 76904 (76.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 22

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 8186 bytes 603854 (603.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8186 bytes 603854 (603.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

I am not very network person and have very minimal knowledge in this area but it seems the real cause was that ipv4 was never set on odroid.
Still, I do not understand why was it working by plugging out and in ?

kpaw
Posts: 9
Joined: Sun Oct 06, 2019 8:13 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by kpaw » Sat Jan 25, 2020 7:20 pm

kpaw wrote:
Sat Jan 25, 2020 6:31 pm
mad_ady wrote:
Fri Jan 24, 2020 9:25 pm
Then you can use fixed (manually set) link-local addresses, or simply use a different subnet on both PC and Odroid.
If you use dhcp in your context there would be more configuration to be done (setting up the dhcp server on either odroid or PC and remembering never to plug that port into the actual lan).

In order to access the odroid by name, the simplest solution is to add the ip - name to /etc/hosts (or whatever the equivalent is for your os)
Thanks mad_ady, It turn out that my ipv4 addr for odroid was never set.

This is what I was getting from the ifconfig on odroid:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet6 fe80::a075:562b:3605:9759 prefixlen 64 scopeid 0x20<link>
ether 00:1e:06:42:0e:07 txqueuelen 1000 (Ethernet)
RX packets 144 bytes 27976 (27.9 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 141 bytes 25831 (25.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 22

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 1676 bytes 120460 (120.4 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 1676 bytes 120460 (120.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0


Later I set the ip add for eth0 on ordoid manually and now it started working. Now I do not need to plug in and out !

Now the ifconfig show the ipv4 add:

eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 169.254.85.222 netmask 255.255.0.0 broadcast 169.254.255.255
ether 00:1e:06:42:0e:07 txqueuelen 1000 (Ethernet)
RX packets 762 bytes 131557 (131.5 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 479 bytes 76904 (76.9 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
device interrupt 22

lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1 (Local Loopback)
RX packets 8186 bytes 603854 (603.8 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 8186 bytes 603854 (603.8 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0

I am not very network person and have very minimal knowledge in this area but it seems the real cause was that ipv4 was never set on odroid.
Still, I do not understand why was it working by plugging out and in ?
What is the best way to set the ipv4 for odroid
I logged in to odroid desktop with hdmi plugged in to monitor and used "sudo ifconfig eth0 169.254.85.222"

But it again resets back to the initial stage after reboot, that is ipv4 not set.

User avatar
mad_ady
Posts: 7558
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 391 times
Been thanked: 296 times
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by mad_ady » Sat Jan 25, 2020 7:38 pm

Depending on the os you're using, try networkmanager (or nmcli), netplan (/etc/netplan/01-static.yml) for ubuntu 18.04 or /etc/network/interfaces (older, deprecated method) for ubuntu 16.04.
These users thanked the author mad_ady for the post:
kpaw (Mon Jan 27, 2020 5:18 pm)

kpaw
Posts: 9
Joined: Sun Oct 06, 2019 8:13 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 0
Contact:

Re: ssh login through LAN cable keeps disconneting Odroid N2

Unread post by kpaw » Mon Jan 27, 2020 5:17 pm

This what finally worked for me:

The problem was that my ipv4 address was not set on the odroid.

I appended the following lines in the file /etc/network/interfaces

auto lo eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.101
netmask 255.255.255.0
gateway 192.168.0.1

This has solved the problem.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest