Closed sansyrox closed 6 years ago
If someone wants to SSH to RPi without trouble of fluctuating IP address, he/she should either:
Use RPi's mDNS domain name raspberrypi.local
instead of IP address. Linux laptop should be installed these packages libnss-mdns
, avahi-daemon
, which are already pre-included in major distros (Ubuntu, Fedora).
Configure his/her home router to assign fix IP for RPi (based on MAC address).
Note: Don't set static IP in RPi itself, which makes RPi not portable.
Explanation: If you set static IP 192.168.1.10
, for example, in RPi (/etc/network/interfaces file), that RPi will not be usable when moved to other LAN network, because:
192.168.0.x
, for example.192.168.1.10
and it tries to give that IP to another client machine and that makes both machines not work.Okay @hongquan , makes sense. We should then add these ways in the documentation for easy access.
I added a wiki here: https://github.com/fossasia/susi_linux/wiki/Connect-to-RPi-with-a-fixed-address
Describe the bug When SUSI Linux is operating in Normal mode, connected to a wifi, it has a fluctuating IP address and connecting via SSH connection makes it a tedious task.
To Reproduce Steps to reproduce the behavior:
Expected behavior To have a static IP address and improve the process of connecting to the Pi via SSH connection
Additional context Id like to work on this