View previous topic :: View next topic |
Author |
Message |
Oleksii Kruhliak n00b

Joined: 05 Feb 2025 Posts: 2
|
Posted: Sat Apr 26, 2025 8:23 pm Post subject: Changing IP when configuring ssh before installation |
|
|
Decided to reinstall gentoo on my tablet. I usually do this via ssh. Small screen, uncomfortable keyboard. I am using a minimal installation CD image. The connection between the host and the client is via Wi-Fi. There was a problem with the latest image (install-amd64-minimal-20250420T121009Z.iso). The host constantly changes its IP address.
To set up the host after boot, I do the following:
# net-setup
# ip address
# ping i.ua
# passwd
# rc-service sshd start
After this, the host changes its IP address every 3-4 minutes.
How to deal with this. I will be grateful for any help.
Best regards, Oleksii. |
|
Back to top |
|
 |
zen_desu Apprentice

Joined: 25 Oct 2024 Posts: 248
|
Posted: Sat Apr 26, 2025 8:27 pm Post subject: Re: Changing IP when configuring ssh before installation |
|
|
Possibly the DHCP server has a very short lease time and doesn't hand out the same IP?
You could make a static lease on the server (likely router) or set a static IP to whichever IP it allocates, but there is a chance it could allocate that to another device at some point.
Using IPv6 local addresses is another option. _________________ µgRD dev
Wiki writer |
|
Back to top |
|
 |
Oleksii Kruhliak n00b

Joined: 05 Feb 2025 Posts: 2
|
Posted: Sat Apr 26, 2025 8:45 pm Post subject: Re: Changing IP when configuring ssh before installation |
|
|
Of course, this problem can be circumvented. It is enough to connect via a wired network. In the installed system, this problem is not observed.
The Wi-Fi router settings have not been changed. The tablet's Mac address is assigned a permanent IP address on the Wi-Fi router. But six months ago this problem did not exist. And now I see the third build in which this problem exists.
I don't think this is very good.
Thank you for your attention to my request.
PS: Yes, I forgot to add that IPv6 addresses also change.
Stopping the sshd service does not solve the problem. |
|
Back to top |
|
 |
spica Guru

Joined: 04 Jun 2021 Posts: 357
|
Posted: Mon Apr 28, 2025 4:07 pm Post subject: |
|
|
Check if NetworkManager is running.
If yes, then use nmtui instead of net-setup.
I just tried to install via minimal iso and observed network manager was running. |
|
Back to top |
|
 |
|